Create run.sh
Browse files
run.sh
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python3 run_speech_recognition_seq2seq_streaming.py \
|
2 |
+
--model_name_or_path="openai/whisper-base" \
|
3 |
+
--dataset_name="mozilla-foundation/common_voice_17_0" \
|
4 |
+
--dataset_config_name="kab" \
|
5 |
+
--language="kabyle" \
|
6 |
+
--train_split_name="train+validation" \
|
7 |
+
--eval_split_name="test" \
|
8 |
+
--model_index_name="Whisper Base Kabyle" \
|
9 |
+
--max_steps="40000" \
|
10 |
+
--output_dir="./" \
|
11 |
+
--per_device_train_batch_size="2" \
|
12 |
+
--per_device_eval_batch_size="1" \
|
13 |
+
--logging_steps="25" \
|
14 |
+
--learning_rate="1e-5" \
|
15 |
+
--warmup_steps="500" \
|
16 |
+
--evaluation_strategy="steps" \
|
17 |
+
--eval_steps="4000" \
|
18 |
+
--save_strategy="steps" \
|
19 |
+
--save_steps="4000" \
|
20 |
+
--generation_max_length="225" \
|
21 |
+
--length_column_name="input_length" \
|
22 |
+
--max_duration_in_seconds="30" \
|
23 |
+
--text_column_name="sentence" \
|
24 |
+
--freeze_feature_encoder="False" \
|
25 |
+
--report_to="tensorboard" \
|
26 |
+
--metric_for_best_model="wer" \
|
27 |
+
--greater_is_better="False" \
|
28 |
+
--load_best_model_at_end \
|
29 |
+
--gradient_checkpointing \
|
30 |
+
--fp16 \
|
31 |
+
--overwrite_output_dir \
|
32 |
+
--do_train \
|
33 |
+
--do_eval \
|
34 |
+
--predict_with_generate \
|
35 |
+
--do_normalize_eval \
|
36 |
+
--use_auth_token \
|
37 |
+
--push_to_hub
|