File size: 1,463 Bytes
9d9df3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
license: apache-2.0
library_name: transformers
base_model: Qwen/Qwen3-8B-Base
pipeline_tag: text-generation
tags:
- qwen3
- on-policy-distillation
- multi-teacher
- reinforcement-learning
---

# mopd-iter200

Multi-teacher **On-Policy Distillation (OPD)** checkpoint of a Qwen3-8B student,
exported at **iteration 200**.

## Overview

- **Architecture:** Qwen3-8B (dense, 36 layers, hidden 4096, GQA 32Q/8KV, vocab 151936, 32k context)
- **Training:** on-policy distillation where a single student rolls out a mixed
  math + search + tool-use (tau) stream; the only training signal is per-token
  reverse-KL to a domain-specific teacher (static domain routing, task reward = 0).
- **Init:** Qwen3-8B SFT chain (Math -> Sea-SFT -> Search -> Tau-SFT -> IF).
- **Format:** converted from a Megatron torch_dist checkpoint to HuggingFace
  safetensors (bf16).

## Usage

\`\`\`python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "willamazon1/mopd-iter200"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")

msgs = [{"role": "user", "content": "What is 12*8?"}]
text = tok.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)
ids = tok(text, return_tensors="pt").input_ids.to(model.device)
out = model.generate(ids, max_new_tokens=64)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
\`\`\`