Qwen3-ASR-0.6B Urdu (Urdu script and Roman Urdu)
Urdu speech to text that runs offline on a laptop CPU. One model writes either Urdu script or Roman Urdu (Urdu in Latin letters, the way most Pakistanis type), chosen by a language tag.
A full fine-tune of Qwen/Qwen3-ASR-0.6B. Left to itself, the base model writes Urdu speech in Hindi script; told the language is Urdu, it still gets about half the words wrong. This model halves that error and adds Roman Urdu.
Results
Word error rate / character error rate on test sets never seen in training, after removing punctuation (lower is better). Common Voice test: 5,071 clips from speakers not in training. FLEURS test: 299 clips, different sentences, speakers and microphones.
| Model | Common Voice | FLEURS |
|---|---|---|
| Qwen3-ASR-0.6B, auto language (writes Hindi script) | 100.8% / 84.3% | 100.6% / 86.3% |
| Qwen3-ASR-0.6B, told Urdu | 51.3% / 27.0% | 58.6% / 38.6% |
| This model, Urdu script | 24.6% / 9.4% | 26.1% / 10.6% |
| This model, Roman Urdu | 31.2% / 12.3% | 35.5% / 14.0% |
Roman Urdu references are the human Urdu transcripts romanized by our romanizer; Roman Urdu has no fixed spelling, so its scores overstate real mistakes.
Quantized (GGUF, llama.cpp)
Decoder sizes below; all use the same 379 MB audio encoder (mmproj-urdu-asr-0.6b-f16.gguf). FLEURS test, CPU.
| File | Decoder size | Urdu | Roman Urdu |
|---|---|---|---|
| q8_0 | 639 MB | 25.8% / 10.4% | 35.1% / 13.9% |
| q4_k_m | 397 MB | 29.6% / 12.8% | 38.3% / 15.3% |
Use
llama.cpp (CPU, laptops)
llama-server -m urdu-asr-0.6b-q8_0.gguf --mmproj mmproj-urdu-asr-0.6b-f16.gguf --port 8080
Always set the language: send a raw /completion prompt ending in language Urdu<asr_text> or
language Roman urdu<asr_text>. llama_client.py (in this repo, standard library only) does that:
python llama_client.py clip.wav --language Urdu
python llama_client.py clip.wav --language "Roman urdu"
Python (qwen-asr)
import torch
from qwen_asr import Qwen3ASRModel
from qwen_asr.inference import utils
utils.SUPPORTED_LANGUAGES += ["Urdu", "Roman urdu"]
model = Qwen3ASRModel.from_pretrained("zaltahir/qwen3-asr-0.6b-urdu", dtype=torch.bfloat16, device_map="cuda:0")
print(model.transcribe(audio=["clip.wav"], language="Urdu")[0].text)
print(model.transcribe(audio=["clip.wav"], language="Roman urdu")[0].text)
For a one-command laptop setup (benchmark + browser demo with microphone) see the laptop kit. Code, training scripts and the full write-up: https://github.com/ozalt/urdu-asr.
Training
- Data: Mozilla Common Voice Urdu (33,046 clips) + FLEURS Urdu train (2,103 clips), 43.5 hours. Each clip twice: with its Urdu transcript and with a Roman Urdu transcript from our romanizer (70,293 examples).
- Full fine-tune with the official Qwen3-ASR SFT script, 2 epochs, learning rate 2e-5, effective batch 64, bf16. Kept the checkpoint with the lowest dev loss (update 1,800 of 2,198).
- Hardware: one NVIDIA RTX 5060 Ti 16 GB, about 2.2 hours.
Limitations
- Set the language. Trained only on Urdu tags, the model now labels most speech as Urdu when left to detect it.
- Other languages degrade (catastrophic forgetting). FLEURS word error rate, base vs this model:
| Language | Base | This model |
|---|---|---|
| English, told English | 4.9% / 2.3% | 8.0% / 3.4% |
| Hindi, told Hindi | 19.3% / 8.8% | 62.5% / 46.1% |
Hindi suffers most: spoken Hindi and Urdu are nearly the same language, and about half the Hindi outputs come out in Urdu script.
- English loanwords and names are often misspelled, especially in Roman Urdu.
- Read speech (Common Voice, FLEURS) dominates training; noisy, fast or conversational speech will be harder.