Automatic Speech Recognition
Transformers
ONNX
PEFT
whisper
polywhisper
indic-asr
hindi-asr
tamil-speech-recognition
telugu-stt
bengali-asr
marathi-speech-to-text
speech-recognition
multilingual
lora
hindi
tamil
telugu
bengali
marathi
indic-languages
indian-languages
speech-to-text
low-resource-asr
fleurs
indicvoices
quantized
efficient-asr
edge-asr
Eval Results (legacy)
Instructions to use eulogik/polywhisper with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eulogik/polywhisper with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="eulogik/polywhisper")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("eulogik/polywhisper") model = AutoModelForSpeechSeq2Seq.from_pretrained("eulogik/polywhisper", device_map="auto") - PEFT
How to use eulogik/polywhisper with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
docs: corrected augmentation wording, figures, adapter links, citation
Browse files
README.md
CHANGED
|
@@ -109,7 +109,9 @@ model-index:
|
|
| 109 |
> by [Eulogik](https://eulogik.com) β Frontier Edge AI Β· Vernacular Intelligence Β· [eulogik.com](https://eulogik.com)
|
| 110 |
|
| 111 |
|
| 112 |
-
> **TL;DR:** PolyWhisper v9 is a
|
|
|
|
|
|
|
| 113 |
|
| 114 |
## β¨ Why PolyWhisper?
|
| 115 |
|
|
@@ -136,14 +138,18 @@ model-index:
|
|
| 136 |
| Bengali | `bn` | Bengali | 181.3 | **130.2** | β
**β28.2%** |
|
| 137 |
| Marathi | `mr` | Devanagari | 474.9 | **96.7** | β
**β79.6%** |
|
| 138 |
|
|
|
|
|
|
|
| 139 |
### π§ͺ The v9 finding: augment per language, not globally
|
| 140 |
|
| 141 |
-
Training with SpecAugment + speed perturbation on **all** languages damaged Hindi/Tamil (token-loop degeneration) while massively helping Bengali/Marathi. The v9 recipe augments **only `bn`/`mr`** and trains `hi`/`ta` clean:
|
| 142 |
|
| 143 |
| Language | Augmentation | Result |
|
| 144 |
|---|---|---|
|
| 145 |
-
| Hindi, Tamil | none (clean) |
|
| 146 |
-
|
|
|
|
|
|
|
|
| 147 |
|
| 148 |
### π― Decoding: per-language beam widths (measured, full FLEURS test)
|
| 149 |
|
|
@@ -161,13 +167,13 @@ Beam-5 + repetition penalty 1.3 helps every language **except Telugu**, where be
|
|
| 161 |
|
| 162 |
| Language | Adapter file | Backbone | WER |
|
| 163 |
|---|---|---|---|
|
| 164 |
-
| Hindi (`hi`) | `polywhisper_output_hi/adapters_v3/hi_best_clean.pt` | `openai/whisper-small` | 46.3 |
|
| 165 |
-
| Tamil (`ta`) | `polywhisper_output_ta/adapters_v3/ta_best_clean.pt` | `openai/whisper-small` | 70.1 |
|
| 166 |
-
| Telugu (`te`) | `polywhisper_output_gpu0/adapters_v3/te_best_prod.pt` | `openai/whisper-small` | 100.1 |
|
| 167 |
-
| Bengali (`bn`) | `polywhisper_output_gpu0/adapters_v3/bn_best_prod.pt` | `openai/whisper-small` | 130.2 |
|
| 168 |
-
| Marathi (`mr`) | `polywhisper_output_gpu1/adapters_v3/mr_best_prod.pt` | `openai/whisper-small` | 96.7 |
|
| 169 |
|
| 170 |
-
All adapters are rank-16 LoRA (decoder + encoder attention), ~14MB each. Backbone weights are **not** included β they load from `openai/whisper-small` at runtime.
|
| 171 |
|
| 172 |
## π Quickstart
|
| 173 |
|
|
@@ -217,6 +223,8 @@ Pre-exported v9 graphs live under `export/onnx/` on the [Hub](https://huggingfac
|
|
| 217 |
|
| 218 |
Files are named `{lang}_{lang}_best_prod_{encoder,decoder}{,_int8}.onnx`. INT8 is ~4Γ smaller.
|
| 219 |
|
|
|
|
|
|
|
| 220 |
**Verification:** fp32 ONNX vs PyTorch max diff < 1e-3 on all five languages (encoder + decoder). End-to-end greedy spot-checks (FLEURS audio, beam=1):
|
| 221 |
|
| 222 |
| Lang | torch WER | ONNX INT8 WER |
|
|
@@ -246,8 +254,8 @@ PolyWhisper is an open-source Indic ASR toolkit: one frozen Whisper-Small backbo
|
|
| 246 |
**How is it different from fine-tuning Whisper?**
|
| 247 |
Full fine-tuning rewrites ~244Mβ1.5B weights per language. PolyWhisper freezes the backbone and trains ~3.5M LoRA parameters per language (~14MB), so five languages ship for the storage cost of a rounding error.
|
| 248 |
|
| 249 |
-
**Which languages are
|
| 250 |
-
All five ship working adapters. Hindi (46.3 WER) and Tamil (70.1) are strongest; Bengali and Marathi
|
| 251 |
|
| 252 |
**Can I run it on CPU?**
|
| 253 |
Yes β export to ONNX INT8 and run with ONNX Runtime, no GPU required.
|
|
@@ -270,8 +278,8 @@ MIT. Whisper weights Β© OpenAI. Training data: IndicVoices-ST (CC-BY) Β· Eval: F
|
|
| 270 |
|
| 271 |
```bibtex
|
| 272 |
@misc{polywhisper2026,
|
| 273 |
-
title = {PolyWhisper: Efficient Multilingual Indic ASR via Frozen Backbone
|
| 274 |
-
author = {
|
| 275 |
year = {2026},
|
| 276 |
publisher = {HuggingFace},
|
| 277 |
url = {https://huggingface.co/eulogik/polywhisper}
|
|
|
|
| 109 |
> by [Eulogik](https://eulogik.com) β Frontier Edge AI Β· Vernacular Intelligence Β· [eulogik.com](https://eulogik.com)
|
| 110 |
|
| 111 |
|
| 112 |
+
> **TL;DR:** PolyWhisper v9 is a research-ready automatic speech recognition (ASR) system for **Hindi, Tamil, Telugu, Bengali, and Marathi**. It pairs a **frozen OpenAI Whisper-Small backbone (244M params)** with tiny **per-language LoRA adapters (~14MB each)**. Bengali WER drops **β28.2%** and Marathi **β79.6%** versus the no-augmentation baseline β at roughly **1% of the storage cost** of full fine-tuning.
|
| 113 |
+
|
| 114 |
+

|
| 115 |
|
| 116 |
## β¨ Why PolyWhisper?
|
| 117 |
|
|
|
|
| 138 |
| Bengali | `bn` | Bengali | 181.3 | **130.2** | β
**β28.2%** |
|
| 139 |
| Marathi | `mr` | Devanagari | 474.9 | **96.7** | β
**β79.6%** |
|
| 140 |
|
| 141 |
+

|
| 142 |
+
|
| 143 |
### π§ͺ The v9 finding: augment per language, not globally
|
| 144 |
|
| 145 |
+
Training with SpecAugment + speed perturbation on **all** languages damaged Hindi/Tamil (token-loop degeneration) while massively helping Bengali/Marathi. The v9 recipe augments **only `bn`/`mr`** and trains `hi`/`ta`/`te` clean:
|
| 146 |
|
| 147 |
| Language | Augmentation | Result |
|
| 148 |
|---|---|---|
|
| 149 |
+
| Hindi, Tamil, Telugu | none (clean) | avoids global-augment damage; stays near the no-augment baseline |
|
| 150 |
+
| Bengali, Marathi | SpecAugment + 0.9Γ/1.1Γ speed perturb | large gains on hard languages |
|
| 151 |
+
|
| 152 |
+

|
| 153 |
|
| 154 |
### π― Decoding: per-language beam widths (measured, full FLEURS test)
|
| 155 |
|
|
|
|
| 167 |
|
| 168 |
| Language | Adapter file | Backbone | WER |
|
| 169 |
|---|---|---|---|
|
| 170 |
+
| Hindi (`hi`) | [`polywhisper_output_hi/adapters_v3/hi_best_clean.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_hi/adapters_v3/hi_best_clean.pt) | `openai/whisper-small` | 46.3 |
|
| 171 |
+
| Tamil (`ta`) | [`polywhisper_output_ta/adapters_v3/ta_best_clean.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_ta/adapters_v3/ta_best_clean.pt) | `openai/whisper-small` | 70.1 |
|
| 172 |
+
| Telugu (`te`) | [`polywhisper_output_gpu0/adapters_v3/te_best_prod.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_gpu0/adapters_v3/te_best_prod.pt) | `openai/whisper-small` | 100.1 |
|
| 173 |
+
| Bengali (`bn`) | [`polywhisper_output_gpu0/adapters_v3/bn_best_prod.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_gpu0/adapters_v3/bn_best_prod.pt) | `openai/whisper-small` | 130.2 |
|
| 174 |
+
| Marathi (`mr`) | [`polywhisper_output_gpu1/adapters_v3/mr_best_prod.pt`](https://huggingface.co/eulogik/polywhisper/resolve/main/polywhisper_output_gpu1/adapters_v3/mr_best_prod.pt) | `openai/whisper-small` | 96.7 |
|
| 175 |
|
| 176 |
+
All adapters are rank-16 LoRA (decoder + encoder attention), ~14MB each. Backbone weights are **not** included β they load from `openai/whisper-small` at runtime. The `_prod` suffix is the v9 production-run tag, not an augmentation marker: Telugu was trained clean in the selective v9 recipe.
|
| 177 |
|
| 178 |
## π Quickstart
|
| 179 |
|
|
|
|
| 223 |
|
| 224 |
Files are named `{lang}_{lang}_best_prod_{encoder,decoder}{,_int8}.onnx`. INT8 is ~4Γ smaller.
|
| 225 |
|
| 226 |
+

|
| 227 |
+
|
| 228 |
**Verification:** fp32 ONNX vs PyTorch max diff < 1e-3 on all five languages (encoder + decoder). End-to-end greedy spot-checks (FLEURS audio, beam=1):
|
| 229 |
|
| 230 |
| Lang | torch WER | ONNX INT8 WER |
|
|
|
|
| 254 |
**How is it different from fine-tuning Whisper?**
|
| 255 |
Full fine-tuning rewrites ~244Mβ1.5B weights per language. PolyWhisper freezes the backbone and trains ~3.5M LoRA parameters per language (~14MB), so five languages ship for the storage cost of a rounding error.
|
| 256 |
|
| 257 |
+
**Which languages are usable?**
|
| 258 |
+
All five ship working adapters. Hindi (46.3 WER) and Tamil (70.1) are strongest; Telugu, Bengali, and Marathi remain high-WER research adapters, useful for assistive/search/subtitle-draft workflows rather than verbatim transcription.
|
| 259 |
|
| 260 |
**Can I run it on CPU?**
|
| 261 |
Yes β export to ONNX INT8 and run with ONNX Runtime, no GPU required.
|
|
|
|
| 278 |
|
| 279 |
```bibtex
|
| 280 |
@misc{polywhisper2026,
|
| 281 |
+
title = {PolyWhisper: Efficient Multilingual Indic ASR via Frozen Backbone and Per-Language LoRA Adapters},
|
| 282 |
+
author = {Kishore, Gautam},
|
| 283 |
year = {2026},
|
| 284 |
publisher = {HuggingFace},
|
| 285 |
url = {https://huggingface.co/eulogik/polywhisper}
|