anton-l HF staff commited on
Commit
9c48f39
1 Parent(s): b90eb02

Create run.sh

Browse files
Files changed (1) hide show
  1. run.sh +35 -0
run.sh ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ python -m torch.distributed.launch \
2
+ --nproc_per_node=8 \
3
+ ./examples/research_projects/xtreme-s/run_xtreme_s.py \
4
+ --model_name_or_path="facebook/wav2vec2-xls-r-300m" \
5
+ --task="fleurs-asr" \
6
+ --language="en_us" \
7
+ --output_dir="xtreme_s_xlsr_300m_fleurs_asr_en_us_nomask" \
8
+ --overwrite_output_dir \
9
+ --num_train_epochs=30 \
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=200 \
17
+ --evaluation_strategy="steps" \
18
+ --max_duration_in_seconds=20 \
19
+ --preprocessing_num_workers=16 \
20
+ --logging_steps=1 \
21
+ --eval_steps=200 \
22
+ --layerdrop=0.0 \
23
+ --mask_time_prob=0.05 \
24
+ --mask_time_length=10 \
25
+ --mask_feature_prob=0.05 \
26
+ --mask_feature_length=64 \
27
+ --freeze_feature_encoder \
28
+ --gradient_checkpointing \
29
+ --fp16 \
30
+ --fp16_full_eval \
31
+ --group_by_length \
32
+ --do_train \
33
+ --do_predict \
34
+ --per_lang_metrics=False \
35
+ --push_to_hub