A fast English grammar checker. Give it a passage of numbered paragraphs and it answers with JSON only. Each finding has the paragraph, the exact phrase, a one-sentence reason and a corrected phrase. It never rewrites the text.
It is Qwen3.6-35B-A3B made smaller and taught one job:
| File | qwen3.6-grammar-Q4_K_M.gguf, 11.4 GB |
| Parameters | ≈19B total, ≈3B active per token (8 of 128 experts plus a shared expert, 40 layers) |
| Base | Qwen3.6-35B-A3B, text only; the vision tower and MTP head are removed |
| Context trained | passages up to 2,400 characters (sequences up to 1,408 tokens) |
| Tested with | llama.cpp 5bacb7c (llama-server) |
| License | Apache 2.0, as the base model |
Proofreading a 38,600-character novel chapter (about 6,500 words) in passages of up to 2,400 characters. Hardware: NVIDIA T1000 8 GB, AMD Ryzen 5 7600 (6 threads). All runs used the same llama.cpp build and the same harness.
| Model | Time |
|---|---|
| Qwen3.6-35B-A3B (UD-Q4_K_XL), full ~2,500-token instruction prompt | 17:16 |
| Same, with the instruction prompt cached between passages | about 6:00 |
| This model | 2:58 |
The model was measured against its teacher on 200 held-out passages: 40 from each of five sources, none seen in training. A finding counts as caught when it overlaps the teacher's finding in the same paragraph.
| This model | Qwen3.6 at Q4 on llama.cpp | |
|---|---|---|
| Teacher's findings caught | 79% | 90% |
| Same phrase and same fix | 48% | 66% |
| Extra findings (not the teacher's) | 19% | 12% |
| Readable JSON replies | 199 of 200 | 186 of 200 |
The teacher's findings are Qwen3.6 in bf16 with the full instructions. The right-hand column is the base model quantized and run locally, so it shows how far any local copy drifts from the teacher.
By source, this model catches:
| Source | Caught |
|---|---|
| C4_200M | 75% |
| GitHub Typo Corpus | 81% |
| OpenWebText | 79% |
| PG-19 fiction | 78% |
| PG-19 fiction with planted errors | 88% |
draft-mtp cannot be used.Start a server:
llama-server -m qwen3.6-grammar-Q4_K_M.gguf --jinja -c 16384 -fa on \
--reasoning-budget 0
Send each passage of up to about 2,400 characters with this exact
system prompt. Wrap each paragraph in <p id="N"> and end with the
closing line shown. Thinking must be off.
import json, requests
paragraphs = [
"The colourful banners was hanging in the centre of the hall.",
"He don't know whether the neighbours favoured the plan.",
]
user = "PASSAGE:\n" + "\n".join(
f'<p id="{i}">{p}</p>' for i, p in enumerate(paragraphs, start=1)
) + f"\n\nProofread paragraphs 1 to {len(paragraphs)}, then return the JSON object."
reply = requests.post("http://127.0.0.1:8080/v1/chat/completions", json={
"messages": [
{"role": "system", "content": "Proofread the passage for grammar "
"errors and answer with the JSON object only."},
{"role": "user", "content": user},
],
"temperature": 0, "top_p": 0.8, "top_k": 20, "min_p": 0, "seed": 0,
"max_tokens": 2048,
"chat_template_kwargs": {"enable_thinking": False},
}).json()["choices"][0]["message"]["content"]
print(json.loads(reply))
This file's answer on the hardware above, with line breaks added:
{"errors": [
{"paragraph": 1, "text": "The colourful banners was hanging",
"reasoning": "Subject-verb agreement requires plural verb 'were' for plural subject 'banners'.",
"suggestion": "The colourful banners were hanging"},
{"paragraph": 2, "text": "He don't know",
"reasoning": "The subject 'He' is third-person singular, so the auxiliary verb must be 'doesn't' instead of 'don't'.",
"suggestion": "He doesn't know"}
]}
A passage with no errors returns {"errors": []}.
Tips:
text in its paragraph, and drop any finding whose
phrase is not there.LANGUAGE: The novel is written in Canadian English. Judge grammar, usage and punctuation by the conventions of Canadian English, and never flag what Canadian English accepts. The model was not trained with this line. In a small check
it still produced the same findings.The teacher worked from a copy editor's rules. They count as errors:
They are not errors: spelling alone, names and invented or borrowed words, deliberate style (fragments, dialect, casual speech in dialogue), word choice and punctuation preferences.
Built on Qwen3.6, REAP (expert pruning), Unsloth, TRL, vLLM and llama.cpp. Training text is from C4_200M, the GitHub Typo Corpus, OpenWebText and PG-19, under their own licenses.
Qwen/Qwen3.6-35B-A3B