1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_id = "Qwen/Qwen3.5-4B"
5base = AutoModelForCausalLM.from_pretrained(base_id, device_map="auto")
6tok = AutoTokenizer.from_pretrained(base_id)
7
8# load one adapter by subfolder
9model = PeftModel.from_pretrained(
10 base, "synterr-nlp/bea2026-gec-adapters", subfolder="v4_qwen35_4b_lorugec"
11)
Inference prompt is the system prompt described in the paper (§ Experimental
setup); see the generator repo for the exact template.
The adapter weights in this repo are released for research use; you remain
responsible for complying with each base model's terms.
1@inproceedings{smirnova2026aggregate,
2 title = {What Aggregate Scores Hide: Per-Rule Evaluation of Russian Grammatical Error Correction},
3 author = {Smirnova, Anna and Kopan, Artyom and Makeev, Vladislav and Chernishev, George},
4 booktitle = {Proceedings of the 21st Workshop on Innovative Use of NLP for Building Educational Applications (BEA)},
5 year = {2026},
6 url = {https://synterr-nlp.github.io/papers/bea-2026/},
7}