-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Preset configs so they can deploy statefulset or deployment. Add mistral and phi-2 models to preset configs. Addition of these configs prevents the missing file error in e2e - https://github.com/Azure/kaito/actions/runs/7839888760
- Loading branch information
1 parent
c4bc7aa
commit 133cab3
Showing
25 changed files
with
498 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
presets/test/manifests/falcon-40b-instruct/falcon-40b-instruct-statefulset.yaml
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
presets/test/manifests/falcon-40b-instruct/falcon-40b-instruct.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: falcon-40b-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: falcon | ||
template: | ||
metadata: | ||
labels: | ||
app: falcon | ||
spec: | ||
containers: | ||
- name: falcon-container | ||
image: REPO_HERE.azurecr.io/falcon-40b-instruct:TAG_HERE | ||
command: | ||
- /bin/sh | ||
- -c | ||
- accelerate launch --num_processes 1 --num_machines 1 --machine_rank 0 --gpu_ids all inference-api.py --pipeline text-generation --torch_dtype bfloat16 | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 4 # Requesting 4 GPUs | ||
limits: | ||
nvidia.com/gpu: 4 | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 5000 | ||
initialDelaySeconds: 600 # 10 Min | ||
periodSeconds: 10 | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 5000 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
volumeMounts: | ||
- name: dshm | ||
mountPath: /dev/shm | ||
volumes: | ||
- name: dshm | ||
emptyDir: | ||
medium: Memory | ||
tolerations: | ||
- effect: NoSchedule | ||
key: sku | ||
operator: Equal | ||
value: gpu | ||
- effect: NoSchedule | ||
key: nvidia.com/gpu | ||
operator: Exists | ||
nodeSelector: | ||
pool: n40binstruct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
presets/test/manifests/falcon-40b/falcon-40b-statefulset.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: falcon-40b | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: falcon | ||
template: | ||
metadata: | ||
labels: | ||
app: falcon | ||
spec: | ||
containers: | ||
- name: falcon-container | ||
image: REPO_HERE.azurecr.io/falcon-40b:TAG_HERE | ||
command: | ||
- /bin/sh | ||
- -c | ||
- accelerate launch --num_processes 1 --num_machines 1 --machine_rank 0 --gpu_ids all inference-api.py --pipeline text-generation --torch_dtype bfloat16 | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 4 # Requesting 4 GPUs | ||
limits: | ||
nvidia.com/gpu: 4 | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 5000 | ||
initialDelaySeconds: 600 # 10 Min | ||
periodSeconds: 10 | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 5000 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
volumeMounts: | ||
- name: dshm | ||
mountPath: /dev/shm | ||
volumes: | ||
- name: dshm | ||
emptyDir: | ||
medium: Memory | ||
tolerations: | ||
- effect: NoSchedule | ||
key: sku | ||
operator: Equal | ||
value: gpu | ||
- effect: NoSchedule | ||
key: nvidia.com/gpu | ||
operator: Exists | ||
nodeSelector: | ||
pool: falcon40b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.