patrickvonplaten
commited on
Commit
•
9a7e099
1
Parent(s):
126f5de
up
Browse files
run.sh
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env bash
|
2 |
+
python -m torch.distributed.launch \
|
3 |
+
--nproc_per_node 8 run_speech_recognition_ctc.py \
|
4 |
+
--dataset_name="common_voice" \
|
5 |
+
--model_name_or_path="facebook/wav2vec2-large-xlsr-53" \
|
6 |
+
--dataset_config_name="tr" \
|
7 |
+
--output_dir="./wav2vec2-large-xlsr-53-common_voice-tr-ft" \
|
8 |
+
--overwrite_output_dir \
|
9 |
+
--num_train_epochs="100" \
|
10 |
+
--per_device_train_batch_size="8" \
|
11 |
+
--gradient_accumulation_steps="1" \
|
12 |
+
--learning_rate="5e-4" \
|
13 |
+
--warmup_steps="500" \
|
14 |
+
--evaluation_strategy="steps" \
|
15 |
+
--text_column_name="sentence" \
|
16 |
+
--save_steps="500" \
|
17 |
+
--eval_steps="500" \
|
18 |
+
--logging_steps="1" \
|
19 |
+
--layerdrop="0.0" \
|
20 |
+
--eval_metrics wer cer \
|
21 |
+
--save_total_limit="1" \
|
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_extractor \
|
27 |
+
--chars_to_ignore , ? . ! - \; \: \" “ % ‘ ” � \
|
28 |
+
--fp16 \
|
29 |
+
--group_by_length \
|
30 |
+
--push_to_hub \
|
31 |
+
--do_train --do_eval \
|
32 |
+
--gradient_checkpointing \
|
33 |
+
--use_auth_token
|