Yehor commited on
Commit
dcfc668
1 Parent(s): dd1e066

Create run.sh

Browse files
Files changed (1) hide show
  1. run.sh +36 -0
run.sh ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ python run_speech_recognition_ctc.py \
4
+ --dataset_name="mozilla-foundation/common_voice_7_0" \
5
+ --model_name_or_path="facebook/wav2vec2-xls-r-1b" \
6
+ --dataset_config_name="uk" \
7
+ --output_dir="./cv-uk-ft" \
8
+ --num_train_epochs="100" \
9
+ --per_device_train_batch_size="8" \
10
+ --per_device_eval_batch_size="8" \
11
+ --gradient_accumulation_steps="20" \
12
+ --learning_rate="5e-5" \
13
+ --warmup_steps="500" \
14
+ --length_column_name="input_length" \
15
+ --evaluation_strategy="steps" \
16
+ --text_column_name="sentence" \
17
+ --save_steps="500" \
18
+ --eval_steps="500" \
19
+ --logging_steps="50" \
20
+ --layerdrop="0.0" \
21
+ --activation_dropout="0.1" \
22
+ --eval_metrics wer cer \
23
+ --save_total_limit="3" \
24
+ --feat_proj_dropout="0.0" \
25
+ --mask_time_prob="0.75" \
26
+ --mask_time_length="10" \
27
+ --mask_feature_prob="0.25" \
28
+ --mask_feature_length="64" \
29
+ --freeze_feature_encoder \
30
+ --chars_to_ignore « » ы — – ՚ ’ … , ? . ! - \; \: \" “ % ‘ \` ” � \
31
+ --fp16 \
32
+ --group_by_length \
33
+ --use_auth_token \
34
+ --report_to="tensorboard" \
35
+ --do_train --do_eval \
36
+ --gradient_checkpointing