Qwen3-1.7B-R1-SFT
A Qwen3-1.7B-Base model fine-tuned on DeepSeek-R1 math solutions, used as a starting point for on-policy distillation.
The model thinks inside a <think> … </think> block and then writes a final answer with \boxed{}.
Training
- Data: 5,878 math solutions written by DeepSeek-R1: every solution of at most 2,048 tokens in a quality-filtered 45k subset of OpenR1-Math-220k (mean 1,527 tokens).
- Full-parameter SFT, 2 epochs, learning rate 2e-5 (cosine). It teaches the thinking format (close the reasoning, box an answer) and is the starting point for on-policy distillation.
- 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-R1-SFT", 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 (this model) | 70.6 / 99.0 | 29.0 / 85.0 | 23.2 / 43.9 |
| Qwen3-1.7B-Qwen3-8B-OPD-Distill | 73.3 / 97.5 | 33.3 / 70.0 | 26.9 / 39.1 |
Distilled from this model: Qwen3-1.7B-Qwen3-8B-OPD-Distill.
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-R1-SFT}},
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.