-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_bible_all.sh
35 lines (35 loc) · 1.05 KB
/
train_bible_all.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
torchrun \
--nproc_per_node 8 src/run_translation.py \
--model_name_or_path google/mt5-base \
--dataset_name LazarusNLP/alkitab-sabda-mt \
--dataset_config_name all \
--output_dir ./indo-t5-base-v2 \
--per_device_train_batch_size 32 \
--gradient_accumulation_steps 16 \
--per_device_eval_batch_size 16 \
--learning_rate 8e-4 \
--lr_scheduler_type linear \
--warmup_ratio 0.1 \
--max_steps 10000 \
--evaluation_strategy steps \
--eval_steps 5000 \
--save_strategy steps \
--save_steps 5000 \
--logging_strategy steps \
--logging_steps 200 \
--max_source_length 128 \
--max_target_length 128 \
--val_max_target_length 128 \
--pad_to_max_length True \
--preprocessing_num_workers 64 \
--overwrite_output_dir \
--do_train --do_eval \
--predict_with_generate \
--bf16 \
--torch_compile True \
--optim adamw_torch_fused \
--report_to tensorboard \
--push_to_hub \
--hub_model_id LazarusNLP/indo-t5-base-v2 \
--hub_private_repo True \
--use_auth_token