Qwen3-1.7B-Qwen3-8B-OPD-Distill
Qwen3-1.7B distilled on-policy from Qwen3-8B (thinking mode), starting from Qwen3-1.7B-R1-SFT.
The model thinks inside a <think> … </think> block and then writes a final answer with \boxed{}.
In short: on-policy distillation makes single attempts much more reliable when the model is given a long answer budget, but the ceiling (pass@120, problems solved at least once in 120 attempts) does not clearly rise.
Training
- Start: Qwen3-1.7B-Base → SFT on DeepSeek-R1 solutions (Qwen3-1.7B-R1-SFT).
- On-policy distillation: the student samples its own responses and every token is trained toward the teacher (per-token reverse KL, top-64 teacher log-probs), 142 steps on 13,597 DAPO-Math-17k problems, thinking mode, responses limited to 7,168 tokens during training. Framework: verl. Seed 2.
- Format: Qwen chat template; assistant turn =
<think>\n…\n</think>\n\n+ final solution. Prompt suffix:Please reason step by step, and put your final answer within \boxed{}. - End-of-sequence token set to
<|im_end|>.
Usage (vLLM)
from vllm import LLM, SamplingParams
llm = LLM("96kevinli29/Qwen3-1.7B-Qwen3-8B-OPD-Distill", max_model_len=32768)
q = "Find the remainder when 2^100 is divided by 7."
msgs = [{"role": "user", "content": q + "\n\nPlease reason step by step, and put your final answer within \\boxed{}."}]
sp = SamplingParams(temperature=0.6, top_p=0.95, top_k=20, max_tokens=30720, stop=["<|im_end|>", "<|endoftext|>"])
print(llm.chat(msgs, sp)[0].outputs[0].text)
Evaluation
Thinking mode, temperature 0.6, strict scoring (the response must finish, close </think> and give the correct answer; a response cut off before the answer counts as wrong).
Answer budget 30,720 tokens for AMC23 and AIME 2026, 8,192 for GSM8K (200 problems) and BBH (counting objects, word sorting, Dyck languages; 750 problems, 8 samples each).
Cells are pass@1 / pass@120 in %, unbiased estimator; problems a model rarely solves are sampled to at least 120 attempts.
| Model | GSM8K | AMC23 | BBH (pass@1 / pass@8) |
|---|---|---|---|
| Qwen3-1.7B-Base | 59.8 / 99.0 | 26.8 / 87.5 | 14.1 / 42.1 |
| Qwen3-1.7B-R1-SFT | 70.6 / 99.0 | 29.0 / 85.0 | 23.2 / 43.9 |
| Qwen3-1.7B-Qwen3-8B-OPD-Distill (this model) | 73.3 / 97.5 | 33.3 / 70.0 | 26.9 / 39.1 |
Limitations
Math-only training; not tuned for chat safety or tool use. Small models with long outputs: some hard-problem responses hit the budget before answering.
Citation
@misc{opd-small-scale-2026,
title = {On-policy distillation at small scale: Qwen3 models distilled from Qwen3-8B},
author = {Li, Hongyang and {Sea-Fill Community}},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/96kevinli29/Qwen3-1.7B-Qwen3-8B-OPD-Distill}},
note = {Maintained by Sea-Fill Community.}
}
Built and released by the authors together with the Sea-Fill Community, which maintains this release.
Please also cite Qwen3, DAPO-Math-17k and OpenR1-Math-220k.