Views
No views yet
Qwen/Qwen2.5-3B-Instruct for English grammatical error correction (GEC). Trained on the W&I+LOCNESS subset of BEA-2019 (33,432 minimal-edit pairs). LoRA weights are fused into the base, so this repo is a drop-in replacement for the base model.ABCN.dev.gold.bea19.m2):| Metric | Value |
|---|---|
| Precision | 0.543 |
| Recall | 0.365 |
| F0.5 | 0.4950 |
1from mlx_lm import generate, load
2
3model, tokenizer = load("amiya/qwen2.5-3b-gec-bea2019")
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-bea2019") works the same way.Correct the grammar of the user text. Preserve meaning.| Input | Output |
|---|---|
He go to school | He goes to school |
I are happy | I am happy |
she walk fast | She walks fast . |
they was tired yesterday | They were tired yesterday . |
she have a cat | She has a cat . |
Qwen/Qwen2.5-3B-Instruct (3.09 B params)ABC.train.gold.bea19.m2, converted to ChatML SFT by the data-pipeline repo. 33,432 minimal-edit (src, tgt) pairs after dropping identity rows.1@misc{qwen25_3b_gec_bea2019,
2 title = {qwen2.5-3b-gec-bea2019: LoRA-tuned Qwen2.5-3B for English GEC},
3 author = {amiya},
4 year = {2026},
5 url = {https://huggingface.co/amiya/qwen2.5-3b-gec-bea2019}
6}