Create run.sh
Browse files
run.sh
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python -m torch.distributed.launch \
|
2 |
+
--nproc_per_node=2 \
|
3 |
+
/home/anton/repos/transformers/examples/research_projects/xtreme-s/run_xtreme_s.py \
|
4 |
+
--model_name_or_path="facebook/wav2vec2-xls-r-300m" \
|
5 |
+
--task="minds14" \
|
6 |
+
--language="all" \
|
7 |
+
--output_dir="xtreme_s_xlsr_300m_minds14" \
|
8 |
+
--overwrite_output_dir \
|
9 |
+
--num_train_epochs=50 \
|
10 |
+
--per_device_train_batch_size=32 \
|
11 |
+
--per_device_eval_batch_size=8 \
|
12 |
+
--gradient_accumulation_steps=1 \
|
13 |
+
--learning_rate="3e-4" \
|
14 |
+
--warmup_steps=1500 \
|
15 |
+
--evaluation_strategy="steps" \
|
16 |
+
--target_column_name="intent_class" \
|
17 |
+
--max_duration_in_seconds=30 \
|
18 |
+
--save_steps=200 \
|
19 |
+
--eval_steps=200 \
|
20 |
+
--logging_steps=1 \
|
21 |
+
--layerdrop=0.0 \
|
22 |
+
--mask_time_prob=0.3 \
|
23 |
+
--mask_time_length=10 \
|
24 |
+
--mask_feature_prob=0.1 \
|
25 |
+
--mask_feature_length=64 \
|
26 |
+
--freeze_feature_encoder \
|
27 |
+
--gradient_checkpointing \
|
28 |
+
--fp16 \
|
29 |
+
--group_by_length \
|
30 |
+
--do_train \
|
31 |
+
--do_eval \
|
32 |
+
--do_predict \
|
33 |
+
--metric_for_best_model="f1" \
|
34 |
+
--greater_is_better=True \
|
35 |
+
--load_best_model_at_end \
|
36 |
+
--push_to_hub
|