Downloads · 30 days
0
Gen-oze/dpo-qwen
dpo-qwen is a text generation model from Gen-oze. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains: 1) Full merged 16-bit weights at the repo root (ready to use with Transformers), and 2) LoRA adapter checkpoints under adapters/ (saved during training).
Downloads · 30 days
0
Access
Public
Updated Mar 1, 2026
Repo size
3 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2 GB · 60%
From the Hugging Face model README
This repository contains:
adapters/ (saved during training).This model was optimized using Direct Preference Optimization (DPO) to prefer chosen outputs over rejected ones, focusing on structured response quality.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "Gen-oze/dpo-qwen"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
prompt = "Your question here"
inputs = tokenizer.apply_chat_template(
[{"role": "user", "content": prompt}],
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0]))