Views
No views yet
openai/whisper-large-v3 fine-tuned for Quran and Hadith transcription without giving up
general Modern Standard Arabic. This is the MSA reference model of the resource suite — no
Egyptian data, no MGB-2 in its training set, so MGB-2 is a genuine held-out control for it.ar-quran-hadith14books-MSAeval/asr_score.py.| System | Quran WER | Quran CER | Hadith WER | Hadith CER | MGB-2 WER | MGB-2 CER |
|---|---|---|---|---|---|---|
| whisper-large-v3 (zero-shot) | 3.50 | 0.81 | 7.49 | 2.22 | 10.85 | 4.76 |
| Cohere Transcribe Arabic | 3.96 | 2.73 | 3.99 | 1.46 | 6.77 | 3.60 |
| this model | 0.33 | 0.10 | 3.60 | 0.99 | 9.52 | 2.92 |
1import torch
2from transformers import pipeline
3
4pipe = pipeline(
5 "automatic-speech-recognition",
6 model="Dr-AliGomaa/whisper-large-v3-ar",
7 torch_dtype=torch.float16,
8 device="cuda:0",
9 chunk_length_s=30,
10)
11
12# The decoding config the reported numbers use -- fixed, not tuned per dataset.
13gen = {
14 "language": "arabic",
15 "task": "transcribe",
16 "num_beams": 5,
17 "temperature": (0.2),
18 "condition_on_prev_tokens": False,
19 "compression_ratio_threshold": 1.35,
20 "logprob_threshold": -1.0,
21 "return_timestamps": False,
22 "max_new_tokens": 444,
23}
24
25print(pipe("audio.mp3", generate_kwargs=gen)["text"])This model does not emit timestamps. For time-aligned output usewhisper-large-v3-ar-eg-timestamps.
pipeline/.eval/asr_score.py. Arabic WER moves materially with the normalizer, so a
number computed under a different one is not comparable to the table above.| Base | openai/whisper-large-v3 |
| Trained on | Quran + Hadith + Common Voice 17 + FLEURS + MediaSpeech. No Egyptian, no MGB-2. |
| Learning rate | 5e-6, linear decay with warmup |
| Batch | 4 per device × 8 GPUs = 32 effective |
| Precision / distributed | bf16 + tf32, DeepSpeed ZeRO |
| Weight decay | 0.05 (no dropout, no label smoothing) |
| Augmentation | waveform (MUSAN + ESC-50 + Gaussian, band-pass) via audiomentations; Quran/Hadith oversampled through independently-augmented passes |
| Frameworks | Transformers 4.51.3 · PyTorch 2.5.1+cu121 · Datasets 3.6.0 |
training/training.py.1@misc{kotb2026quranhadith,
2 title = {A Quran and Hadith Speech Resource and Benchmark for Arabic ASR,
3 with Professional-Reciter Training and Validation},
4 author = {Mohamed Kotb},
5 year = {2026},
6 publisher = {Zenodo},
7 doi = {10.5281/zenodo.21927416},
8 url = {https://doi.org/10.5281/zenodo.21927416},
9 note = {Preprint}
10}