Downloads · 30 days
17
6% of all-time downloads
MaddoggProduction/whisper-small-quran-lora-dataset-mix
whisper-small-quran-lora-dataset-mix is a automatic speech recognition model from MaddoggProduction. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
This is a specialized Automatic Speech Recognition (ASR) model for Quranic Recitation with tashkeel or diacritics. It is a fine-tuned version of openai/whisper-small, optimized to recognize Quranic Arabic with high ac…
Downloads · 30 days
17
6% of all-time downloads
All-time downloads
284
Public
Parameters
242M
967 MB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors967 MB · 100%
From the Hugging Face model README
This is a specialized Automatic Speech Recognition (ASR) model for Quranic Recitation with tashkeel or diacritics. It is a fine-tuned version of openai/whisper-small, optimized to recognize Quranic Arabic with high accuracy while maintaining excellent inference speed.
ahishamm/QURANICWhisperDataset test set.This model utilizes the standard Whisper Small architecture, featuring 12 encoder layers and 12 decoder layers (244M parameters).
The model was trained using LoRA (Low-Rank Adaptation) in a multi-stage curriculum learning process to ensure stability and precision.
The training and evaluation process utilized a comprehensive mix of professional recitations:
This model is fully compatible with the Hugging Face transformers pipeline.
from transformers import pipeline
# Load the pipeline with automatic device mapping for multi-GPU setups
pipe = pipeline(
"automatic-speech-recognition",
model="MaddoggProduction/whisper-small-quran-lora-dataset-mix",
device_map="auto" # auto for multiple GPUs, n: for GPU n, -1: for CPU
)
# Transcribe audio with chunking
result = pipe(
"path_to_audio.mp3",
chunk_length_s=30,
stride_length_s=3,
batch_size=8,
return_timestamps=True,
generate_kwargs={
"task": "transcribe",
"language": "arabic",
#"temperature": 0.0, # Greedy decoding, recommended for stability. Adjust as needed
#"num_beams": 5, # Adjust as needed, 5 for stability
}
)
print(result["text"])