forked from stanford-futuredata/ColBERT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
colbert_train.job.yaml
executable file
·44 lines (44 loc) · 1.06 KB
/
colbert_train.job.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
---
apiVersion: "batch/v1"
kind: "Job"
metadata:
name: "job-colbert-train"
namespace: "richardmproject"
spec:
nodeSelector:
node-role.ida/gputitan: 'true'
parallelism: 1
completions: 1
template:
metadata:
labels:
jobconfig: "job-colber-train"
app: "colbert"
spec:
containers:
- name: "colbert"
image: "docker-registry.default.svc:5000/richardmproject/is-colbert:latest"
resources:
requests:
cpu: "1000m"
memory: "16Gi"
nvidia.com/gpu: '1'
limits:
cpu: "16000m"
memory: "64Gi"
nvidia.com/gpu: '1'
volumeMounts:
- mountPath: "/nfs/"
name: "nfs-access"
imagePullPolicy: "Always"
workingDir: /nfs/colbert/ColBERT
command:
- "/bin/bash"
args:
- "trainColbert.sh"
volumes:
- name: "nfs-access"
persistentVolumeClaim:
claimName: "richardmvol1claim"
restartPolicy: "OnFailure"
serviceAccount: "containerroot"