-
Notifications
You must be signed in to change notification settings - Fork 5
/
job.yml
50 lines (49 loc) · 1.33 KB
/
job.yml
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
49
50
apiVersion: batch/v1
kind: Job
metadata:
name: test-experiment
namespace: aiml-valmadre-research
labels:
gcp_secret_file: data-manager
spec:
template:
spec:
restartPolicy: Never
volumes:
- name: dataset-volume
persistentVolumeClaim:
claimName: hier-cls-data
- name: shared-memory
emptyDir:
medium: Memory
containers:
- name: test-experiment-container
image: docker.aiml.team/jack.valmadre/hier-class:latest
stdin: true
tty: true
command: ["/bin/sh", "-c"]
args:
- git clone https://deep-purple:[email protected]/jack.valmadre/hier-class.git &&
cd v2p &&
./run.sh
resources:
limits:
nvidia.com/gpu: 2
memory: 128Gi
cpu: 8000m
requests:
memory: 128Gi
cpu: 8000m
volumeMounts:
- mountPath: /data
name: dataset-volume
- mountPath: /dev/shm
name: shared-memory
env:
- name: TORCH_HOME
value: /data
- name: SECRET_SECRET_KEY
valueFrom:
secretKeyRef:
name: deep-purple
key: token