-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d79e017
commit 4b29c27
Showing
5 changed files
with
154 additions
and
24 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
14 changes: 14 additions & 0 deletions
14
presets/k8s/falcon-40b-instruct/falcon-40b-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,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: falcon-40b-instruct | ||
spec: | ||
selector: | ||
app: falcon | ||
statefulset.kubernetes.io/pod-name: falcon-40b-instruct-0 | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
publishNotReadyAddresses: true |
51 changes: 51 additions & 0 deletions
51
presets/k8s/falcon-40b-instruct/falcon-40b-instruct-statefulset.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,51 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: falcon-40b-instruct | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: falcon | ||
podManagementPolicy: Parallel | ||
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 --config_file config.yaml --num_processes 1 --num_machines 1 --use_deepspeed --machine_rank 0 --gpu_ids all inference-api.py | ||
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 |
51 changes: 51 additions & 0 deletions
51
presets/k8s/falcon-40b/falcon-40b-instruct-statefulset.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,51 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: falcon-40b | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: falcon | ||
podManagementPolicy: Parallel | ||
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 --config_file config.yaml --num_processes 1 --num_machines 1 --use_deepspeed --machine_rank 0 --gpu_ids all inference-api.py | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: falcon-40b | ||
spec: | ||
selector: | ||
app: falcon | ||
statefulset.kubernetes.io/pod-name: falcon-40b-0 | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 5000 | ||
type: LoadBalancer | ||
publishNotReadyAddresses: true |