Downloads · 30 days
0
p1746-lingua/qwen2.5-gec-7b
qwen2.5-gec-7b is a text generation model from p1746-lingua. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of Qwen/Qwen2.5-7B for Russian grammatical error correction. It is optimized for efficient inference using Unsloth and 4‑bit quantization, requiring only 4 GB of GPU VRAM.
Downloads · 30 days
0
Access
Public
Updated May 30, 2026
Repo size
173 MB
Likes
1
Public
Click a slice to open those files.
.safetensors162 MB · 91%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen2.5-7B for Russian grammatical error correction.
It is optimized for efficient inference using Unsloth and 4‑bit quantization, requiring only 4 GB of GPU VRAM.
Use the model to automatically correct Russian text. It works best on short to medium sentences (up to 512 tokens). Example applications:
The following code loads the model in 4‑bit mode and runs inference on a single GPU:
import os
os.environ['HF_HUB_DOWNLOAD_TIMEOUT'] = '60'
max_seq_length = 2048
dtype = None
load_in_4bit = True
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "p1746-lingua/qwen2.5-gec-7b",
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit
)
FastLanguageModel.for_inference(model)
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
{}
### Input:
{}
### Response:
{}"""
inputs = tokenizer(
[
alpaca_prompt.format(
"Lec.", # Instruction (task description)
"Он шла по доороге", # Input text with errors
"", # Keep empty for generation
)
], return_tensors = "pt").to("cuda")
from transformers import TextStreamer
text_streamer = TextStreamer(tokenizer)
_ = model.generate(**inputs, streamer = text_streamer, max_new_tokens = 128)
Она шла по дороге
| Metric | Value |
|---|---|
| GPU memory (4‑bit) | 4.2 GB |
| Inference speed (batch=1) | 25 tokens/sec |
| GEC F0.5 score | 77.73 |
This model is intended for assisting human writers, not for fully automated grading or decision‑making. Always review corrections in critical contexts.
If you use this model in your research, please cite:
@misc{qwen2.5-gec-7b,
author = {Plesovskikh A.},
title = {Qwen2.5-GEC-7B: Russian Grammatical Error Correction},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/p1746-lingua/qwen2.5-gec-7b}
}
For questions or collaboration, open an issue on the model repository.