Training
- Data: 35.6 min of my own speech (571 clips). Recordings are not released.
- Encoder frozen (outputs cached); LoRA r16, alpha 32, dropout 0.05 on decoder self-attention, cross-attention and FFN. AdamW lr 1e-3, batch 4, cosine schedule, 2 epochs.
Results (held-out read speech, 45 clips, 445 words)
Table with columns: Model, WER, CER| Model | WER | CER |
|---|
| whisper-small (auto language) | 4.49% | 2.14% |
| + this LoRA (language=en) | 3.15% | 1.52% |
Finding: whisper-small's language ID labelled most of my English as Hindi, so force language="en". Test set is small and single-speaker; the gain is indicative only.
Use
from transformers import WhisperForConditionalGeneration, WhisperProcessorfrom peft import PeftModelbase = WhisperForConditionalGeneration.from_pretrained("openai/whisper-small")model = PeftModel.from_pretrained(base, "PhaneendraN/whisper-small-personal-asr-lora")proc = WhisperProcessor.from_pretrained("openai/whisper-small")# generate with language="en", task="transcribe"
Built by Venkat Phaneendra Nittala, with AI coding assistants. Part of Muse, an offline personal AI project.