Pip voice cleanup (Qwen3-0.6B, LoRA fine-tune)
Cleans up speech-to-text transcripts of a developer dictating a message to a coding agent, in German and English. It runs inside Pip on the user's own device, right after on-device Whisper, and:
- fixes misheard words, including technical terms and names;
- removes filler words, stutters and false starts;
- applies spoken self-corrections ("no wait, I mean …");
- formats spoken lists and numbers (numbers as digits);
- adds punctuation and capitalisation.
It keeps the speaker's words, meaning and language (German stays German). It is not an assistant: it never answers, follows or translates the dictated text.
Files
| Folder | Format | Size |
|---|---|---|
mlx-q8/ | MLX 8-bit (affine, group size 64), fused LoRA | about 645 MB (weights 633 MB) |
gguf-q8/ | GGUF Q8_0 from the same fused weights, for llama.cpp | 639 MB |
Other runtimes' formats of the same model may sit beside mlx-q8/ in this repository.
Model
- Base: Qwen/Qwen3-0.6B, via
mlx-community/Qwen3-0.6B-bf16 at revision
42096995f6402fde107068cf530136fe64b604f8. - Fine-tune: all-layer LoRA, rank 16, scale 2, dropout 0.05, 1,562 updates (batch 4, lr 1e-4 cosine), prompt masking, max sequence 1,024; fused to bf16 and quantised to 8 bits with mlx-lm 0.32.2.
- Training data (German and English, synthetic only, no personal recordings): teacher-generated raw/clean dictation pairs, samples of adikuma/mumble-cleanup-dataset (Apache-2.0) and the train split of juanquivilla/sotto-transcript-cleanup (MIT), plus macOS text-to-speech audio run through Whisper large-v3-turbo for realistic recognition errors.
Intended use in Pip
Pip offers to download this model once (Mac and iPhone use mlx-q8/, Windows uses gguf-q8/); it is pinned to an exact commit of this repository and
each file's SHA-256 is checked after download. Pip sends a fixed system prompt and the transcript between
<transcript> tags, generates greedily (thinking disabled) after a <cleaned> prefix, and accepts only a closed
<cleaned>…</cleaned> answer that passes a word-provenance guard (few new words, bounded deletions). Anything
else, or a missing model, keeps the raw Whisper text. Transcripts never leave the device.
Outside Pip, expect the same prompt format to be required; the model is small and specialised, and its output should be checked the same way.