Quran Whisper (base), GGML q8_0 for whisper.cpp
This is a whisper.cpp build of tarteel-ai/whisper-base-ar-quran, a Whisper base model that Tarteel fine-tuned on Quran recitation. It transcribes recitation in Arabic with tashkeel, e.g. «قُلْ هُوَ اللَّهُ أَحَدٌ».
Full credit for the model goes to Tarteel. This repository only converts it to GGML and quantizes it, so it can run offline on phones through whisper.cpp (whisper.rn). It is used by the open-source Hifz (حافظ) memorization app for on-device recitation checking.
| File | Size | MD5 |
|---|---|---|
ggml-quran-base-q8_0.bin | 81,768,585 bytes (82 MB) | 868ee18e02dcf9393e83a7fc19f9a069 |
Conversion
- Converted with whisper.cpp's
models/convert-h5-to-ggml.py, thenwhisper-quantize … q8_0. - The source
config.jsonsetsmax_length: 1024, which the converter writes as the decoder context. The model's real context ismax_target_positions: 448, so the conversion uses 448. Without this fix the file fails to load (decoder.positional_embedding has wrong size).
Evaluation
The evaluation used 90 clips: 30 ayahs across the Quran, each recited by Alafasy, Husary and
Minshawi (everyayah.com), with greedy decoding and language=ar.
| Metric | q8_0 |
|---|---|
| Word error rate, letters only | 6.2% |
| Word error rate, including tashkeel | 14.6% |
| Speed, Apple Silicon Mac (Metal) | ~37× realtime |
| Speed, iOS Simulator (CPU) | ~22× realtime |
Both error rates are upper bounds: part of each comes from spelling normalization (e.g. الرحمن / الرحمان, waqf marks), not recognition. On the samples checked, q8_0 gave the same transcripts as f16.
Usage
whisper-cli -m ggml-quran-base-q8_0.bin -f recitation.wav -l ar
whisper.rn's transcribeData expects 16-bit PCM, mono, 16 kHz.
Don't prompt the model with the expected ayah when checking recitation. Priming it with the correct text makes it "hear" that text and hides the reciter's mistakes.
License
Apache-2.0, the same license as the original model by Tarteel.