Downloads · 30 days
17
19% of all-time downloads
EtMmohammedHafsati/whisper-base-darija-merged-diarized
whisper-base-darija-merged-diarized is a automatic speech recognition model from EtMmohammedHafsati. Use it when you need speech turned into text. It is set up for transformers.
This repository hosts a fine-tuned Whisper checkpoint for Moroccan Darija ASR trained on a merged corpus built from two Hugging Face datasets:
Downloads · 30 days
17
19% of all-time downloads
All-time downloads
91
Public
Parameters
72.6M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.7 GB · 59%
From the Hugging Face model README
This repository hosts a fine-tuned Whisper checkpoint for Moroccan Darija ASR trained on a merged corpus built from two Hugging Face datasets:
Fine-tuned on a merged Darija corpus built from TTS-clean metadata and speech-to-text metadata with diarization-derived analysis features and usability filtering.
This model was trained on a merged Darija speech corpus built from these two Hugging Face datasets:
The merged corpus was not treated as a plain list of audio/transcript pairs. It was enriched with diarization-derived analysis features and ASR usability signals before training and evaluation. The workflow used the following ideas:
asr_usability_score, usability_score_custom, quality_bin, and trainability/filter flags. These were used to monitor whether a segment was likely to be useful for ASR fine-tuning.audio_path_16k) and focused on samples that were successfully prepared for training.These metadata were used to understand where the model fails, not only how much it fails. In practice, they let us stratify results by:
This makes the evaluation much more informative than a single global WER/CER number.
The exact number of effective epochs in sequence-to-sequence training depends on the effective batch size, including gradient accumulation. In this card, the run is described using the author’s experiment note: 5000 × 2 steps, around 10 epochs.
Both checkpoints were evaluated with the same decoding and scoring pipeline on the held-out merged test split.
language="arabic"task="transcribe"max_new_tokens=225Before scoring, references and predictions were normalized conservatively by:
The main reported metrics are:
After global evaluation, results were re-aggregated by:
duration_bucketspeaker_bucketoverlap_bucketturn_rate_bucketspeech_rate_buckettext_length_bucketquality_bucketsource_dataset_bucketsource_split_bucketThis was done to separate acoustic difficulty, segmentation difficulty, transcript difficulty, and source-domain effects.
| group_value | n_samples | corpus_wer | corpus_cer | exact_match_rate |
|---|---|---|---|---|
| medium_3_8s | 816 | 59.76 | 31.07 | 1.35 |
| short_<3s | 709 | 55.36 | 25.34 | 2.96 |
| very_long_>=15s | 347 | 50.80 | 24.30 | 0.00 |
| long_8_15s | 6 | 117.57 | 94.30 | 0.00 |
| group_value | n_samples | corpus_wer | corpus_cer | exact_match_rate |
|---|---|---|---|---|
| medium_speech | 1341 | 50.42 | 23.20 | 1.19 |
| slow_speech | 291 | 98.64 | 67.48 | 4.81 |
| fast_speech | 246 | 54.71 | 27.64 | 0.81 |
| group_value | n_samples | corpus_wer | corpus_cer | exact_match_rate |
|---|---|---|---|---|
| short_text | 1392 | 58.75 | 29.61 | 1.29 |
| long_text | 341 | 49.71 | 23.28 | 0.00 |
| very_short_text | 125 | 139.57 | 104.72 | 10.40 |
| medium_text | 20 | 61.19 | 34.26 | 5.00 |
| group_value | n_samples | corpus_wer | corpus_cer | exact_match_rate |
|---|---|---|---|---|
| darija_tts_clean_metadata_full | 1532 | 60.10 | 30.72 | 2.09 |
| darija_speech_to_text_metadata_full | 346 | 49.97 | 23.59 | 0.00 |
| group_value | n_samples | corpus_wer | corpus_cer | exact_match_rate |
|---|---|---|---|---|
| single_speaker | 1692 | 52.88 | 25.49 | 1.83 |
| two_speakers | 186 | 53.86 | 26.42 | 0.54 |
| group_value | n_samples | corpus_wer | corpus_cer | exact_match_rate |
|---|---|---|---|---|
| no_overlap | 1694 | 52.88 | 25.50 | 1.83 |
| light_overlap | 149 | 53.65 | 26.20 | 0.67 |
| heavy_overlap | 35 | 54.75 | 27.20 | 0.00 |
On the same test split, the base checkpoint underperforms the small checkpoint by:
This makes the base checkpoint useful as a baseline, but not the best-performing checkpoint among the two reported runs.
This model is intended for automatic speech recognition of Moroccan Darija on audio that is reasonably close to the training domain represented by the merged datasets.
This repo contains the trained checkpoint and, when available, evaluation artifacts such as:
test_group_summaries.jsontest_metrics.jsontest_predictions_preview.jsontest_predictions_detailed.csvtest_predictions_detailed.jsonlIf test_group_summaries.json and test_metrics.json are present, they provide the full numeric breakdown behind the summary tables shown in this model card.