Commit
•
78ebb6f
1
Parent(s):
90edbab
up
Browse files- run_tedlium.sh +40 -0
run_tedlium.sh
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env bash
|
2 |
+
python run_flax_speech_recognition_seq2seq.py \
|
3 |
+
--dataset_name="LIUM/tedlium" \
|
4 |
+
--model_name_or_path="sanchit-gandhi/flax-wav2vec2-2-bart-large-scan" \
|
5 |
+
--dataset_config_name="release3" \
|
6 |
+
--train_split_name="train" \
|
7 |
+
--eval_split_name="validation" \
|
8 |
+
--test_split_name="test" \
|
9 |
+
--text_column_name="text" \
|
10 |
+
--id_column_name="id" \
|
11 |
+
--output_dir="./flax-wav2vec2-2-bart-large-tedlium-hidden-activation-featproj-dropout-0.3" \
|
12 |
+
--wandb_project="tedlium" \
|
13 |
+
--wandb_name="flax-wav2vec2-2-bart-large-tedlium-hidden-activation-featproj-dropout-0.3" \
|
14 |
+
--dataset_cache_dir="/home/sanchitgandhi/cache/huggingface/datasets" \
|
15 |
+
--per_device_train_batch_size="8" \
|
16 |
+
--per_device_eval_batch_size="4" \
|
17 |
+
--logging_steps="25" \
|
18 |
+
--max_steps="50000" \
|
19 |
+
--eval_steps="10000" \
|
20 |
+
--save_steps="10000" \
|
21 |
+
--generation_max_length="40" \
|
22 |
+
--generation_num_beams="1" \
|
23 |
+
--generation_length_penalty="1.2" \
|
24 |
+
--final_generation_max_length="200" \
|
25 |
+
--final_generation_num_beams="5" \
|
26 |
+
--learning_rate="1e-4" \
|
27 |
+
--warmup_steps="500" \
|
28 |
+
--overwrite_output_dir \
|
29 |
+
--gradient_checkpointing \
|
30 |
+
--freeze_feature_encoder \
|
31 |
+
--predict_with_generate \
|
32 |
+
--do_lower_case \
|
33 |
+
--do_eval \
|
34 |
+
--do_train \
|
35 |
+
--do_predict \
|
36 |
+
--push_to_hub \
|
37 |
+
--use_auth_token \
|
38 |
+
--hidden_dropout="0.3" \
|
39 |
+
--activation_dropout="0.3" \
|
40 |
+
--feat_proj_dropout="0.3"
|