-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtrain.sh
41 lines (37 loc) · 1.14 KB
/
train.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
# sample training script
poetry run python src/train_sup.py \
--model_name cl-tohoku/bert-large-japanese-v2 \
--dataset_name jsnli \
--batch_size 512 \
--lr 5e-05 \
--gradient_checkpointing \
--save_model \
--save_model_name cl-nagoya/sup-simcse-ja-large \
--device "cuda:0"
poetry run python src/train_unsup.py \
--model_name cl-tohoku/bert-large-japanese-v2 \
--dataset_name wiki40b \
--batch_size 64 \
--lr 3e-05 \
--gradient_checkpointing \
--save_model \
--save_model_name cl-nagoya/unsup-simcse-ja-large \
--device "cuda:1"
poetry run python src/train_sup.py \
--model_name cl-tohoku/bert-base-japanese-v3 \
--dataset_name jsnli \
--batch_size 512 \
--lr 5e-05 \
--gradient_checkpointing \
--save_model \
--save_model_name cl-nagoya/sup-simcse-ja-base \
--device "cuda:2"
poetry run python src/train_unsup.py \
--model_name cl-tohoku/bert-base-japanese-v3 \
--dataset_name wiki40b \
--batch_size 64 \
--lr 5e-05 \
--gradient_checkpointing \
--save_model \
--save_model_name cl-nagoya/unsup-simcse-ja-base \
--device "cuda:3"