Downloads · 30 days
7
2% of all-time downloads
farsipal/whisper-sm-el-xs
whisper-sm-el-xs is a automatic speech recognition model from farsipal. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
7
2% of all-time downloads
All-time downloads
334
Public
Repo size
1.9 GB
Likes
1
Public
Click a slice to open those files.
.bin967 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of openai/whisper-small on the mozilla-foundation/common_voice_11_0 el dataset. It achieves the following results on the evaluation set:
This model is trained for transcription on the Greek subset on mozilla-foundation/common_voice_11_0 interleaved splits train+eval
This is part of the Whisper Finetuning Event (December 2022)
Training used interleaved splits: train + evaluation. Evaluation was done on the test split. Data was streamed from Hugging Face's Hub.
The script used has been uploaded in the files of this space The command to run it was:
python ./run_speech_recognition_seq2seq_streaming.py \
--model_name_or_path "openai/whisper-small" \
--model_revision "main" \
--do_train True \
--do_eval True \
--use_auth_token False \
--freeze_encoder False \
--model_index_name "whisper-sm-el-xs" \
--dataset_name "mozilla-foundation/common_voice_11_0" \
--dataset_config_name "el" \
--audio_column_name "audio" \
--text_column_name "sentence" \
--max_duration_in_seconds 30 \
--train_split_name "train+validation" \
--eval_split_name "test" \
--do_lower_case False \
--do_remove_punctuation False \
--do_normalize_eval True \
--language "greek" \
--task "transcribe" \
--shuffle_buffer_size 500 \
--output_dir "./data/finetuningRuns/whisper-sm-el-xs" \
--per_device_train_batch_size 16 \
--gradient_accumulation_steps 4 \
--learning_rate 1e-5 \
--warmup_steps 500 \
--max_steps 5000 \
--gradient_checkpointing True \
--fp16 True \
--evaluation_strategy "steps" \
--per_device_eval_batch_size 8 \
--predict_with_generate True \
--generation_max_length 225 \
--save_steps 1000 \
--eval_steps 1000 \
--logging_steps 25 \
--report_to "tensorboard" \
--load_best_model_at_end True \
--metric_for_best_model "wer" \
--greater_is_better False \
--push_to_hub False \
--overwrite_output_dir True
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Wer |
|---|---|---|---|---|
| 0.0024 | 18.01 | 1000 | 0.4246 | 21.0438 |
| 0.0003 | 37.01 | 2000 | 0.4805 | 20.6352 |
| 0.0001 | 56.01 | 3000 | 0.5102 | 20.8395 |
| 0.0001 | 75.0 | 4000 | 0.5296 | 21.0717 |
| 0.0001 | 94.0 | 5000 | 0.5375 | 21.0253 |
Here is the summary from the log of the run:
***** train metrics *****
epoch = 94.0
train_loss = 0.0222
train_runtime = 23:06:13.19
train_samples_per_second = 3.847
train_steps_per_second = 0.06
12/08/2022 11:20:17 - INFO - __main__ - *** Evaluate ***
***** eval metrics *****
epoch = 94.0
eval_loss = 0.4805
eval_runtime = 0:23:03.68
eval_samples_per_second = 1.226
eval_steps_per_second = 0.153
eval_wer = 20.6352
Thu 08 Dec 2022 11:43:22 AM EST