patrickvonplaten
commited on
Commit
•
bbec12d
1
Parent(s):
673405a
add run sh
Browse files
run.sh
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env bash
|
2 |
+
CUDA_VISIBLE_DEVICES="0" python run_speech_recognition_ctc.py \
|
3 |
+
--dataset_name="timit_asr" \
|
4 |
+
--model_name_or_path="asapp/sew-small-100k" \
|
5 |
+
--overwrite_output_dir \
|
6 |
+
--output_dir="./sew-small-100k-timit" \
|
7 |
+
--train_split_name="train" \
|
8 |
+
--num_train_epochs="20" \
|
9 |
+
--per_device_train_batch_size="32" \
|
10 |
+
--per_device_eval_batch_size="1" \
|
11 |
+
--weight_decay="0.005" \
|
12 |
+
--learning_rate="1e-4" \
|
13 |
+
--warmup_steps="1000" \
|
14 |
+
--evaluation_strategy="steps" \
|
15 |
+
--text_column_name="text" \
|
16 |
+
--save_steps="400" \
|
17 |
+
--eval_steps="100" \
|
18 |
+
--logging_steps="10" \
|
19 |
+
--layerdrop="0.0" \
|
20 |
+
--save_total_limit="3" \
|
21 |
+
--freeze_feature_extractor \
|
22 |
+
--gradient_checkpointing \
|
23 |
+
--chars_to_ignore , ? . ! - \; \: \" “ % ‘ ” � \
|
24 |
+
--fp16 \
|
25 |
+
--group_by_length \
|
26 |
+
--push_to_hub \
|
27 |
+
--do_train --do_eval
|