-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtrain-multiple.sh
50 lines (45 loc) · 1.22 KB
/
train-multiple.sh
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
function bert-base-uncased() {
for k in {0..49}; do
poetry run python train.py \
--model_name bert-base-uncased \
--batch_size 64 \
--lr 3e-5 \
--output_dir ./outputs/bert-base-uncased/$k \
--device "cuda:0" \
--seed $k
done
}
function bert-large-uncased() {
for k in {0..49}; do
poetry run python train.py \
--model_name bert-large-uncased \
--batch_size 64 \
--lr 1e-5 \
--output_dir ./outputs/bert-large-uncased/$k \
--device "cuda:1" \
--seed $k
done
}
function roberta-base() {
for k in {0..49}; do
poetry run python train.py \
--model_name roberta-base \
--batch_size 512 \
--lr 1e-5 \
--output_dir ./outputs/roberta-base/$k \
--device "cuda:2" \
--seed $k
done
}
function roberta-large() {
for k in {0..49}; do
poetry run python train.py \
--model_name roberta-large \
--batch_size 512 \
--lr 3e-5 \
--output_dir ./outputs/roberta-large/$k \
--device "cuda:3" \
--seed $k
done
}
$1