Downloads · 30 days
39
4% of all-time downloads
demimomi/dpo-qwen-cot-merged
dpo-qwen-cot-merged is a text generation model from demimomi. 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.
- Author: Toshiki Demizu (出水 利樹) — GitHub/Hugging Face ID: @demimomi - Affiliation: ソフトバンク株式会社、MONET Technologies株式会社 - Course: Large Language Model Development Lecture Advanced (Winter 2025-2026) - Participants: 3800名参加
Downloads · 30 days
39
4% of all-time downloads
All-time downloads
883
Public
Parameters
4B
32.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
状況:
2026年2月8日現在 293位(現時点で497人が提出) 0.70044点
2026年2月11日現在 261位(現時点で646人が提出)0.73407点 https://huggingface.co/demimomi/demimomi44taomax-qwen3-4b-structured-output-lora
T4(TPU)だと日次Limitにすぐ達するため、A100(GPU)にて学習/推論コードを実施。
ルール:
基準点:0.7 ※コード脳死で回すだけでは超えられない
1Google Colabで実行可能なモデル・実装であること
2評価は StructEval(Text)のみを使用
3提出物は推論結果JSONとHugging Face上のモデルURL
4運営指定モデル・データのみ使用可
5Omnicampusに提出すると自動採点・順位付け
This model is a fine-tuned version of Qwen/Qwen3-4B-Instruct-2507 using Direct Preference Optimization (DPO) via the Unsloth library.
This repository contains the full-merged 16-bit weights. No adapter loading is required.
This model has been optimized using DPO to align its responses with preferred outputs, focusing on improving reasoning (Chain-of-Thought) and structured response quality based on the provided preference dataset.
Since this is a merged model, you can use it directly with transformers.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "demimomi/dpo-qwen-cot-merged"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
# Test inference
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]))