Downloads · 30 days
7
8% of all-time downloads
amiya/qwen2.5-3b-gec-bea2019
qwen2.5-3b-gec-bea2019 is a text generation model from amiya. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
LoRA fine-tune of 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…
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
84
Public
Parameters
3.1B
6.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
LoRA fine-tune of 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.
ERRANT scores on a 100-sample held-out BEA-dev split (sampled from ABCN.dev.gold.bea19.m2):
| Metric | Value |
|---|---|
| Precision | 0.543 |
| Recall | 0.365 |
| F0.5 | 0.4950 |
Validation loss converged from 2.875 (baseline) to 0.281 over 3,000 LoRA iters on an Apple M2 Max in ~17 minutes.
from mlx_lm import generate, load
model, tokenizer = load("amiya/qwen2.5-3b-gec-bea2019")
prompt = tokenizer.apply_chat_template(
[
{"role": "system", "content": "Correct the grammar of the user text. Preserve meaning."},
{"role": "user", "content": "He go to school"},
],
tokenize=False,
add_generation_prompt=True,
)
print(generate(model, tokenizer, prompt=prompt, max_tokens=80))
# -> "He goes to school"
PyTorch users: transformers.AutoModelForCausalLM.from_pretrained("amiya/qwen2.5-3b-gec-bea2019") works the same way.
The model was trained with the system prompt:
Correct the grammar of the user text. Preserve meaning.
Use that exact prompt for in-distribution behavior. The chat template is Qwen's ChatML.
| 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 . |
Trailing-space + period is a BEA-2019 tokenization artifact; a post-processor can strip it.
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.@misc{qwen25_3b_gec_bea2019,
title = {qwen2.5-3b-gec-bea2019: LoRA-tuned Qwen2.5-3B for English GEC},
author = {amiya},
year = {2026},
url = {https://huggingface.co/amiya/qwen2.5-3b-gec-bea2019}
}
Underlying corpus: Bryant, Felice, Andersen, Briscoe. The BEA-2019 Shared Task on Grammatical Error Correction, BEA 2019.