forked from salesforce/VD-BERT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GPU4.yaml
executable file
·40 lines (39 loc) · 999 Bytes
/
GPU4.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
#Below sample yaml is used to schedule 4 GPU pods
apiVersion: v1
kind: Pod
metadata:
name: sfr-pod-yuewang-vdbert
namespace: sfr-ns-yuewang
spec:
restartPolicy: OnFailure
volumes:
- name: sfr-home-pv-yuewang
persistentVolumeClaim:
claimName: sfr-home-pvc-yuewang
- name: sfr-share-pv-yuewang
persistentVolumeClaim:
claimName: sfr-share-pvc-yuewang
- name: dshm
emptyDir:
medium: Memory
containers:
- name: vlp4
image: gcr.io/salesforce-research-internal/yuewang-vlp-new
command: ["sleep", "infinity"]
resources:
limits:
nvidia.com/gpu: 4
cpu: "31"
memory: 192G
volumeMounts:
- name: sfr-home-pv-yuewang
mountPath: "/export/home"
- name: sfr-share-pv-yuewang
mountPath: "/export/share"
- mountPath: "/dev/shm"
name: dshm
tolerations:
- key: "gpu_num"
operator: "Equal"
value: "8"
effect: "NoSchedule"