What R1-Distill is
DeepSeek-R1 learned to reason at length with reinforcement learning (see the GRPO tab), a long and expensive process on a very large model. R1-Distill passes that behaviour to small models the cheap way. R1 writes reasoning traces, and a small model is fine-tuned on them with the ordinary next-token loss. There is no RL stage and no matching of the teacher's probabilities, only SFT on the teacher's text. The How the student was trained panel lists the steps. DeepSeek curated about 800,000 samples with R1, reasoning traces plus non-reasoning data, and fine-tuned Qwen and Llama models of several sizes on them. The smallest, DeepSeek-R1-Distill-Qwen-1.5B, started from Qwen2.5-Math-1.5B.
This page sets the student (DeepSeek-R1-Distill-Qwen-1.5B, 1.78 B parameters as counted on the page) beside its base (Qwen2.5-Math-1.5B, 1.54 B) on GSM8K's first test problem. Janet's ducks lay 16 eggs a day; she eats three and bakes with four, and sells the rest at 2 dollars each. The answer is 18.
Distilling sequences
Classic distillation (see the DistilBERT tab) trains the student to match the teacher's whole next-token distribution at every position, a word-level loss . Kim and Rush called the alternative sequence-level distillation. The teacher generates whole outputs, and the student is trained on them as if they were the data:
That is what R1-Distill does, at a scale of hundreds of thousands of traces. It needs only the teacher's text, not its logits, so the student can even use a different tokenizer. It also teaches the teacher's habits wholesale: the length of its reasoning, its checks and its phrasing.
Each model reads its own format
The two models expect different prompts, as Each model reads its own format shows. The student reads DeepSeek's template, with the instruction "Please reason step by step, and put your final answer within \boxed{}." after the question and an opening think tag after the assistant marker, so it starts by thinking. The base reads Qwen's ChatML template with the same instruction as its system message. The base has no closing think token in its vocabulary. It reads the tag as ordinary text in several pieces, and the page sums their log-probabilities.
The student's reasoning trace
The trace is sampled from the student at temperature 0.6 with top-p 0.95, the settings DeepSeek's model card recommends. With seed 0 it was still thinking after 1,024 tokens. With seed 1 it finished in 761 tokens: 625 inside the think block, the closing tag, then 135 tokens of answer, ending in 18. The student's reasoning trace colours every token by how much more likely the student finds it than the base, or by either model's own . Clicking a token opens it in the Token #… panel with both models' five most likely next tokens.
The SFT loss on this trace applies the loss above to both models. The student's loss is 0.289 nats per token and the base's 0.877, so the base finds the same text times less likely per token. The gap is in the thinking (0.334 against 0.925); on the answer both are lower (0.085 against 0.488). log p along the trace draws both models' log-probabilities, averaged over 31 tokens, along the whole trace.
What distillation made likelier
Averaging the student's gain over each word that appears at least twice in the thinking shows which ones moved most. The top of the What distillation made likelier list holds "Hmm" (about 9.5 nats on average) and "Okay" (about 6.0), with markdown bold markers in between, the openers of R1's asides and summaries. The base already knew the arithmetic; what fine-tuning on R1's traces added is the style of thinking out loud.
Final answers shows that the base also gets 18 here, answering greedily in its own format, a short worked solution followed by a check in Python. GSM8K's first problem is easy for a maths-tuned model. Distillation pays off on harder problems, where the long, self-checking reasoning matters.
Where R1-Distill came from
Hinton et al. (2015) made distillation popular with soft targets. Kim and Rush (2016) showed for translation that training the student on the teacher's beam-search outputs works well, often better than matching its per-token distributions. DeepSeek-AI (2025) released the R1 distills with the R1 paper. The paper reports that distilling R1 beat running large-scale RL on the same base model directly (they compared the two on Qwen2.5-32B): reasoning found by a strong model transfers more cheaply than it is rediscovered. s1 (Muennighoff et al., 2025) later showed that SFT on only 1,000 carefully chosen reasoning traces already gives a strong reasoning model. The Thinking mode tab of the Reasoning Explainer looks at how such models spend their reasoning tokens at inference.
Papers
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning R1 and its distilled models: about 800k samples curated with R1, used for SFT of Qwen and Llama models with no RL stage (section 2.4).
- Sequence-Level Knowledge Distillation Trains the student on sequences the teacher generates instead of its per-token distributions, the form of distillation R1-Distill uses.
- Distilling the Knowledge in a Neural Network Distillation with soft targets at a temperature, the word-level alternative (see the DistilBERT tab).
- Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvement Qwen2.5-Math-1.5B, the base model the student was fine-tuned from.
- Training Verifiers to Solve Math Word Problems GSM8K, whose first test problem the page traces.
- s1: Simple test-time scaling SFT on 1,000 curated reasoning traces, plus a way to control how long the model thinks.