Downloads · 30 days
13
14% of all-time downloads
nakotsuko13/qwen3-4b-agent-sft-dpo-merged
qwen3-4b-agent-sft-dpo-merged is a text generation model from nakotsuko13. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This repository provides a fully merged model fine-tuned from Qwen/Qwen3-4B-Instruct-2507. It has undergone both Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO) to improve multi-turn agent task p…
Downloads · 30 days
13
14% of all-time downloads
All-time downloads
95
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
This repository provides a fully merged model fine-tuned from Qwen/Qwen3-4B-Instruct-2507. It has undergone both Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO) to improve multi-turn agent task performance and reduce hallucinations.
nakotsuko13/dpo-dataset-step5-cleansed to suppress invalid actions (e.g., hallucinated "Task failed" commands) and enforce strict environment rule adherence.Since this is a fully merged model, you do NOT need peft. You can load it directly:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "your_hf_username/your_repo_name" # HFに上げた場合
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_id)