anton-l HF staff commited on
Commit
751f072
1 Parent(s): 8574177

Create run.sh

Browse files
Files changed (1) hide show
  1. run.sh +30 -0
run.sh ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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="fleurs-lang_id" \
6
+ --language="all" \
7
+ --output_dir="xtreme_s_xlsr_300m_fleurs_langid" \
8
+ --num_train_epochs=5 \
9
+ --per_device_train_batch_size=8 \
10
+ --per_device_eval_batch_size=1 \
11
+ --gradient_accumulation_steps=1 \
12
+ --learning_rate="3e-4" \
13
+ --warmup_steps=2000 \
14
+ --evaluation_strategy="steps" \
15
+ --max_duration_in_seconds=20 \
16
+ --save_steps=1000 \
17
+ --eval_steps=1000 \
18
+ --logging_steps=1 \
19
+ --layerdrop=0.0 \
20
+ --freeze_feature_encoder \
21
+ --gradient_checkpointing \
22
+ --fp16 \
23
+ --fp16_full_eval \
24
+ --do_train \
25
+ --do_eval \
26
+ --do_predict \
27
+ --metric_for_best_model="accuracy" \
28
+ --greater_is_better=True \
29
+ --load_best_model_at_end \
30
+ --push_to_hub