1messages =[2{3"role":"user",4"content":"Write a Python function to reverse a linked list."5}6]78text = tokenizer.apply_chat_template(9 messages,10 tokenize=False,11 add_generation_prompt=True12)
📈 Evaluation
The model was compared with the original base model on multiple Python programming prompts.
Evaluation included:
Code correctness
Explanation quality
Readability
Response formatting
This project demonstrates the complete QLoRA fine-tuning workflow rather than claiming to outperform the original Qwen model across all programming tasks.
⚠ Limitations
Trained for only 100 optimization steps.
Uses a subset of the original dataset.
Intended as a proof-of-concept for parameter-efficient fine-tuning.
Not evaluated on standardized coding benchmarks.
🚀 Future Work
Train on the complete dataset.
Increase training epochs.
Add evaluation on HumanEval and MBPP.
Expand training to FastAPI, SQL, Docker, Git, and System Design.
Support multiple LoRA adapters for different software engineering domains.
🙏 Acknowledgements
Alibaba Cloud for Qwen2.5
Hugging Face
TRL
PEFT
BitsAndBytes
Google Colab
If you use this project for learning or research, please consider giving the repository a ⭐.