A Slovak XLS-R Model Quietly Hits 860,000 Monthly Downloads on Hugging Face
A community-fine-tuned Slovak speech recognition model built on Meta's XLS-R has quietly racked up 860k downloads on Hugging Face.
Takeaways
- Community Slovak ASR model wav2vec2-xls-r-300m-sk-cv8 has crossed 860k downloads on Hugging Face.
- Fine-tuned from Meta's XLS-R 300m on Common Voice 8.0 Slovak split.
- Reports 49.6 percent WER and 13.3 percent CER on Common Voice 8 test.
- Robust Speech Event WER above 80 percent, so noisy audio remains a weak spot.
- Apache 2.0 licensed, works with the standard Hugging Face ASR pipeline.
- Training recipe uses effective batch 640, LR 7e-4, 50 epochs, AMP.
Hugging Face user comodoro has drawn more than 860,000 monthly downloads for a Slovak checkpoint built from Meta’s XLS-R 300M model. The Apache 2.0-licensed release gives developers a self-hosted option for Slovak speech recognition without collecting labeled audio and training a model from scratch.
860,000 downloads in context
Hugging Face calculates its displayed download figure from qualifying file requests over a rolling 30-day window. Automated deployments, cache misses, continuous integration jobs, and repeated installations can each generate requests, so the figure does not represent unique users or lifetime installations. It does show sustained retrieval activity around a language-specific community model.
Slovak has less labeled speech data and fewer open checkpoints than widely supported languages such as English. This release packages a Slovak acoustic model, tokenizer, processor, and CTC decoding configuration behind the standard transformers interface.
| Base model | XLS-R 300M |
|---|---|
| Training data | Slovak speech from Mozilla Common Voice 8 |
| Architecture | Wav2Vec2-style encoder with a CTC output head |
| Expected audio | Mono audio sampled at 16 kHz |
| License | Apache 2.0 |
How XLS-R becomes Slovak
Meta’s Facebook AI team pretrained XLS-R on about 436,000 hours of unlabeled speech spanning 128 languages. Pretraining teaches the encoder to extract useful speech representations from raw waveforms. Fine-tuning then maps those representations to Slovak character tokens using the labeled Common Voice recordings.
The CTC head predicts tokens at successive audio frames, then collapses blanks and repeated symbols into a transcript. This design supports fast greedy decoding and exposes raw logits for custom decoding. The checkpoint does not bundle a separate language model, so vocabulary-aware rescoring requires an additional decoder such as pyctcdecode with a compatible KenLM model.
Noise widens the benchmark gap
The model card reports the following results without confidence intervals or an independent evaluation. Common Voice primarily contains prompted recordings, while the Robust Speech Event set represents a harder acoustic domain.
| Test set | WER | CER |
|---|---|---|
| Common Voice 8 | About 0.496 | About 0.133 |
| Robust Speech Event | Above 0.80 | Not reported |
Word error rate counts substitutions, deletions, and insertions relative to the reference transcript. A WER of 0.496 corresponds to roughly 49.6 word edits per 100 reference words. Character error rate applies the same calculation to characters, and a single incorrect inflection can raise WER while producing only a small character-level difference. The higher out-of-domain WER indicates substantial sensitivity to noise, recording conditions, speaking style, or domain vocabulary.
Run it locally
The standard Hugging Face pipeline loads the processor and model together. File-path input requires a supported audio decoder, commonly ffmpeg, which converts the recording to the model’s expected sampling rate.
from transformers import pipeline
asr = pipeline(
"automatic-speech-recognition",
model="comodoro/wav2vec2-xls-r-300m-sk-cv8",
)
result = asr("sample_sk.wav")
print(result["text"])
File-path decoding handles resampling when the required backend is installed. Applications that already hold audio in memory should pass a mono waveform with its original sampling rate, allowing the pipeline to resample it correctly:
audio = {
"raw": waveform,
"sampling_rate": sample_rate,
}
result = asr(audio)
Direct loading through AutoProcessor and AutoModelForCTC exposes the logits needed for beam search, vocabulary constraints, confidence analysis, or language-model rescoring. Any external CTC decoder must use an alphabet that matches the checkpoint tokenizer.
Training settings worth reusing
The model card records the main optimization settings used for the Common Voice fine-tune:
- A learning rate of
7e-4with linear decay and 500 warmup steps - A per-device training batch size of 32
- Gradient accumulation across 20 steps, yielding 640 examples per optimizer update on one device
- Training for 50 epochs on the Common Voice 8 training and validation splits
- Native automatic mixed-precision training
Reproducing the reported scores also depends on transcript normalization, audio filtering, software versions, random seeds, device count, and checkpoint selection. The listed hyperparameters provide a practical starting point for another low-resource XLS-R fine-tune rather than a complete reproducibility record.
Choose by audio conditions
- Clean Slovak recordings: Suitable for evaluating read speech, voice commands, and controlled single-speaker audio.
- Private or offline processing: The weights can run locally without sending recordings to a hosted transcription service.
- Noisy or spontaneous speech: Validate on representative call-center, meeting, field, and multi-speaker recordings before deployment.
- Punctuation and casing: Plan for downstream restoration when the application requires formatted prose.
- Long recordings: Use overlapping chunks and inspect transcript boundaries for duplicated or missing words.
The 300-million-parameter encoder requires about 1.2 GB for FP32 weights or 0.6 GB for FP16 weights before runtime buffers and audio activations. CPU inference is possible, while GPU latency and memory use depend on precision, batch size, and recording length.
Larger Whisper variants use an autoregressive multilingual decoder and can emit punctuation and casing. A useful comparison should run both systems on the same Slovak clips, with identical transcript normalization, target hardware, and latency constraints.