Views
No views yet
Qwen/Qwen2.5-3B-Instruct for English grammatical error correction (GEC). v2 improvements over qwen2.5-3b-gec-bea2019:| Setting | Precision | Recall | F0.5 |
|---|---|---|---|
| v2 (post-processed, single-pass) | 0.589 | 0.386 | 0.533 |
| v2 + iterative (max-iter 2) | 0.575 | 0.407 | 0.531 |
| v1 (BEA only) | 0.543 | 0.365 | 0.495 |
ABCN.dev.gold.bea19.m2, identity rows skipped). Post-processing strips a small set of BEA-2019 tokenization artifacts (trailing " ." → ".", collapsed double spaces, source-aligned leading-cap).| Iter | Val |
|---|---|
| 1 (baseline) | 1.981 |
| 500 | 0.367 |
| 1000 | 0.297 |
| 1500 | 0.319 |
| 2000 | 0.251 |
| 2500 | 0.260 |
| 3000 | 0.231 |
| 3500 | 0.160 (best, promoted) |
| 4000 | 0.248 |
| 4500 | 0.248 |
| 5000 | 0.167 |
1from mlx_lm import generate, load
2
3model, tokenizer = load("amiya/qwen2.5-3b-gec-v2")
4prompt = tokenizer.apply_chat_template(
5 [
6 {"role": "system", "content": "Correct the grammar of the user text. Preserve meaning."},
7 {"role": "user", "content": "He go to school"},
8 ],
9 tokenize=False,
10 add_generation_prompt=True,
11)
12print(generate(model, tokenizer, prompt=prompt, max_tokens=80))
13# -> "He goes to school"transformers.AutoModelForCausalLM.from_pretrained("amiya/qwen2.5-3b-gec-v2") works the same.Correct the grammar of the user text. Preserve meaning.max_new_tokens ~ 1.5× the prompt length." .", collapses runs of whitespace, and aligns leading capitalisation to the input. Worth +0.01–0.02 F0.5.Qwen/Qwen2.5-3B-Instruct (3.09 B params)ABC.train.gold.bea19.m2 → 22,668 unique src→tgt pairs after dropping identity rows.train.jsonl, filtered to task == "gec" → 19,823 pairs after stripping instruction prefixes.1@misc{qwen25_3b_gec_v2,
2 title = {qwen2.5-3b-gec-v2: LoRA-tuned Qwen2.5-3B for English GEC},
3 author = {amiya},
4 year = {2026},
5 url = {https://huggingface.co/amiya/qwen2.5-3b-gec-v2}
6}