Downloads · 30 days
5
16% of all-time downloads
solar11781/lab22-dpo-vn
lab22-dpo-vn is a machine learning model from solar11781. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
This is a PEFT/LoRA DPO adapter trained for the VinUni Day 22 DPO/ORPO Alignment Lab.
Downloads · 30 days
5
16% of all-time downloads
All-time downloads
31
Public
Repo size
131 MB
Likes
0
Public
Click a slice to open those files.
.safetensors120 MB · 91%
From the Hugging Face model README
This is a PEFT/LoRA DPO adapter trained for the VinUni Day 22 DPO/ORPO Alignment Lab.
unsloth/Qwen2.5-3B-bnb-4bitT4bkai-foundation-models/vi-alpacaargilla/ultrafeedback-binarized-preferences-cleanedprompt, chosen, rejected| Hyperparameter | Value |
|---|---|
| DPO beta | 0.1 |
| Learning rate | 5e-07 |
| Epochs | 1 |
| Final DPO loss | 0.8476034660339355 |
| End chosen reward | -0.556167197227478 |
| End rejected reward | -0.5189349949359894 |
| End reward gap | -0.0372322022914886 |
Raw judge counts from data/eval/judge_results.json:
{
"tie": 8
}
| Benchmark | SFT-only | SFT+DPO | Delta |
|---|---|---|---|
| IFEval | 0.2000 | 0.2000 | +0.0000 |
| GSM8K | 0.0000 | 0.0000 | +0.0000 |
| MMLU | 0.7368 | 0.7544 | +0.0175 |
| AlpacaEval-lite | nan | nan | +nan |
from unsloth import FastLanguageModel
from peft import PeftModel
base_model = "unsloth/Qwen2.5-3B-bnb-4bit"
adapter_path = "solar11781/lab22-dpo-vn"
model, tokenizer = FastLanguageModel.from_pretrained(
model_name=base_model,
max_seq_length=512,
dtype=None,
load_in_4bit=True,
)
model = PeftModel.from_pretrained(model, adapter_path)
This adapter is a student lab artifact for studying SFT-to-DPO alignment behavior, reward curves, qualitative helpfulness/safety comparison, and benchmark trade-offs.
This is not a production assistant. It was trained on a small SFT slice and a small preference slice. Outputs may be incorrect, unsafe, overly brief, or misaligned. Use only for educational evaluation.