-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Phi-3 Manifests and Custom E2E Run Flag (#491)
**Reason for Change**: Adds Phi-3 manifests and allows us to run e2e for just Phi-3 Models
- Loading branch information
1 parent
21d7768
commit 421bd5f
Showing
10 changed files
with
281 additions
and
0 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
13 changes: 13 additions & 0 deletions
13
presets/test/manifests/phi-3-medium-128k-instruct/phi-3-medium-128k-instruct-service.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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: phi-3-medium-128k-instruct | ||
spec: | ||
selector: | ||
app: phi-3-medium-128k-instruct | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
publishNotReadyAddresses: true |
55 changes: 55 additions & 0 deletions
55
presets/test/manifests/phi-3-medium-128k-instruct/phi-3-medium-128k-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: phi-3-medium-128k-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: phi-3-medium-128k-instruct | ||
template: | ||
metadata: | ||
labels: | ||
app: phi-3-medium-128k-instruct | ||
spec: | ||
containers: | ||
- name: phi-3-medium-128k-instruct-container | ||
image: REPO_HERE.azurecr.io/phi-3-medium-128k-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 auto --trust_remote_code | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 1 | ||
limits: | ||
nvidia.com/gpu: 1 # Requesting 1 GPU | ||
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: phi3medium12 |
13 changes: 13 additions & 0 deletions
13
presets/test/manifests/phi-3-medium-4k-instruct/phi-3-medium-4k-instruct-service.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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: phi-3-medium-4k-instruct | ||
spec: | ||
selector: | ||
app: phi-3-medium-4k-instruct | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
publishNotReadyAddresses: true |
55 changes: 55 additions & 0 deletions
55
presets/test/manifests/phi-3-medium-4k-instruct/phi-3-medium-4k-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: phi-3-medium-4k-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: phi-3-medium-4k-instruct | ||
template: | ||
metadata: | ||
labels: | ||
app: phi-3-medium-4k-instruct | ||
spec: | ||
containers: | ||
- name: phi-3-medium-4k-instruct-container | ||
image: REPO_HERE.azurecr.io/phi-3-medium-4k-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 auto --trust_remote_code | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 1 | ||
limits: | ||
nvidia.com/gpu: 1 # Requesting 1 GPU | ||
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: phi3medium4k |
13 changes: 13 additions & 0 deletions
13
presets/test/manifests/phi-3-small-128k-instruct/phi-3-small-128k-instruct-service.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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: phi-3-small-128k-instruct | ||
spec: | ||
selector: | ||
app: phi-3-small-128k-instruct | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
publishNotReadyAddresses: true |
55 changes: 55 additions & 0 deletions
55
presets/test/manifests/phi-3-small-128k-instruct/phi-3-small-128k-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: phi-3-small-128k-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: phi-3-small-128k-instruct | ||
template: | ||
metadata: | ||
labels: | ||
app: phi-3-small-128k-instruct | ||
spec: | ||
containers: | ||
- name: phi-3-small-128k-instruct-container | ||
image: REPO_HERE.azurecr.io/phi-3-small-128k-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 auto --trust_remote_code | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 1 | ||
limits: | ||
nvidia.com/gpu: 1 # Requesting 1 GPU | ||
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: phi3small128 |
13 changes: 13 additions & 0 deletions
13
presets/test/manifests/phi-3-small-8k-instruct/phi-3-small-8k-instruct-service.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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: phi-3-small-8k-instruct | ||
spec: | ||
selector: | ||
app: phi-3-small-8k-instruct | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
publishNotReadyAddresses: true |
55 changes: 55 additions & 0 deletions
55
presets/test/manifests/phi-3-small-8k-instruct/phi-3-small-8k-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: phi-3-small-8k-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: phi-3-small-8k-instruct | ||
template: | ||
metadata: | ||
labels: | ||
app: phi-3-small-8k-instruct | ||
spec: | ||
containers: | ||
- name: phi-3-small-8k-instruct-container | ||
image: REPO_HERE.azurecr.io/phi-3-small-8k-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 auto --trust_remote_code | ||
resources: | ||
requests: | ||
nvidia.com/gpu: 1 | ||
limits: | ||
nvidia.com/gpu: 1 # Requesting 1 GPU | ||
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: phi3small8ki |