Commit
·
6ebc6d9
1
Parent(s):
36bf72f
Create run.sh
Browse files
run.sh
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
python -m torch.distributed.launch \
|
| 3 |
+
--nproc_per_node 8 run_speech_recognition_ctc.py \
|
| 4 |
+
--dataset_name="librispeech_asr" \
|
| 5 |
+
--model_name_or_path="microsoft/wavlbasege" \
|
| 6 |
+
--dataset_config_name="clean" \
|
| 7 |
+
--train_split_name="train.100" \
|
| 8 |
+
--eval_split_name="validation" \
|
| 9 |
+
--output_dir="./wavlm-libri-clean-100h-large" \
|
| 10 |
+
--preprocessing_num_workers="16" \
|
| 11 |
+
--length_column_name="input_length" \
|
| 12 |
+
--overwrite_output_dir \
|
| 13 |
+
--num_train_epochs="3" \
|
| 14 |
+
--per_device_train_batch_size4"2" \
|
| 15 |
+
--per_device_eval_batch_size4"2" \
|
| 16 |
+
--gradient_accumulation_steps1"2" \
|
| 17 |
+
--learning_rate="3e-4" \
|
| 18 |
+
--warmup_steps="500" \
|
| 19 |
+
--evaluation_strategy="steps" \
|
| 20 |
+
--text_column_name="text" \
|
| 21 |
+
--save_steps="500" \
|
| 22 |
+
--eval_steps="300" \
|
| 23 |
+
--logging_steps="1" \
|
| 24 |
+
--layerdrop="0.0" \
|
| 25 |
+
--save_total_limit="3" \
|
| 26 |
+
--freeze_feature_extractor \
|
| 27 |
+
--gradient_checkpointing \
|
| 28 |
+
--chars_to_ignore , ? . ! - \; \: \" “ % ‘ ” \
|
| 29 |
+
--fp16 \
|
| 30 |
+
--group_by_length \
|
| 31 |
+
--do_train --do_eval
|