Qwen2.5-Coder QLoRA: bug diagnosis and patch adapter
2 min read
The repofix-qwen25-coder-1.5b-nf4 model is a QLoRA adapter (QLoRA is an efficient fine-tuning method for quantized models with lower memory requirements) built on top of the Qwen/Qwen2.5-Coder-1.5B-Instruct language model. It is specifically trained for repository analysis, bug hunting, and generating unified diff patches as part of the RepoFix AI project. Thanks to 4-bit NF4 quantization, the model delivers high token generation speed with modest system requirements. This new release is useful for developers and creators of automated code fixing tools.
Key features
- Base: compact Qwen2.5-Coder-1.5B-Instruct model (1.54 billion parameters).
- Training: 4-bit NF4 QLoRA applied for running on consumer graphics cards.
- Performance: generation speed reaches 3.07 tokens per second.
- Purpose: specialized bug hunting and code diff patch creation.
What you can do
- Integrate the adapter into local IDE plugins for automated code review.
- Use it in RepoFix AI pipelines for fast generation of unified diff patches.
- Run it on affordable graphics cards like the NVIDIA RTX 3050 with 4GB VRAM thanks to quantization.
Example
Use case: feed a problematic code snippet containing a bug in the repository into the model along with the context, and receive a ready-to-use unified diff patch to fix the error.
Read more
DetailsTraining method: 4-bit NF4 QLoRA (r=16, lora_alpha=32)
Hardware: tested on NVIDIA RTX 3050 (4GB VRAM)
Speed: 3.07 tok/s versus 1.62 tok/s for the base model
Generation: up to 68 tokens per response with 100% accuracy on benchmarks










Comments