Downloads · 30 days
9
8% of all-time downloads
Khurram123/whisper-large-v3-urdu-lora
whisper-large-v3-urdu-lora is a automatic speech recognition model from Khurram123. Use it when you need speech turned into text. It is set up for peft. The card lists the license as mit.
[](https://huggingface.co/Khurram123/whisper-large-v3-urdu-lora) [](https://opensource.org/licenses/MIT)
Downloads · 30 days
9
8% of all-time downloads
All-time downloads
115
Public
Repo size
27 MB
Likes
0
Public
Click a slice to open those files.
.safetensors26.2 MB · 97%
From the Hugging Face model README
This repository features a fine-tuned OpenAI Whisper Large-v3 model utilizing PEFT/LoRA (Low-Rank Adaptation). The primary objective is to bridge the gap in Automatic Speech Recognition (ASR) for Classical Urdu Literature and Formal Academic Speech.
Unlike standard models that struggle with complex Persianized vocabulary and Nastaliq spacing, this adapter is specifically optimized for the rhythmic and lexical nuances of classical Ghazals and Nazms.
/mnt/data/ASR (SATA SSD)The model was benchmarked against the iconic verses of Shikwa. The results demonstrate high phonetic retention and an advanced understanding of formal Urdu vocabulary.
| File ID | Audio Sample | ASR Transcription (LoRA) | Ground Truth (Reference) |
|---|---|---|---|
| LJ0002 | <audio controls src="https://huggingface.co/Khurram123/whisper-large-v3-urdu-lora/resolve/main/samples/LJ0002.wav"></audio> | کونزیان کاربانوں سود فراموشراہوں | کیوں زیاں کار بنوں سود فراموش رہوں |
| LJ0003 | <audio controls src="https://huggingface.co/Khurram123/whisper-large-v3-urdu-lora/resolve/main/samples/LJ0003.wav"></audio> | فکر فردہ نہ کروں میں وہ غمیدوش رہوں | فکرِ فردا نہ کروں محوِ غمِ دوش رہوں |
| LJ0004 | <audio controls src="https://huggingface.co/Khurram123/whisper-large-v3-urdu-lora/resolve/main/samples/LJ0004.wav"></audio> | نالِ بُلبل کے سُنوں اور رحمتاً گوشت رہوں | نالۂ بلبل کے سنوں اور ہمہ تن گوش رہوں |
| LJ0005 | <audio controls src="https://huggingface.co/Khurram123/whisper-large-v3-urdu-lora/resolve/main/samples/LJ0005.wav"></audio> | ہم نوا میں بھی کوئی گُل ہوں کے خاموش رہوں | ہم نوا میں بھی کوئی گل ہوں کہ خاموش رہوں |
| LJ0006 | <audio controls src="https://huggingface.co/Khurram123/whisper-large-v3-urdu-lora/resolve/main/samples/LJ0006.wav"></audio> | جورت آموز میری تاب سخن ہے مجھ کو... | جرأت آموز مری تابِ سخن ہے مجھ کو |
To verify that the model maintains general-purpose linguistic utility, it was tested on standard colloquial Urdu.
q_proj, v_projTo achieve the results shown above, use the following inference configuration:
import torch
from peft import PeftModel, PeftConfig
from transformers import WhisperProcessor, WhisperForConditionalGeneration
# Load Model with LoRA Weights
adapter_id = "Khurram123/whisper-large-v3-urdu-lora"
model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-large-v3", load_in_4bit=True)
model = PeftModel.from_pretrained(model, adapter_id)
# Recommended Generation Config
predicted_ids = model.generate(
input_features,
language="urdu",
task="transcribe",
num_beams=5, # Critical for Urdu word boundaries
temperature=0.2, # Reduces hallucination in poetic suffixes
repetition_penalty=1.2 # Improves spacing between words
)