Downloads · 30 days
0
legoskier/sft-dpo-qwen-078-plus
sft-dpo-qwen-078-plus is a text generation model from legoskier. 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 model is a two-stage fine-tuned version of Qwen/Qwen3-4B-Instruct-2507:
Downloads · 30 days
0
Access
Public
Updated Feb 7, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.6 KB · 63%
From the Hugging Face model README
This model is a two-stage fine-tuned version of Qwen/Qwen3-4B-Instruct-2507:
This repository contains the full-merged 16-bit weights (SFT + DPO combined).
Base model: Qwen/Qwen3-4B-Instruct-2507
Method: QLoRA (4-bit)
Max sequence length: 512
Epochs: 3
Learning rate: 1e-6
LoRA: r=64, alpha=128
GPU: A100 (BFloat16)
Result: StructEval score 0.780
Base: SFT model (0.780)
Method: DPO with QLoRA
Max sequence length: 1024
Epochs: 1
Learning rate: 5e-08
Beta: 0.1
LoRA: r=8, alpha=16
GPU: A100 (BFloat16)
Since this is a merged model, you can use it directly:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "your_username/sft-dpo-qwen-078-plus"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
# Example inference
prompt = "Your question here"
messages = [{"role": "user", "content": prompt}]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).to("cuda")
outputs = model.generate(inputs, max_new_tokens=512, temperature=0.0)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Users must comply with:
Expected improvement: +0.02 to +0.04 points