QLoRA adapter for bug finding and code patch generation
2 min read
The repofix-qwen25-coder-1.5b-qlora-v0 model is a compact QLoRA adapter (a small add-on for fine-tuning a model in a quantized format) built on top of Qwen/Qwen2.5-Coder-1.5B-Instruct. It is trained to diagnose bugs while taking repository structure into account and to synthesize unified diff format patches as part of the RepoFix AI project. The adapter uses 4-bit NF4 quantization, allowing it to run on modest home hardware such as graphics cards with 4 GB of VRAM. This solution is useful for developers and researchers working on automated code debugging and the creation of autonomous agents.
Key features
- Based on the Qwen2.5-Coder-1.5B-Instruct model with 1.5 billion parameters.
- Uses 4-bit NF4 quantization to save video memory.
- Applies LoRA hyperparameters with rank r=16 and lora_alpha=32.
- Training was conducted on the SWE-bench/SWE-bench_Lite dataset with hash-based splitting.
What you can do
- Integrate the adapter into local development pipelines to find bugs in a codebase.
- Use it to automatically generate diff fix patches.
- Run it on consumer graphics cards with minimal hardware requirements.
Example
The adapter is designed for joint use with the base model Qwen2.5-Coder-1.5B-Instruct using the peft library. The model card specifies training requirements on an RTX 3050 4GB Laptop GPU.
Read more
DetailsBase model: Qwen/Qwen2.5-Coder-1.5B-Instruct
Quantization: 4-bit NF4 (bnb_4bit_use_double_quant=True)
Hyperparameters: r=16, lora_alpha=32, lora_dropout=0.05
Optimizer: paged_adamw_8bit, lr=2e-4
Limitations: generated patches require mandatory sandbox validation










Comments