anton-l HF staff commited on
Commit
ee39996
1 Parent(s): 62a3236

Create run.sh

Browse files
Files changed (1) hide show
  1. run.sh +40 -0
run.sh ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ python -m torch.distributed.launch \
2
+ --nproc_per_node=8 \
3
+ run_xtreme_s.py \
4
+ --model_name_or_path="facebook/wav2vec2-xls-r-300m" \
5
+ --task="voxpopuli" \
6
+ --language="en" \
7
+ --output_dir="xtreme_s_xlsr_300m_voxpopuli_en" \
8
+ --overwrite_output_dir \
9
+ --num_train_epochs=10 \
10
+ --per_device_train_batch_size=8 \
11
+ --per_device_eval_batch_size=1 \
12
+ --gradient_accumulation_steps=1 \
13
+ --eval_accumulation_steps=10 \
14
+ --learning_rate="3e-4" \
15
+ --ctc_zero_infinity \
16
+ --warmup_steps=2000 \
17
+ --evaluation_strategy="steps" \
18
+ --max_duration_in_seconds=20 \
19
+ --preprocessing_num_workers=16 \
20
+ --save_steps=500 \
21
+ --eval_steps=500 \
22
+ --logging_steps=1 \
23
+ --layerdrop=0.0 \
24
+ --mask_time_prob=0.05 \
25
+ --mask_time_length=10 \
26
+ --mask_feature_prob=0.05 \
27
+ --mask_feature_length=64 \
28
+ --freeze_feature_encoder \
29
+ --gradient_checkpointing \
30
+ --fp16 \
31
+ --fp16_full_eval \
32
+ --group_by_length \
33
+ --do_train \
34
+ --do_eval \
35
+ --do_predict \
36
+ --per_lang_metrics=False \
37
+ --metric_for_best_model="wer" \
38
+ --greater_is_better=False \
39
+ --load_best_model_at_end \
40
+ --push_to_hub