Views
No views yet
openai/whisper-large-v3 fine-tuned for Quran, Hadith and Egyptian Arabic at once. Same
sacred-text fidelity as the MSA model, extended to a new domain — and the point of the model is
that adding that domain cost almost nothing.ar-quran-hadith14books-MSA
eval/asr_score.py.| Evaluation | WER | CER |
|---|---|---|
| Quran (ʿAbd al-Bāsiṭ, 7,280 clips) | 0.50 | 0.14 |
| Hadith (Bukhari + Muslim, 4,752 clips) | 3.71 | 1.08 |
Egyptian — ar-eg-dataset validation, same speaker/register | 5.41 | 1.76 |
| Egyptian — lahgtna-v3, zero-shot, unseen speakers, spontaneous | 17.20 | 6.32 |
| MGB-2 | — (in this model's training set; not evaluated) |
1import torch
2from transformers import pipeline
3
4pipe = pipeline(
5 "automatic-speech-recognition",
6 model="Dr-AliGomaa/whisper-large-v3-ar-eg",
7 torch_dtype=torch.float16,
8 device="cuda:0",
9 chunk_length_s=30,
10)
11
12gen = {
13 "language": "arabic",
14 "task": "transcribe",
15 "num_beams": 5,
16 "temperature": (0.2),
17 "condition_on_prev_tokens": False,
18 "compression_ratio_threshold": 1.35,
19 "logprob_threshold": -1.0,
20 "return_timestamps": False,
21 "max_new_tokens": 444,
22}
23
24print(pipe("audio.mp3", generate_kwargs=gen)["text"])This model does not emit timestamps. For identical accuracy with time alignment, usewhisper-large-v3-ar-eg-timestamps.
pipeline/.eval/asr_score.py — Arabic WER moves materially with the normalizer.| Base | openai/whisper-large-v3 |
| Trained on | the MSA mix + 40 h Egyptian (Prof. Ali Gomaa) + MGB-2 folded in for scale + timestamped data |
| Held out | Quran, Hadith, Egyptian (10 h). MGB-2 is not held out for this model. |
| Learning rate | 5e-6, linear decay with warmup |
| Batch | 4 per device × 8 GPUs = 32 effective |
| Precision / distributed | bf16 + tf32, DeepSpeed ZeRO |
| Augmentation | 1 clean + 4 independently-augmented waveform passes; scarce splits oversampled |
training/training.py.ar-eg-dataset, released with his permission.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}