Downloads · 30 days
53
63% of all-time downloads
sidmhuggingface/rag-sft-qwen2.5-0.5b
rag-sft-qwen2.5-0.5b is a text generation model from sidmhuggingface. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
QLoRA-SFT fine-tune of Qwen/Qwen2.5-0.5B-Instruct on 150 (question, answer) pairs generated from a corpus of ML arXiv paper abstracts. LoRA rank 16, alpha 32, targeting the attention projection layers, 4-bit NF4 quant…
Downloads · 30 days
53
63% of all-time downloads
All-time downloads
84
Public
Repo size
20.1 MB
Likes
0
Public
Click a slice to open those files.
.json11.4 MB · 57%
From the Hugging Face model README
QLoRA-SFT fine-tune of Qwen/Qwen2.5-0.5B-Instruct on 150 (question, answer) pairs generated
from a corpus of ML arXiv paper abstracts. LoRA rank 16, alpha 32, targeting the attention
projection layers, 4-bit NF4 quantized base model, 3 epochs.
Part of a larger RAG + GPT-from-scratch + DPO alignment portfolio project: https://github.com/sidesshmore/rag-document-assistant
qwen3-235b-a22b-instruct-2507 from sampled corpus
chunks (135 train / 15 eval split)q_proj, k_proj, v_proj, o_projThis checkpoint is the starting point for a DPO alignment pass - see sidmhuggingface/rag-dpo-qwen2.5-0.5b for the DPO-aligned version and an honest comparison. With bias-controlled pairwise judging (independent judge model, position-swap reconciliation), DPO did not clearly beat this SFT checkpoint on held-out questions at this data scale (40 preference pairs) - see that model's card for the full analysis, since that's arguably the more interesting result.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct")
model = PeftModel.from_pretrained(base, "sidmhuggingface/rag-sft-qwen2.5-0.5b")
tokenizer = AutoTokenizer.from_pretrained("sidmhuggingface/rag-sft-qwen2.5-0.5b")