test
Browse files- run.sh +2 -3
- run_deepspeed.sh +39 -0
run.sh
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
|
2 |
-
--deepspeed="ds_config.json" \
|
3 |
--model_name_or_path="openai/whisper-small" \
|
4 |
--dataset_name="NbAiLab/NCC_S3_NRK" \
|
5 |
--language="Norwegian" \
|
@@ -8,7 +7,7 @@ deepspeed --master_port 29501 run_speech_recognition_seq2seq_streaming.py \
|
|
8 |
--model_index_name="Whisper Small Norwegian" \
|
9 |
--max_steps="100000" \
|
10 |
--output_dir="./" \
|
11 |
-
--per_device_train_batch_size="
|
12 |
--per_device_eval_batch_size="32" \
|
13 |
--gradient_accumulation_steps="2" \
|
14 |
--logging_steps="25" \
|
|
|
1 |
+
python run_speech_recognition_seq2seq_streaming.py \
|
|
|
2 |
--model_name_or_path="openai/whisper-small" \
|
3 |
--dataset_name="NbAiLab/NCC_S3_NRK" \
|
4 |
--language="Norwegian" \
|
|
|
7 |
--model_index_name="Whisper Small Norwegian" \
|
8 |
--max_steps="100000" \
|
9 |
--output_dir="./" \
|
10 |
+
--per_device_train_batch_size="64" \
|
11 |
--per_device_eval_batch_size="32" \
|
12 |
--gradient_accumulation_steps="2" \
|
13 |
--logging_steps="25" \
|
run_deepspeed.sh
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
deepspeed --master_port 29501 run_speech_recognition_seq2seq_streaming.py \
|
2 |
+
--deepspeed="ds_config.json" \
|
3 |
+
--model_name_or_path="openai/whisper-small" \
|
4 |
+
--dataset_name="NbAiLab/NCC_S3_NRK" \
|
5 |
+
--language="Norwegian" \
|
6 |
+
--train_split_name="train" \
|
7 |
+
--eval_split_name="validation" \
|
8 |
+
--model_index_name="Whisper Small Norwegian" \
|
9 |
+
--max_steps="100000" \
|
10 |
+
--output_dir="./" \
|
11 |
+
--per_device_train_batch_size="128" \
|
12 |
+
--per_device_eval_batch_size="32" \
|
13 |
+
--gradient_accumulation_steps="2" \
|
14 |
+
--logging_steps="25" \
|
15 |
+
--learning_rate="3e-6" \
|
16 |
+
--warmup_steps="1000" \
|
17 |
+
--evaluation_strategy="steps" \
|
18 |
+
--eval_steps="1000" \
|
19 |
+
--save_strategy="steps" \
|
20 |
+
--save_steps="1000" \
|
21 |
+
--generation_max_length="225" \
|
22 |
+
--length_column_name="duration" \
|
23 |
+
--max_duration_in_seconds="30" \
|
24 |
+
--text_column_name="text" \
|
25 |
+
--freeze_feature_encoder="False" \
|
26 |
+
--report_to="tensorboard" \
|
27 |
+
--metric_for_best_model="wer" \
|
28 |
+
--greater_is_better="False" \
|
29 |
+
--load_best_model_at_end \
|
30 |
+
--gradient_checkpointing \
|
31 |
+
--fp16 \
|
32 |
+
--overwrite_output_dir \
|
33 |
+
--do_train \
|
34 |
+
--do_eval \
|
35 |
+
--predict_with_generate \
|
36 |
+
--do_normalize_eval \
|
37 |
+
--use_auth_token \
|
38 |
+
--push_to_hub \
|
39 |
+
--hub_model_id="NbAiLab/whisper-small-nob"
|