Downloads · 30 days
5
33% of all-time downloads
ducer/lab22-dpo-adapter
lab22-dpo-adapter is a text generation model from ducer. Use it when you need the model to write or continue text. It is set up for peft.
This repository contains the final LoRA adapter from a small Direct Preference Optimization (DPO) experiment for VinUni AICB Track 3, Day 22. It is an adapter only, not a standalone base model. Load it on top of unslo…
Downloads · 30 days
5
33% of all-time downloads
All-time downloads
15
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 repository contains the final LoRA adapter from a small Direct Preference
Optimization (DPO) experiment for VinUni AICB Track 3, Day 22. It is an
adapter only, not a standalone base model. Load it on top of
unsloth/Qwen2.5-3B-bnb-4bit (or a compatible Qwen2.5-3B base).
The adapter is a course-lab artifact for Vietnamese instruction-following experiments. It is not validated for production use, high-stakes decisions, or safety-critical deployment. In the small qualitative evaluation, DPO won 2 of 8 comparisons, SFT won 1, and 5 were ties. The four safety prompts were ties; the adapter must not be treated as a reliable safety system.
unsloth/Qwen2.5-3B-bnb-4bitargilla/ultrafeedback-binarized-preferences-cleanedThe original SFT warm-start used 1,000 samples from
bkai-foundation-models/vi-alpaca. PyTorch SDPA was used because the available
Tesla T4/xFormers combination lacked a compatible backward kernel.
The course qualitative evaluation used eight Vietnamese prompts and an
OpenAI-compatible gpt-4o-mini judge. Results: DPO 2 wins, SFT 1 win, and 5
ties. No broad benchmark scores are claimed because NB6 was not completed.
from unsloth import FastLanguageModel
from peft import PeftModel
base, tokenizer = FastLanguageModel.from_pretrained(
model_name="unsloth/Qwen2.5-3B-bnb-4bit",
max_seq_length=512,
load_in_4bit=True,
)
model = PeftModel.from_pretrained(base, "YOUR_HF_USERNAME/lab22-dpo-adapter")
FastLanguageModel.for_inference(model)
This course artifact inherits the usage terms of its base model and source datasets. Do not use it to generate harmful, illegal, or unsafe instructions.