Automatic Speech Recognition
Transformers
Safetensors
Hungarian
whisper
hungarian
common-voice
Eval Results (legacy)
Instructions to use SubZtep/whisper-small-hu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SubZtep/whisper-small-hu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="SubZtep/whisper-small-hu")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("SubZtep/whisper-small-hu") model = AutoModelForSpeechSeq2Seq.from_pretrained("SubZtep/whisper-small-hu") - Notebooks
- Google Colab
- Kaggle
whisper-small-hu
openai/whisper-small fine-tuned for Hungarian speech recognition on Mozilla Common Voice 26.0.
| WER | CER | |
|---|---|---|
| openai/whisper-small (zero-shot) | 46.79 | 11.70 |
| whisper-small-hu | 15.62 | 3.33 |
Both models evaluated on the full Common Voice 26.0 Hungarian test split (13,127 clips) with
the same pipeline: greedy decoding, forced <|hu|><|transcribe|> prompt, predictions and
references lowercased and whitespace-normalized before scoring.
Usage
from transformers import pipeline
asr = pipeline("automatic-speech-recognition", model="SubZtep/whisper-small-hu")
print(asr("audio.mp3", generate_kwargs={"language": "hungarian", "task": "transcribe"})["text"])
Training
- Data: Common Voice 26.0 Hungarian
trainsplit (62,284 clips), silence-trimmed, 16 kHz - Schedule: 3 epochs (~11,700 steps), effective batch size 16 (8 ร 2 gradient accumulation)
- Optimizer: AdamW, lr 1e-5, linear decay with 500 warmup steps, fp16, gradient checkpointing
- Hardware: single NVIDIA T4 (Google Colab)
- Selection: best checkpoint by WER on a fixed 1,500-sample subset of the
devsplit
Training code: https://github.com/SubZtep/whisper-hu
Training progress
WER on the 1,500-sample dev subset during training:
| Epoch | Step | Train Loss | Val Loss | WER |
|---|---|---|---|---|
| 0.26 | 1000 | 0.3302 | 0.3284 | 30.54 |
| 0.51 | 2000 | 0.2490 | 0.2674 | 25.36 |
| 0.77 | 3000 | 0.2130 | 0.2337 | 23.12 |
| 1.03 | 4000 | 0.1380 | 0.2017 | 18.60 |
| 1.28 | 5000 | 0.1011 | 0.1960 | 18.16 |
| 1.54 | 6000 | 0.0923 | 0.1866 | 17.29 |
| 1.80 | 7000 | 0.0913 | 0.1779 | 16.28 |
| 2.06 | 8000 | 0.0390 | 0.1765 | 15.71 |
| 2.31 | 9000 | 0.0388 | 0.1781 | 15.32 |
| 2.57 | 10000 | 0.0394 | 0.1762 | 15.38 |
| 2.83 | 11000 | 0.0369 | 0.1745 | 15.31 |
Framework versions
- Transformers 4.44.2
- PyTorch 2.11.0+cu128
- Datasets 4.0.0
- Tokenizers 0.19.1
Limitations
- Trained on read speech (Common Voice sentences) โ expect higher error rates on spontaneous conversation, noisy audio, or domain-specific vocabulary
- WER is measured on lowercased text; the model itself outputs casing and punctuation, but their accuracy is not reflected in the score
- Hungarian is agglutinative, so WER punishes single-suffix mistakes as whole-word errors โ the CER of 3.33 is a better sense of how close transcripts are
- Downloads last month
- 369
Model tree for SubZtep/whisper-small-hu
Base model
openai/whisper-smallEvaluation results
- WER on Common Voice 26.0 (Hungarian)test set self-reported15.620
- CER on Common Voice 26.0 (Hungarian)test set self-reported3.330