LoganResearch/qwen2.5-1.5b-instruct-distilled
LoRA adapter for factual accuracy improvement in Qwen2.5
2 min readupdated
This adapter is a rank-8 LoRA (a small add-on over the base model for targeted fine-tuning) for the compact language model Qwen/Qwen2.5-1.5B-Instruct. It is designed to improve answer accuracy on multiple-choice factual questions and reduce the number of confident errors. The fine-tuning targets attention layers (q_proj and v_proj) and demonstrates a measurable increase in correct answers on the test suite. The adapter is suitable for developers using small LLMs for tasks where factual accuracy on fixed datasets is critical.
Key features
- The adapter rank is 8, with modifications applied to the attention weights
q_projandv_proj. - An increase in accuracy was recorded on the TruthfulQA-MC1 test suite compared to the base model.
- The frequency of answers that the model considers confident but performs incorrectly has been reduced.
- Results were verified on a preregistered dataset without changing refusal behavior.
What you can do
- Apply the LoRA to the base model Qwen/Qwen2.5-1.5B-Instruct to improve answers to factual questions.
- Run the model locally on a CPU with support for the peft library to verify results on your own tasks.
- Use the adapter in text processing pipelines where increased accuracy in multiple-choice tests is required.
Example
pip install peft transformers torch && python apply_lora.py --prompt "Your question here"Read more
DetailsAccuracy on TruthfulQA-MC1 increased from 47.97% to 84.28% (+36.30 points).
The share of confident incorrect answers decreased from 37.9% to 7.9%.
Runs on CPU (requires about 6 GB of RAM in fp32 format), GPU is optional.
License: Apache-2.0.










Comments