A LoRA adapter for Whisper Medium that adapts it to Indian-accented English. Part of IndiVoice-DeepASR by PxA Labs.
Commercial ASR systems lose accuracy on Indian English accents. IndiVoice-DeepASR fine-tunes Whisper with low-rank adapters so the adaptation can be trained on free cloud GPUs (Kaggle and Colab) and shipped as a small add-on to the base model.
| Base model | openai/whisper-medium |
| Method | LoRA (PEFT): rank 16, alpha 32, dropout 0.05, on q_proj and v_proj |
| Training data | ai4bharat/Svarah, Indian-accented English (gated dataset) |
| Language | English (Indian accents) |
| Developed by | Purvansh Joshi and Archit Mittal, PxA Labs |
| Code | github.com/PxA-Labs/IndiVoice-DeepASR |
import torch
from peft import PeftModel
from transformers import WhisperForConditionalGeneration, WhisperProcessor
base = WhisperForConditionalGeneration.from_pretrained("openai/whisper-medium", torch_dtype=torch.float16).to("cuda")
model = PeftModel.from_pretrained(base, "PxALabs/whisper-indian-lora")
processor = WhisperProcessor.from_pretrained("openai/whisper-medium")
# audio: a 16 kHz mono float array
inputs = processor(audio, sampling_rate=16000, return_tensors="pt").input_features.to("cuda", torch.float16)
ids = model.generate(input_features=inputs, language="en", task="transcribe")
print(processor.batch_decode(ids, skip_special_tokens=True)[0])
The repository also contains final/ (adapter plus processor files) and last-checkpoint/ (full trainer state, for resuming training).
train_test_split(test_size=0.1, seed=42)).Word error rate (WER, %) on the 10% validation split, as logged during training:
| Step | 200 | 400 | 600 | 800 | 1000 | 1200 | 1400 | 1600 | 1800 | 2000 |
|---|---|---|---|---|---|---|---|---|---|---|
| Validation loss | 0.270 | 0.227 | 0.196 | 0.170 | 0.150 | 0.132 | 0.119 | 0.107 | 0.100 | 0.097 |
| WER | 22.95 | 25.87 | 27.98 | 22.57 | 19.29 | 32.99 | 25.84 | 27.21 | 26.74 | 27.28 |
The final evaluation (step 2000) gives WER 27.28. The lowest logged WER was 19.29, at step 1000.
Read these numbers with care:
PEFT 0.18.1 · Transformers 4.57.6 · PyTorch 2.10.0+cu128 · Datasets 4.8.3 · Tokenizers 0.22.2
@misc{indivoice2026,
author = {Purvansh Joshi and Archit Mittal},
title = {IndiVoice-DeepASR: Efficient Adaptation of Multilingual Speech Models for Indian Accents},
year = {2026},
publisher = {GitHub},
howpublished = {\url{https://github.com/PxA-Labs/IndiVoice-DeepASR}}
}
last-checkpoint/optimizer.pt 36 MiBadapter_model.safetensors 18 MiBfinal/adapter_model.safetensors 18 MiBlast-checkpoint/adapter_model.safetensors 18 MiBlast-checkpoint/rng_state_0.pth 14.6 KiBlast-checkpoint/rng_state_1.pth 14.6 KiBlast-checkpoint/training_args.bin 6 KiBtraining_args.bin 6 KiBlast-checkpoint/scheduler.pt 1.4 KiBlast-checkpoint/scaler.pt 1.4 KiBopenai/whisper-medium