A
code-switch (Hindi–English) speech recognition
model by
Eulogik
— frozen Whisper-Base encoder + two rank-8 LoRA language experts + a 33K-parameter per-token router.
This is the v5 release.
The router was trained with corrected per-token language labels, and it is the first PolyWhisper checkpoint where per-token routing is genuinely learned and measured.
Why it matters
Speakers in India switch between Hindi and English mid-sentence (Hinglish). Single-language ASR models degrade on this. PolyWhisper:
Routes
every token
to an English-expert or Hindi-expert LoRA,
Adds
+13.3 WER points over a static 50/50 expert mix
(58.8% vs 72.1%),
Adds
+7.8 WER points over vanilla Whisper-Base
(66.6%),
Cuts hallucinated repetition loops
~20×
(13 vs 279 events),
Trains in ~a day on a 16GB Apple Silicon Mac — no GPU cluster.
Results (3,129-utterance code-switched test set)
System
WER
FuzzyWER
CER
Hallucinations
PolyWhisper v5 (this model)
58.8%
57.3%
57.9%
13
Vanilla Whisper-Base
66.6%
63.3%
67.5%
279
Static 50/50 expert mix
72.1%
70.4%
71.1%
655
Router per-token language accuracy:
89.1%
(99,663 / 111,815 tokens).
Files
File
Contents
en_router_best_v5.pt
English LoRA expert (rank-8 decoder adapters)
hi_router_best_v5.pt
Hindi LoRA expert (rank-8 decoder adapters)
router_best_v5.pt
Per-token router (33K params)
eval_router_v5_samples.json
Full 3,129-sample per-utterance results
eval_static5050_v5_samples.json
Static 50/50 ablation results
eval_vanilla_samples.json
Vanilla Whisper-Base results
hinglish_codeswitch_test_ortho.json
Ortho-normalized test set
README.md
This card
Usage
import torch, soundfile as sf
from transformers import WhisperProcessor
from model import PolyWhisperRouter # see github.com/eulogik/PolyWhisper
model = PolyWhisperRouter().to("mps"if torch.backends.mps.is_available() else"cpu")
model.add_language("en").add_language("hi")
model.load_adapter("en", "en_router_best_v5.pt")
model.load_adapter("hi", "hi_router_best_v5.pt")
model.load_router("router_best_v5.pt")
audio, _ = sf.read("hinglish.wav")
feats = WhisperProcessor.from_pretrained("openai/whisper-base").feature_extractor(
[audio], sampling_rate=16000, return_tensors="pt").input_features
out = model.generate(feats, max_new_tokens=128, use_cache=False, language="hi", task="transcribe")
Training
Backbone:
openai/whisper-base
(frozen encoder + frozen base decoder)
Experts: rank-8 LoRA on decoder cross-attention (K/V) — ~3M params each
Router: 2-layer MLP over decoder hidden states (33K params)
Stage A1: EN expert, masked to English tokens (3 epochs, ~9h on M4 MPS)
Stage A2: HI expert + encoder-LoRA (4 epochs, ~9h)
Stage P1: router-only language selection (2 epochs)
@misc{eulogik2026polywhisper,
title={PolyWhisper: Code-Switch ASR with Per-Token LoRA Routing for Hinglish},
author={Eulogik},
year={2026},
howpublished={\url{https://huggingface.co/eulogik/polywhisper-hinglish-router}},
note={MIT licensed; benchmarked on 3,129-utterance code-switched test set}
}
Runs of eulogik polywhisper-hinglish-router on huggingface.co
13
Total runs
0
24-hour runs
-2
3-day runs
-5
7-day runs
-103
30-day runs
More Information About polywhisper-hinglish-router huggingface.co Model
More polywhisper-hinglish-router license Visit here:
polywhisper-hinglish-router huggingface.co is an AI model on huggingface.co that provides polywhisper-hinglish-router's model effect (), which can be used instantly with this eulogik polywhisper-hinglish-router model. huggingface.co supports a free trial of the polywhisper-hinglish-router model, and also provides paid use of the polywhisper-hinglish-router. Support call polywhisper-hinglish-router model through api, including Node.js, Python, http.
polywhisper-hinglish-router huggingface.co is an online trial and call api platform, which integrates polywhisper-hinglish-router's modeling effects, including api services, and provides a free online trial of polywhisper-hinglish-router, you can try polywhisper-hinglish-router online for free by clicking the link below.
eulogik polywhisper-hinglish-router online free url in huggingface.co:
polywhisper-hinglish-router is an open source model from GitHub that offers a free installation service, and any user can find polywhisper-hinglish-router on GitHub to install. At the same time, huggingface.co provides the effect of polywhisper-hinglish-router install, users can directly use polywhisper-hinglish-router installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
polywhisper-hinglish-router install url in huggingface.co: