Downloads · 30 days
15
19% of all-time downloads
ayushshah/Qwen3-1.7B-Chat-LoRA
Qwen3-1.7B-Chat-LoRA is a text generation model from ayushshah. 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.
This repository contains the LoRA adapter for the Direct Preference Optimization (DPO) stage of Qwen3-1.7B-UltraChat-SFT.
Downloads · 30 days
15
19% of all-time downloads
All-time downloads
81
Public
Repo size
140 MB
Likes
0
Public
Click a slice to open those files.
.safetensors140 MB · 100%
From the Hugging Face model README
This repository contains the LoRA adapter for the Direct Preference Optimization (DPO) stage of Qwen3-1.7B-UltraChat-SFT.
The adapter aligns the SFT model using human preference datasets to improve response quality, reasoning, helpfulness, and truthfulness while preserving the conversational capabilities learned during supervised fine-tuning.
View the merged model.<br> View the GitHub repo for Post-training pipeline.
Note: This repository contains only the DPO adapter weights. It must be loaded on top of the <u>Qwen3-1.7B-UltraChat-SFT</u> model.
Alignment Method: Direct Preference Optimization (DPO)<br> Frameworks: TRL, Unsloth, PEFT (LoRA)
Applied modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
Configuration:
Compared to the SFT model, this DPO adapter brings improvement to the model while introducing a small trade-off in strict instruction-following performance.
| Benchmark | SFT | DPO | Δ |
|---|---|---|---|
| MMLU-Pro | 37.91 | 39.86 | +1.95 |
| GSM8K | 71.27 | 72.48 | +1.21 |
| HellaSwag | 62.28 | 62.26 | -0.02 |
| TruthfulQA <sub>mc2</sub> | 51.62 | 53.09 | +1.47 |
| ARC Challenge | 44.97 | 43.26 | -1.71 |
| IFEval <sub>strict prompt</sub> | 33.09 | 30.13 | -2.96 |
Blind A/B Evaluation tests with LLM-as-a-judge and Human-In-The-Loop calibration preferred the DPO model over the SFT model in majority of the runs.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained(
"ayushshah/Qwen3-1.7B-UltraChat-SFT"
)
model = PeftModel.from_pretrained(
base_model,
"ayushshah/Qwen3-1.7B-Chat-LoRA"
)
tokenizer = AutoTokenizer.from_pretrained(
"ayushshah/Qwen3-1.7B-UltraChat-SFT"
)
Alternatively, you can also load the base_model using Unsloth.
For more details, check the model card of the merged model.