Whistle for Czech
Czech added to Cactus Whistle by LoRA finetuning, following the Cactus article Fine-tuning Whistle.
whistle-cs.cact is a drop-in Whistle model (W4A8, 29 MB) that transcribes Czech. adapter.safetensors is the
LoRA it was built from. Both are the best run of our fourth sweep, v4_r32_robust. Every other run, with
its adapter, .cact, config and test hypotheses, is under experiments/.
This is an early, community-made model. On clean read speech it works; on noisy or spontaneous speech it still makes many mistakes (see Results and Limitations).
Use
import needle # pip install cactus-needle
print(needle.transcribe("clip.wav", language="cs", weights="whistle-cs.cact")["text"])
As in the Cactus article, the same .cact can be passed as weights= to cactus.transcribe. To rebuild the
.cact from the adapter (it is merged into the base weights and quantised again):
needle whistle build --lora adapter.safetensors --out whistle-cs.cact
The adapter adds Czech characters to the vocabulary (tokens.txt) and keeps the other Whistle languages in the
model (en, de, fr, es, it, nl, pl, cs). Only Czech was trained. The LoRA touches shared weights, so the other languages may have
degraded, and we did not test them.
Results
Word error rate on 1,000 held-out test clips (400 Common Voice, 200 VoxPopuli, 400 YODAS), greedy decoding of the
shipped .cact files. WER uses Whisper's BasicTextNormalizer, so case and punctuation are ignored.
eval_runs.py in the project repository produced these numbers.
| run | recipe (changes from the baseline) | test WER | Common Voice | VoxPopuli | YODAS | best val loss | 4 recordings |
|---|---|---|---|---|---|---|---|
| v4_r32_robust (this model) | rank 32, augmentation, dropout, weight decay | 19.3% | 17.4% | 12.2% | 26.6% | 0.188 | 36.6% |
| v4_aug | SpecAugment + speed perturbation | 20.9% | 19.1% | 13.7% | 28.3% | 0.204 | 39.8% |
| v4_lr3e-3_robust | lr 3e-3, augmentation, dropout, weight decay | 21.0% | 20.1% | 13.2% | 28.5% | 0.203 | 36.6% |
| v3_e5_lr2e-3_b16_r32 | rank 32 | 21.3% | 19.2% | 14.2% | 28.8% | 0.205 | 35.5% |
| v4_robust | augmentation, dropout, weight decay | 21.5% | 21.2% | 13.2% | 29.0% | 0.213 | 40.9% |
| v3_e5_lr2e-3_b8 | batch 8 | 22.3% | 21.0% | 15.1% | 29.3% | 0.221 | 40.9% |
| v4_ref_seed1 | baseline, seed 1 | 22.6% | 21.7% | 14.8% | 30.0% | 0.225 | 37.6% |
| v3_e5_lr2e-3_b16 | baseline: rank 16, batch 16, lr 2e-3, 5 epochs | 23.0% | 21.4% | 15.4% | 30.8% | 0.229 | 35.5% |
| v4_reg | dropout + weight decay only | 23.8% | 23.2% | 16.5% | 30.7% | 0.228 | 37.6% |
The last column matters more than it looks. It is the WER on four real recordings of our own (a pub conversation, a man reading a book in a park, an audiobook, a lecture; 93 words in total, not published). The in-domain test set improved by 3.7 points from the baseline to this model, but on the recordings all nine runs fall between 35.5% and 40.9%, which is a spread of five words and well inside the noise. We therefore do not have evidence that this model is better on real speech, only on the kind of audio it was trained on. The recordings are dominated by the pub conversation, where every model gets 16-20 of 25 words wrong.
Two more observations from the table: rank 32 and augmentation each helped the in-domain test set, while
regularisation alone (v4_reg) did not. Re-running the same recipe with another seed (v4_ref_seed1 against
v3_e5_lr2e-3_b16) moved the test WER by 0.4 points, which is a single pair but a rough indication of how big a
difference is worth reading.
Training
Data. 72,000 training clips (108 h), 1,000 validation and 1,000 test clips, built from
chosenek/czech-speech-combined (revision
8b19d45c5b0eb9ca3aaa84aa961693d88bef5ed2), which in turn collects Common Voice, VoxPopuli, YODAS and two
audiobook collections.
| source | train | validation | test |
|---|---|---|---|
| Common Voice Czech | 32,000 | 400 | 400 |
| YODAS (YouTube, automatic transcripts) | 24,500 | 400 | 400 |
| VoxPopuli (parliament) | 11,500 | 200 | 200 |
| audiobooks + audiobooks_new | 2,000 + 2,000 | - | - |
- Validation and test clips are held out by group (YouTube video, blocks of consecutive VoxPopuli clips) so speakers do not leak into training. Common Voice has no speaker id and is sampled at random.
- Transcripts containing digits, or characters outside ASCII plus the Czech letters, were dropped. The model has therefore never seen digits: expect numbers to be spelled out, or wrong.
- The audiobook transcripts are entirely lowercase, so they were used only for training (about 5% of it), never for validation or test.
- YODAS transcripts are automatic (the source dataset card describes a Whisper large-v3 transcription and confidence filter), not human-verified, so part of the YODAS error is probably label noise.
- Clips are resampled to 16 kHz mono wav.
Recipe of v4_r32_robust. LoRA rank 32, alpha 64, learning rate 2e-3, batch 16, up to 6 epochs with the best
checkpoint (by validation loss) kept, SpecAugment (2 frequency masks of up to 15 mel bins, 2 time masks of up to
5% of the clip), speed perturbation of half the clips by up to ยฑ10%, rank dropout 0.1, weight decay 1e-2. It was
trained with training/whistle_train.py, a reimplementation of needle whistle finetune (cactus-needle 3.2.8,
Apache-2.0) that exposes weight decay, dropout, augmentation, best-checkpoint saving and early stopping.
Runs of sweep 3 used needle whistle finetune itself (5 epochs, batch 16, lr 2e-3, rank 16 unless noted above)
and saved the last epoch.
Limitations
- Noisy, spontaneous or conversational speech is still poor: 36-41% WER on our four recordings, and the YODAS (YouTube) part of the test set is the worst (26.6%).
- No digits in the training data. Casing and punctuation come mostly from the cased sources and are not scored by the WER above.
- The in-domain test set and the real recordings disagreed about which run is best (see Results). Treat differences of a few points between the runs as noise.
- Four recordings is a very small real-world test. Please report problems with other kinds of audio.
How we got here
This repository is the third attempt. We kept the failed ones in the numbers because they explain the recipe.
Attempt 1: just follow the article. We took the Cactus recipe literally: needle whistle finetune on 7,000
Common Voice clips (9 h), 3 epochs, batch 16, lr 1e-4. Test WER 88.5%, nothing usable. A sweep of seven
configurations (more epochs, batch 8 to 32, lr 1e-4 to 1e-3) got the best run to 57.4%, still not usable.
It showed that the learning rate mattered most (1e-4: 86.5%, 3e-4: 68.9%, 1e-3: 57.4% at 8 epochs), that smaller
batches helped, and that the best run overfitted after epoch 5. We suspected the data.
Attempt 2: a bigger and more diverse dataset. We built dataset_v2 from czech-speech-combined, balanced
across sources, first with 34,000 and then with 72,000 training clips. Same recipe, much better: 32.0% on the new
(harder) test set with 34k clips and 24.6% with 72k. Data was the main lever, much more than any hyperparameter.
On the way we learned a few things:
- The audiobook transcripts are all lowercase. Mixing them in freely would teach random casing, so they are train-only.
- The finetune log's WER ignores case and punctuation, and is measured on a quantised copy that differs from
the built
.cactby 1.6-2.6 points. We scored the real.cactfiles from then on. - A CUDA crash in the middle of a run left the GPU unusable and the process hung for 16 hours, because the adapter is only written at the end of training. Later sweeps got fail-fast checks and a watchdog.
Listening misled us. Without reference transcripts, our ears picked a different "best" model than the test set did, and a drift test (scaling the adapters down to 0.5x and 0.75x) found nothing. Once we transcribed the four recordings by hand, the runs turned out to be about equal. That is why the table above has a "4 recordings" column, and why it looks so flat.
Attempt 3: a trainer with more knobs. The needle CLI only exposes epochs, batch size, learning rate, rank,
alpha and seed. We reimplemented the finetuning step to add SpecAugment, speed perturbation, rank dropout, weight
decay, best-checkpoint saving and early stopping, and ran six more runs (the v4_* rows). Results: augmentation
and rank 32 helped the in-domain test set, regularisation alone did not, and none of it moved the real
recordings measurably. Our reading is that the remaining gap is the data (spontaneous, noisy speech is rare
in our training set) and not the hyperparameters, so the next step is more of that kind of audio, and a larger
set of real recordings with reference transcripts to judge it.
Files
| path | what |
|---|---|
whistle-cs.cact, adapter.safetensors |
the recommended model (v4_r32_robust) and its LoRA |
tokens.txt |
Czech characters added to the vocabulary |
training/whistle_train.py |
the trainer used for sweep 4 |
experiments/sweep3/<run>/ |
adapter.safetensors, whistle-cs.cact, params.json, log.txt, test hypotheses |
experiments/sweep4/<run>/ |
adapter.safetensors (best checkpoint), whistle-cs.cact, config.json, evals.json, test hypotheses (test_hyp.jsonl from the sweep's 5-beam evaluation, test_hyp_cact.jsonl from the table above) |
Acknowledgements and citation
This work follows the Cactus Compute article and builds on their Whistle model and needle tooling:
@misc{mroz2026finetuning,
title = {Fine-tuning Whistle},
author = {Mroz, Jakub},
year = {2026},
month = oct,
howpublished = {Cactus Compute blog},
url = {https://cactuscompute.com/blog/finetuning-whistle}
}
The training data is a selection from chosenek/czech-speech-combined, which collects Mozilla Common Voice, VoxPopuli, YODAS and Czech audiobook recordings. The individual corpora keep their own licences; please see the source dataset card. The model weights are released under Apache-2.0, like the base model.
Model tree for hahihula/whistle-czech
Base model
Cactus-Compute/whistle