LFM2.5-350M Polisher
A 350M dictation polisher: it turns spoken, unedited speech into clean written prose. Built on
LiquidAI/LFM2.5-350M, fine-tuned by distillation from a larger in-house editor model.
Runs on CPU. Q6_K is 279.8 MB; Q4_K_M is 218.7 MB.
What it does
Given raw dictated text, it returns edited prose that:
- removes spoken filler and false starts (
so basically,you know,like) - merges sentence fragments into their parent sentence
- repairs garbled grammar and idioms (
I would suggest you to→I would suggest keeping) - hyphenates compound modifiers and fixes product names (
jump-scary,high-quality,graphics card) - trims redundancy and elevates imprecise wording without changing register
- turns inline enumerations — including lists spread across several sentences — into bullet lists
- preserves every fact, number, name and quantity; it is trained not to add content
Contractions and casual register are preserved deliberately. It sharpens wording; it does not make plain speech sound corporate.
Usage
llama.cpp
llama-cli -m LFM2.5-polisher-v20-distill-Q6_K.gguf \
--system-prompt-file system_prompt.txt \
-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."
Paragraph formatting
A 350M model is reliable at editing but unreliable at blank-line placement. This repo ships
polish_postprocess.py, a deterministic paragraph rule applied to the model's output — it keeps
related sentences in one paragraph, breaks only on discourse markers, never leaves an orphan
one-sentence paragraph, and leaves bullet lists untouched.
from polish_postprocess import paragraphs
clean = paragraphs(model_output)
In testing this took 12 sample outputs from 26 paragraphs down to 16 while leaving both bullet lists byte-identical.
Training
- Method: LoRA distillation. A fine-tuned LFM3-1.7B editor generated 797 rewrite targets on synthetic dictated inputs; those targets were fact-locked (no numbers or content words absent from the input, no content loss) and mixed with rule-generated pairs and hand-written gold examples.
- Adapter: LoRA, r=32, on attention and MLP projections.
adapter_v20_distill/ - Quantisations:
Q6_K(recommended) andQ4_K_M.
Limitations
- It occasionally invents a clause. In our 12-case acceptance test, 3 cases added a detail that was not in the input. Treat output as a draft for review, not as a verified transcription.
- Paragraph breaks are handled by
polish_postprocess.py, not by the model. - Trained for English editing of short-to-medium dictations. It is not a summariser, translator or fact-checker.
Licence and modifications
This is a modified version of LiquidAI/LFM2.5-350M, distributed under the
LFM Open License v1.0 (see LICENSE). Files differ from the original: LoRA weights were trained
and merged, and the model was quantised to GGUF.
Commercial use is permitted for entities below USD $10M annual revenue. This model is not affiliated with, endorsed by, or sponsored by Liquid AI. "LFM" and "Liquid AI" are used only to describe the origin of the base model.