Check a fine-tuning split before training
Whistle can be adapted to its seven existing languages or to a new language target. Before spending time on an adapter, check the three JSONL files locally: malformed rows, missing fields, duplicate clips and leaking audio between splits should not survive to the training run.
- Required splits
- 3 JSONL
- Existing languages
- 7 to adapt
- Adapter after training
- 29 MB
Training data
The examples used to update the model.
No training data loaded.
Validation data
Held-out examples used while training.
No validation data loaded.
Test data
A final holdout for the tuned model.
No test data loaded.
duration_s and language codes.
What this finds — and what it cannot
Checked locally
- Every non-empty record is a JSON object with non-empty string
audioandtextfields. - Blank lines, invalid JSON, empty datasets and a missing train, validation or test split.
- Duplicate audio paths inside a split and the same relative path across splits.
- An optional numeric
duration_s; values over 30 seconds are flagged because the official trainer skips those clips. - Language codes are listed as one of the seven existing languages or as a new language target.
Requires the real files or trainer
- Whether an audio path exists, decodes or matches its transcript.
- The real duration when
duration_sis absent or wrong. - The 320-token decoder ceiling. The official trainer skips samples above it.
- Speaker and recording diversity, label quality, or whether a split is representative.
- Word error rate before and after fine-tuning. Measure both on the same held-out audio.
Build the adapter after the data passes
The official workflow installs the training extras, fine-tunes against the three splits and then builds a deployable Cactus model. Training output is an adapter; the final tuned model is larger than the stock 16.9 MB download.
pip install "cactus-needle[train]" needle whistle finetune train.jsonl validation.jsonl test.jsonl --tokens tokens.txt --out adapter.safetensors needle whistle build --lora adapter.safetensors --out tuned.cact
The audio path is resolved relative to its JSONL file. The official training path skips clips longer than 30 seconds, rows with empty text and samples longer than 320 decoder tokens. A language value is optional in the documented JSONL example; this checker accepts it on any row and lists it when present.
New writing systems need much more thought than a language-code change. Cyrillic, Arabic, Chinese, Japanese and Korean fall outside Whistle's current tokenisation and vocabulary; the official model does not promise usable results for them. Treat a new language target as a data and evaluation project, not a one-line switch.
Sources: official Needle README and Cactus fine-tuning guide.
Related
- Measure the baseline before fine-tuning
- How Whistle handles audio longer than 30 seconds
- Try keyword biasing before building an adapter
- What the stock seven languages cover