Downloads · 30 days
155
69% of all-time downloads
MMOPD/Qwen3-4B-OT3-law
Qwen3-4B-OT3-law is a text generation model from MMOPD. 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.
The Law domain teacher of No Pain, More Gain: Iterative Merging for Effective Multi-Teacher On-Policy Distillation (code).
Downloads · 30 days
155
69% of all-time downloads
All-time downloads
224
Public
Parameters
4B
8.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.8 GB · 100%
From the Hugging Face model README
The Law domain teacher of No Pain, More Gain: Iterative Merging for Effective Multi-Teacher On-Policy Distillation (code).
| Initialization | Qwen3-4B-OT3 (Qwen3-4B-Base after SFT on OpenThoughts3-1.2M) |
| Method | SFT |
| Data | law subset of MMOPD/domain-sft-data: 56,123 correct, deduplicated samples generated by Qwen3.6-35B-A3B from CaseHOLD and bar-exam prompts |
| Recipe | 2 epochs, batch 128 packed sequences of 20,480 tokens, peak LR 1e-5, cosine decay with 5% warm-up, no weight decay, gradient clipping 1.0 |
CaseHOLD accuracy 73.3 (avg@3: three samples per prompt with seeds 42-44, temperature 1.0, top-p 1.0, 26,624-token completion cap).
Qwen3 chat template in thinking mode. The reasoning follows the OpenThoughts3 format: the assistant turn starts with <think> (one space) and the reasoning, then \n</think>\n\n and the answer.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "MMOPD/Qwen3-4B-OT3-law"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "..."}]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=True)
out = model.generate(**tok(text, return_tensors="pt").to(model.device), max_new_tokens=32768,
do_sample=True, temperature=1.0, top_p=1.0)
print(tok.decode(out[0], skip_special_tokens=True))
@article{kim2026immopd,
title = {No Pain, More Gain: Iterative Merging for Effective Multi-Teacher On-Policy Distillation},
author = {Kim, Seonghyeon and Jang, Chaeyun and Lee, Noah and Kim, Boseop and Lee, Juho},
journal = {arXiv preprint arXiv:2609.34745},
year = {2026}
}