-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_train_indonlp_multilang.sh
67 lines (64 loc) · 3.54 KB
/
run_train_indonlp_multilang.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#######
## Multilingual
#######
OMP_NUM_THREADS=16 CUDA_VISIBLE_DEVICES=0 python src/train.py \
--model_name_or_path=indonesian-nlp/wav2vec2-indonesian-javanese-sundanese --lang all \
--preprocessing_num_workers=16 --audio_column_name=audio --text_column_name=text \
--per_device_train_batch_size=16 --per_device_eval_batch_size=16 \
--dataloader_num_workers=16 --dataloader_pin_memory \
--seed=14045 --num_train_epochs=30 --learning_rate=5e-5 --fp16 \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=epoch --eval_steps=1 --eval_accumulation_steps=1 \
--save_strategy=epoch --save_steps=1 --save_total_limit=3 --load_best_model_at_end \
--metric_for_best_model=mer --greater_is_better=False \
--gradient_checkpointing=True \
--cache_dir=./cache/all_lang/ \
--output_dir=./save/all_lang/ 2>&1 | tee multilingual_exp.logs &
#######
## Monolingual Indonesian
#######
OMP_NUM_THREADS=16 CUDA_VISIBLE_DEVICES=1 python src/train.py \
--model_name_or_path=indonesian-nlp/wav2vec2-indonesian-javanese-sundanese --lang ind \
--preprocessing_num_workers=16 --audio_column_name=audio --text_column_name=text \
--per_device_train_batch_size=16 --per_device_eval_batch_size=16 \
--dataloader_num_workers=16 --dataloader_pin_memory \
--seed=14045 --num_train_epochs=30 --learning_rate=5e-5 --fp16 \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=epoch --eval_steps=1 --eval_accumulation_steps=1 \
--save_strategy=epoch --save_steps=1 --save_total_limit=3 --load_best_model_at_end \
--metric_for_best_model=mer --greater_is_better=False \
--gradient_checkpointing=True \
--cache_dir=./cache/ind_lang/ \
--output_dir=./save/ind_lang/ 2>&1 | tee indonesian_exp.logs &
#######
## Monolingual Sundanese
#######
OMP_NUM_THREADS=16 CUDA_VISIBLE_DEVICES=2 python src/train.py \
--model_name_or_path=indonesian-nlp/wav2vec2-indonesian-javanese-sundanese --lang sun \
--preprocessing_num_workers=16 --audio_column_name=audio --text_column_name=text \
--per_device_train_batch_size=16 --per_device_eval_batch_size=16 \
--dataloader_num_workers=16 --dataloader_pin_memory \
--seed=14045 --num_train_epochs=30 --learning_rate=5e-5 --fp16 \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=epoch --eval_steps=1 --eval_accumulation_steps=1 \
--save_strategy=epoch --save_steps=1 --save_total_limit=3 --load_best_model_at_end \
--metric_for_best_model=mer --greater_is_better=False \
--gradient_checkpointing=True \
--cache_dir=./cache/sun_lang/ \
--output_dir=./save/sun_lang/ 2>&1 | tee sundanese_exp.logs &
#######
## Monolingual Javanese
#######
OMP_NUM_THREADS=16 CUDA_VISIBLE_DEVICES=3 python src/train.py \
--model_name_or_path=indonesian-nlp/wav2vec2-indonesian-javanese-sundanese --lang jav \
--preprocessing_num_workers=16 --audio_column_name=audio --text_column_name=text \
--per_device_train_batch_size=16 --per_device_eval_batch_size=16 \
--dataloader_num_workers=16 --dataloader_pin_memory \
--seed=14045 --num_train_epochs=30 --learning_rate=5e-5 --fp16 \
--logging_strategy=steps --logging_steps=10 --report_to=tensorboard \
--evaluation_strategy=epoch --eval_steps=1 --eval_accumulation_steps=1 \
--save_strategy=epoch --save_steps=1 --save_total_limit=3 --load_best_model_at_end \
--metric_for_best_model=mer --greater_is_better=False \
--gradient_checkpointing=True \
--cache_dir=./cache/jav_lang/ \
--output_dir=./save/jav_lang/ 2>&1 | tee javanese_exp.logs