Pratham LFM2.5-350M Polisher v21
A 350M dictation polisher: it turns spoken, unedited speech into clean written prose.
Built on LiquidAI/LFM2.5-350M. Runs on CPU.
This is a separate release from lfm2.5-350m-polisher (v20) and does not replace it.
v20 remains available; v21 is the long-form revision described below.
Q4_K_M is 229 MB, Q6_K is 293 MB. Both match v20's footprint — the quality change below comes from training, not from size.
What changed and why
v20 was trained on dictations whose median length was 35 words and whose longest was 148 words. Long input was never in its distribution, so it failed on it — not because of a context limit, but because it had never seen the case.
v21 is trained on a corpus built for length: 1,190 examples, median 211 words, 90th percentile 1,007 words, longest 1,080. Inputs are plan-induced speech — fillers, self-repair, restated clauses and hedges placed at grammatical boundaries — rather than clean prose with "you know" appended, which is what the previous corpus did.
Targets are factually exact by construction: each record carries a reference rendering of the same content, and enumerations are converted to bullet lists deterministically. Teacher outputs were admitted only behind a fact-lock (no invented numbers, bounded invented content words, ≥80% content recall, sane length ratio). Anything that failed the lock was discarded rather than trained on.
Measured result
Same four dictations, same server settings (n_ctx 4096, greedy), with and without a system
prompt. recall is the share of the input's content words that survived; fab counts
content words in the output that were absent from the input.
| input | system prompt | v20 recall | v21 recall | v20 fab | v21 fab |
|---|---|---|---|---|---|
| 82 words | yes | 0.625 | 0.925 | 3 | 0 |
| 82 words | no | 0.250 | 0.925 | 3 | 0 |
| 150 words | yes | 0.387 | 0.960 | 9 | 0 |
| 150 words | no | 0.013 | 0.960 | 3 | 0 |
| 325 words | yes | 0.586 | 0.974 | 11 | 0 |
| 325 words | no | 0.125 | 0.974 | 40 | 0 |
| 381 words | yes | 0.588 | 0.978 | 16 | 0 |
| 381 words | no | 0.297 | 0.973 | 55 | 0 |
| v20 | v21 | |
|---|---|---|
| Mean content recall | 0.359 | 0.958 |
| Fabricated content words (total) | 140 | 0 |
| Mean reward | −8.43 | +0.36 |
Two things to read from this. First, fabrication goes to zero while recall almost triples — the model stopped inventing and stopped dropping. Second, the system prompt no longer matters: v21 scores identically with and without it, where v20 collapsed to 0.013 recall on a 150-word dictation without one. The task is learned from the user turn itself.
Prompt variants were cycled during training precisely for that: one third of examples had no system message at all, one third a minimal one, one third the full one.
Usage
llama-cli -m LFM2.5-polisher-v21-Q4_K_M.gguf \
-p "Okay so I looked at the new build, the loading screen is too long, the settings page crashes when you tap export, and the text is too small on mobile. So yeah fix all of that."
No system prompt is required. Adding one helps slightly on unusual input but is not needed for normal dictation.
Limitations
- Style is faithful before it is elegant. The targets are factually exact renderings, so the model copies and cleans reliably but does not rewrite for flair. If you want noticeable vocabulary uplift, that needs a stronger teacher than a 350M's targets.
- The RL stage is incomplete. A GRPO run with the fidelity reward above produced only a few dozen gradient steps before the session ended; the shipped weights are the supervised fine-tune. The table is SFT-only and is reported as such.
- Paragraph breaks still belong in a deterministic post-processor, not in the weights.
- Trained for English editing. Not a summariser, translator or fact-checker.
Licence and modifications
A modified version of LiquidAI/LFM2.5-350M, distributed under the LFM Open License
v1.0. Files differ from the original: LoRA weights were trained and merged, and the model
was converted to GGUF. Commercial use is permitted below USD $10M annual revenue. Not
affiliated with, endorsed by, or sponsored by Liquid AI.