AlexN commited on
Commit
37f8bf6
1 Parent(s): 6da6a4b

initial commit

Browse files
Files changed (1) hide show
  1. run.sh +40 -0
run.sh ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ WANDB_PROJECT=auto-speech-recognition-french
2
+ python run_speech_recognition_ctc.py \
3
+ --dataset_name="mozilla-foundation/common_voice_8_0" \
4
+ --model_name_or_path="facebook/wav2vec2-xls-r-300m" \
5
+ --dataset_config_name="fr" \
6
+ --output_dir="./" \
7
+ --overwrite_output_dir \
8
+ --num_train_epochs="5" \
9
+ --per_device_train_batch_size="32" \
10
+ --per_device_eval_batch_size="32" \
11
+ --gradient_accumulation_steps="1" \
12
+ --learning_rate="7e-5" \
13
+ --warmup_steps="1500" \
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="100" \
20
+ --layerdrop="0.0" \
21
+ --activation_dropout="0.1" \
22
+ --save_total_limit="3" \
23
+ --freeze_feature_encoder \
24
+ --feat_proj_dropout="0.0" \
25
+ --mask_time_prob="0.15" \
26
+ --mask_time_length="10" \
27
+ --mask_feature_prob="0.3" \
28
+ --mask_feature_length="10" \
29
+ --gradient_checkpointing \
30
+ --report_to="wandb" \
31
+ --run_name="xls-r-300m-fr" \
32
+ --max_eval_samples="4000" \
33
+ --max_duration_in_seconds="5" \
34
+ --use_auth_token \
35
+ --fp16 \
36
+ --group_by_length \
37
+ --preprocessing_num_workers="64" \
38
+ --do_train --do_eval \
39
+ --load_best_model_at_end \
40
+ --push_to_hub