-
Notifications
You must be signed in to change notification settings - Fork 174
/
esm1nv_pretrain-job.yaml
76 lines (76 loc) · 2.73 KB
/
esm1nv_pretrain-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: "kubeflow.org/v1"
kind: PyTorchJob
metadata:
name: esm1nv-pretraining
spec:
elasticPolicy:
rdzvBackend: c10d
minReplicas: 1
maxReplicas: 16
maxRestarts: 100
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
nprocPerNode: "8"
pytorchReplicaSpecs:
Worker:
replicas: 16
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
volumes:
- name: fsx-pv-storage
persistentVolumeClaim:
claimName: fsx-static-pvc
containers:
- name: pytorch
image: nvcr.io/nvidia/clara/bionemo-framework:1.2
resources:
limits:
nvidia.com/gpu: 1
env:
- name: NCCL_DEBUG
value: "INFO"
- name: DATA_PATH
value: "/fsx"
- name: HYDRA_FULL_ERROR
value: "1"
volumeMounts:
- mountPath: "/fsx"
name: fsx-pv-storage
imagePullPolicy: Always
command:
- "python3"
- "-m"
- "torch.distributed.run"
- "/workspace/bionemo/examples/protein/esm1nv/pretrain.py"
- "--config-path=/workspace/bionemo/examples/protein/esm1nv/conf"
- "--config-name=pretrain_small"
- "exp_manager.exp_dir=/fsx/esm1nv-train/esm1nv_pretraining/esm1nv_batch256_gradacc1_nodes2-small/results"
- "exp_manager.create_wandb_logger=False"
- "exp_manager.wandb_logger_kwargs.name=esm1nv_batch256_gradacc1_nodes2-small"
- "exp_manager.wandb_logger_kwargs.project=esm1nv_pretraining"
- "++exp_manager.wandb_logger_kwargs.offline=False"
- "trainer.num_nodes=2"
- "trainer.devices=8"
- "trainer.max_steps=1000000"
- "trainer.accumulate_grad_batches=1"
- "trainer.val_check_interval=500"
- "model.micro_batch_size=8"
- "model.tensor_model_parallel_size=1"
- "model.data.dataset_path=/fsx/processed"
- "model.data.dataset.train='x_OP_000..049_CL_'"
- "model.data.dataset.val='x_OP_000..049_CL_'"
- "model.data.dataset.test='x_OP_000..049_CL_'"
- "model.data.index_mapping_dir=/fsx/processed"
- "++model.dwnstr_task_validation.enabled=False"