Downloads · 30 days
6
4% of all-time downloads
mark-22/dpo-qwen-cot-merged-dataclearn3
dpo-qwen-cot-merged-dataclearn3 is a text generation model from mark-22. 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 high-performance, full-merged 16-bit version of Qwen3-4B, specifically optimized for strict structured data generation (JSON, YAML, CSV, etc.). It was developed for the Matsuo Lab LLM Competition with…
Downloads · 30 days
6
4% of all-time downloads
All-time downloads
156
Public
Parameters
4B
24.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
This model is a high-performance, full-merged 16-bit version of Qwen3-4B, specifically optimized for strict structured data generation (JSON, YAML, CSV, etc.). It was developed for the Matsuo Lab LLM Competition with a focus on eliminating conversational noise and maximizing format compliance.
This model deviates from standard tuning by applying rigorous data cleaning to both SFT and DPO stages:
u-10bei/structured_data_with_cot_dataset_512_v2u-10bei/dpo-dataset-qwen-cot-dataclearn2This repository contains the complete 16-bit weights. No adapters are required. Optimized for immediate response without "Here is the JSON..." or other filler text.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "mark-22/dpo-qwen-cot-merged-dataclearn3"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16 if torch.cuda.is_bf16_supported() else torch.float16,
device_map="auto"
)
# The model outputs the data immediately after the user prompt.
messages = [
{"role": "user", "content": "Convert to JSON: name: Alice, age: 30"}
]
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)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))