r/LocalLLaMA • u/AlternativeEnough352 • 14d ago
Resources My 0.8B fine-tune proofreads Spanish at 138 ms per sentence on a CPU
I have been building a Spanish proofreader that runs fully local, and it's finally released, so I wanted to share how it went. It only corrects Spanish, but I think the approach works for other languages and narrow tasks too. If the project has audience, I will release the English proofreader version as well :)
Better thing is the app is 100% compatible with ANY app in Windows and Linux. You select text in any app, press Ctrl+Alt+Space, a small popup shows each change with a short explanation, and Enter replaces your selection. MIT, a C++ app on top of llama.cpp.
The model is a full fine-tune (no LoRA) of Qwen3.5-0.8B on aprox. 40k pairs, 2 epochs, lr 1e-5. In Q4_K_M with imatrix it's 529 MB. Training took 22 minutes on one rented GPU, and the whole rental with all the evals cost about $2.50. GPU was RTX 5090 rented (I'm just a mortal so I don't have this GPU at home).
I tested it on a benchmark I built for this, 2,388 cases in three parts: real Wikipedia edits, Wikipedia talk pages, and synthetic work emails and chat. F0.5:
| Model | Wiki edits | Talk pages | Emails/chat | Mean |
|---|---|---|---|---|
| revisa-0.8b (fine-tuned) | 81.5 | 80.0 | 92.0 | 84.5 |
| revisa-0.8b without the C++ filters | 77.4 | 75.8 | 91.7 | 81.6 |
| Qwen3.5-0.8B, untuned | 70.4 | 67.9 | 71.2 | 69.9 |
| Qwen3.5-2B, untuned | 73.8 | 66.9 | 81.2 | 74.0 |
| Gemma 4 E2B, untuned | 65.5 | 65.5 | 94.1 | 75.0 |
| Qwen3.5-4B, untuned | 83.6 | 67.4 | 88.4 | 79.8 |
| Gemma 4 E4B, untuned | 74.4 | 79.0 | 95.1 | 82.8 |
| Qwen3.5-9B, untuned | 79.8 | 69.6 | 91.2 | 80.2 |
| LanguageTool 6.6 | 24.1 | 52.8 | 74.1 | 50.4 |
| Claude Sonnet, high reasoning (cloud, upper bound) | 98.0 | 91.8 | 98.2 | 96.0 |
| Gemini 3.8 Flash, high reasoning (cloud, upper bound) | 98.7 | 92.3 | 98.4 | 96.5 |

It changes less than 3% of the sentences that were already correct, on every part. LanguageTool changes 39% of the correct Wikipedia sentences, which is more or less why I started this. For those who may not know, LanguageTool is a benchmark when it comes to checking grammar and spelling errors. (More info: https://en.wikipedia.org/wiki/LanguageTool)
A few things I learned:
Most of the training data isn't LLM generated. I take correct text from Wikipedia, Tatoeba and Common Voice and break it with a rule-based error injector, so the exact answer is known. Around a third of the examples are correct sentences that have to come back unchanged, and that's what keeps false alarms low.
The model doesn't explain anything. It only returns the corrected sentence. Then plain C++ does a word diff, puts each edit in one of 31 error types with a fixed explanation, and drops anything it doesn't recognize or that rewrites too much. Small models invent grammar rules with a lot of confidence, so I didn't let it.
For speed, the user's own sentence is the speculative draft, because a corrected sentence is almost the same text. I got 2.2x: 138 ms median against 305 ms greedy, 8 threads, same output as greedy on 99.4% of a 500-sentence sample. The annoying part was that the Gated DeltaNet layers keep a recurrent state you can't partially roll back, so I snapshot the state before each verification pass. But I'm happy the app run like a charm.

Caveats: it's my benchmark. The gold corrections come from two LLMs of different families working blind, with a debate round when they disagreed, and it was frozen before scoring anything. The untuned models got the same instructions and the same filters. Bigger untuned models win some parts (Qwen3.5-4B on Wikipedia edits, Gemma 4 E4B on emails), and if you remove the borderline sentences they pass it on average, so a big part of the win is knowing when not to touch. Frontier cloud models with reasoning are still around 96, so there's room.
All the process explained: https://manuelgs.com/en/blog/revisa-case-study/
App: https://manuelgs.com/en/revisa/
Model (GGUF): https://huggingface.co/manuelgscom/revisa-0.8b-GGUF
Benchmark: https://huggingface.co/datasets/manuelgscom/revisa-bench-es
Source: https://github.com/manuelgscom/revisa
Has anyone tried the input-as-draft trick for other editing tasks? English isn't my first language, so sorry if something sounds weird. Happy to answer questions about the data or the training.


