Why train one
A speech recognizer writes what you said, including the ums, the repeats and the sentence you abandoned halfway. Something has to turn “so um the deploy is at nine no wait ten thirty” into “The deploy is at ten thirty.” on your Mac, in well under a second, before the text is typed.
Small instruction-tuned models were fine with fillers. They were much worse at self-corrections, where the speaker takes something back, and now and then they “fixed” a number that was right. A larger model did better but was too slow for every dictation. So we fine-tuned the small one for this single job.
How it was trained
- Base: Qwen2.5 1.5B Instruct.
- Method: LoRA with MLX on an M1 Pro: rank 16 on 12 layers, learning rate 2e-5, 1,800 iterations, about 80 minutes.
- Data: about 6,300 examples, none recorded from real people. We took clean text, added disfluencies with a script, had macOS voices read it aloud and ran that through Parakeet, the recognizer the app uses for English. The target keeps what Parakeet actually heard, so the model learns to clean up, not to guess words it never heard.
- Also in the mix: spoken lists, names from a recognizer that writes no capitals, and instructions for Command Mode, which edits selected text.
- Leaks: any example sharing five words in a row with a test sentence was removed.
- Shipped as: one 986 MB file, 4-bit (Q4_K_M GGUF), run with llama.cpp inside the app.
The guard
A correction left in the text is a miss you can see. A value quietly swapped is far worse, because you might send it. Before we added two rules, the fine-tuned model scored higher on our tests but settled two values wrongly: in one, “two hundred units, I mean, five hundred” came out as two hundred; in another, a “tomorrow” spread into a second sentence.
So the app checks every answer before it’s typed. Among other things, it throws the model’s answer away when the value said straight after a correction is lost, or when a day or date word appears more often than the speaker said it. Numbers compare as figures, so “five hundred” and “500” are the same. When an answer is thrown away, that part of the dictation keeps a simpler cleanup that doesn’t use the model. The guard is a heuristic: it catches a model that invents, drops or answers, but it can’t prove a rewrite kept the meaning.
Results
The base model against the fine-tuned one, through the same code on the same recordings, on an M1 Pro, one run each, both at Q4_K_M. The fresh set of 12 long dictations was written after training and played no part in it.
What to discount
- All the test audio is synthetic voices reading text we wrote. Nothing here was measured on a real speaker. That’s the next thing we want to fix.
- The checkpoint was chosen on the original tests. The fresh set had no part in that choice, but it was scored more than once, its results produced the two guard rules, and its kinds of correction also appear in training.
- Checkpoints from the same run differed by up to two of 30 short dictations, so a one-point lead is within the noise.
What went wrong on the way
- A setting copied into the model file. llama.cpp’s converter copies the repetition penalty from
generation_config.jsoninto the GGUF. The same weights went from 92% to 88% because of it. Delete that file before converting. - A leak check that couldn’t fail. Our first check for overlap between training and test sentences had a bug in its pattern. It reported 0 overlaps when there were 211. Now we plant a known overlap first, to prove the check can find one.
- Scores hid the worst mistake. The swapped value above came from reading the outputs, not the totals. We read them all now.
The weights
The model is open, under Apache 2.0 like its base: openflow-cleanup-qwen2.5-1.5b on Hugging Face. OpenFlow was the app’s name before Ramblebee. In the app it’s called Standard, and it’s the default for cleanup on your Mac. The other models the app uses are listed, with their makers and licences, on the credits page.
If you know a good open dataset of natural, messy English dictation (not read speech), we’d like to hear about it: send a note.