-
Notifications
You must be signed in to change notification settings - Fork 2
/
valohai.yaml
87 lines (84 loc) · 2.64 KB
/
valohai.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
77
78
79
80
81
82
83
84
85
86
87
- step:
name: train-torchrun
image: sofiiavalohai/valohai-llms:v1.5
environment: aws-eu-west-1-p3-8xlarge
command:
- pip install valohai-utils
- torchrun --nproc-per-node=4 train-torchrun.py {parameters}
parameters:
- name: model-ckpt
default: "facebook/bart-large-cnn"
- name: output-dir
default: "bart-large-cnn"
- name: batch-size
default: 1
- name: num-epochs
default: 1
- name: warmup-steps
default: 500
- name: evaluation-steps
default: 500
inputs:
- name: dataset
default:
- https://valohai-demo-library-data.s3.eu-west-1.amazonaws.com/distributed-llms/train.json
- https://valohai-demo-library-data.s3.eu-west-1.amazonaws.com/distributed-llms/val.json
- step:
name: train-accelerator
image: sofiiavalohai/valohai-llms:v1.5
environment: aws-eu-west-1-p3-8xlarge
command:
- pip install accelerate evaluate absl-py rouge-score
- python -m accelerate.commands.launch --num_processes=4 train-accelerator.py {parameters}
parameters:
- name: model-ckpt
default: "facebook/bart-large-cnn"
- name: output-dir
default: "bart-large-cnn"
- name: batch-size
default: 1
- name: num-epochs
default: 1
- name: warmup-steps
default: 500
- name: evaluation-steps
default: 500
inputs:
- name: dataset
default:
- https://valohai-demo-library-data.s3.eu-west-1.amazonaws.com/distributed-llms/train.json
- https://valohai-demo-library-data.s3.eu-west-1.amazonaws.com/distributed-llms/val.json
- step:
name: train-task
image: sofiiavalohai/valohai-llms:v1.5
environment: sharkdemo-aws-eu-central-1-g4dn-xlarge
command:
- pip install accelerate evaluate absl-py rouge-score
- python train-task.py {parameters}
environment-variables:
- name: VH_DOCKER_NETWORK
default: host
parameters:
- name: model-ckpt
default: "facebook/bart-large-cnn"
- name: output-dir
default: "bart-large-cnn"
- name: batch-size
default: 6
- name: num-epochs
default: 1
- name: warmup-steps
default: 500
- name: evaluation-steps
default: 500
inputs:
- name: dataset
default:
- https://valohai-demo-library-data.s3.eu-west-1.amazonaws.com/distributed-llms/train.json
- https://valohai-demo-library-data.s3.eu-west-1.amazonaws.com/distributed-llms/val.json
- task:
step: train-task
name: task-distributed
type: distributed
parameters: []
execution-count: 4