-
Notifications
You must be signed in to change notification settings - Fork 11
/
finetune.sh
31 lines (31 loc) · 1022 Bytes
/
finetune.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
#!/usr/bin/env bash
python run_common_voice.py \
--model_name_or_path="facebook/wav2vec2-large-xlsr-53" \
--dataset_config_name="id" \
--output_dir=/workspace/output_models/wav2vec2-large-xlsr-indonesian \
--cache_dir=/workspace/output_models \
--overwrite_output_dir \
--num_train_epochs="60" \
--per_device_eval_batch_size="8" \
--per_device_train_batch_size="16" \
--evaluation_strategy="steps" \
--learning_rate="1e-4" \
--warmup_steps="300" \
--fp16 \
--freeze_feature_extractor \
--save_steps="100" \
--eval_steps="100" \
--save_total_limit="1" \
--logging_steps="100" \
--group_by_length \
--feat_proj_dropout="0.04" \
--layerdrop="0.041" \
--attention_dropout="0.094" \
--activation_dropout="0.055" \
--hidden_dropout="0.047" \
--mask_time_prob="0.4" \
--gradient_checkpointing \
--do_train --do_eval \
--gradient_accumulation_steps="2" \
--cache_dir=/workspace/data \
--dataloader_num_workers="8"