-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdeployment.yaml
48 lines (48 loc) · 1.29 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: apps/v1
kind: Deployment
metadata:
name: tgi-deployment
spec:
replicas: 1
selector:
matchLabels:
app: tgi-server
template:
metadata:
labels:
app: tgi-server
hf.co/model: meta-llama--Llama-3-405B-Instruct-FP8
hf.co/task: text-generation
spec:
containers:
- name: tgi-container
image: us-docker.pkg.dev/deeplearning-platform-release/gcr.io/huggingface-text-generation-inference-cu121.2-2.ubuntu2204:latest
resources:
requests:
nvidia.com/gpu: 8
env:
- name: MODEL_ID
value: meta-llama/Llama-3.1-405B-Instruct-FP8
- name: NUM_SHARD
value: "8"
- name: PORT
value: "8080"
- name: HUGGING_FACE_HUB_TOKEN
valueFrom:
secretKeyRef:
name: hf-secret
key: hf_token
volumeMounts:
- mountPath: /dev/shm
name: dshm
- mountPath: /data
name: data
volumes:
- name: dshm
emptyDir:
medium: Memory
sizeLimit: 1Gi
- name: data
emptyDir: {}
nodeSelector:
cloud.google.com/gke-accelerator: nvidia-h100-80gb