What thinking mode is
A reasoning model writes its working before its answer. Qwen3 puts that working inside a pair of think tags: the assistant turn opens with the opening tag, the model samples as many reasoning tokens as it needs, writes the closing tag itself, and then writes the answer the user sees. Writing the steps out helps because every new token is computed by a full forward pass that can read every step before it, so a long problem is split into pieces the network can do one at a time. Wei et al. showed the effect by prompting with worked examples (chain of thought); DeepSeek-R1 and similar models were then trained with reinforcement learning on problems with checkable answers, and their reasoning grew long and came to include checking and backtracking.
Qwen3 is a hybrid: one checkpoint does both. Its report first trains long chain-of-thought reasoning and then fuses a non-thinking mode into the same model; with thinking off, the chat template fills in an empty pair of think tags and the model answers at once. The small Qwen3 models, including the 596 M-parameter Qwen3-0.6B recorded here, are distilled from the larger ones. The page asks it GSM8K test rows 0–39, grade-school word problems whose answer is one number, as its model card suggests for maths: the question, then "Please reason step by step, and put your final answer within \boxed{}."
Sampling the reasoning
Every token, reasoning or answer, is drawn from the model's next-token distribution rather than taken greedily, with the model card's thinking-mode settings: temperature , top-k 20, top-p 0.95 (thinking off: 0.7, 20 and 0.8). From the logits of the most likely tokens ,
and top-p then keeps the fewest most likely tokens whose probabilities add up to at least 0.95 and renormalises them, which is nucleus sampling (Holtzman et al.). A uniform number picks the token: lay the kept tokens out from the most likely down, each a slice of as wide as its probability , and take the slice falls in, the token with where . The panel The next token draws that distribution, the kept tokens and the slice for any token of the trace (every step is stored for the starred example problems); the trace shades each sampled token by its surprise, .
Each problem draws its uniforms from one stream seeded with its GSM8K row, and its -th sampled token uses . So every recorded token reproduces from its stored logits and its seed, and the page's check finds 0 mismatches.
A budget for the reasoning
A thinking budget caps the reasoning at tokens. If the model has not written its closing think tag by then, its reasoning is halted and the stop-thinking text from the Qwen3 report is inserted: "Considering the limited time by the user, I have to give the solution based on the thinking directly now." followed by the closing tag. The model then writes its answer from what it has. In the panel The reasoning, then the answer the inserted text is amber and the reasoning the budget cut off is faded. Muennighoff et al. call this budget forcing: their s1 ends thinking by appending the end-of-thinking delimiter and lengthens it by suppressing the delimiter and appending "Wait".
Because the -th token always uses , the first reasoning tokens are the same tokens whatever is. The page therefore samples each problem's reasoning once, up to 2,048 tokens, and every budget cuts that one reasoning; a budget that comes after the model's own closing tag changes nothing, as the Every budget on this problem panel notes. Of the 40 runs, 28 closed their reasoning within 2,048 tokens. Using the same random numbers under every setting is the method of common random numbers: a difference between two budgets comes from the budget, not from a different draw. Budget 0 inserts the instruction straight after the opening tag.
Accuracy against tokens spent
The Accuracy against tokens spent panel plots right answers against the mean tokens generated per problem, reasoning plus answer, on a axis. Thinking off is right on 25 of the 40 problems with 303 tokens; budget 0 on 21; budgets 128 and 256 on 25 and 26; 512 and 1,024 on 30; and 2,048 on 31, with 1,298 reasoning and 261 answer tokens on average. The table counts how often the budget cut the reasoning: all 40 problems at budgets up to 256, 34 at 512, 23 at 1,024 and 12 at 2,048.
Accuracy rises with the reasoning allowed, from 21 right at budget 0 to 30 at 512, and then flattens: the next two doublings add one problem between them. The s1 paper reports the same kind of curve for budget forcing. Each problem has one sampled run, so a single problem can flip either way between budgets; the starred rows include one that is right with short budgets and wrong with long ones, and others that need the whole reasoning. With 40 problems, a difference of one or two between neighbouring budgets is within the noise of one draw.
The strip shows the same runs problem by problem: Every problem under every setting marks each right, wrong or unanswered, with ✂ where the budget cut, and How long each problem's reasoning ran, unbudgeted draws each reasoning's length against the budget lines, amber where it was still going at 2,048.
Where it came from
Chain-of-thought prompting (Wei et al., 2022) showed that large models solve more word problems when they write their steps first. Reinforcement learning on verifiable answers then made long reasoning a trained behaviour: DeepSeek-R1 (2025) published a recipe and watched the reasoning lengthen as training went on. In the same year s1 showed that a small fine-tuned model's accuracy can be traded against its thinking length at test time, and Qwen3 built thinking, non-thinking and a budget into one model family. Snell et al. compare such sequential use of test-time compute with parallel sampling under a verifier.
The other Reasoning tabs spend tokens in parallel instead: Self-consistency samples many short answers and votes, Best-of-N and PRM let a reward model choose among them, and Tree search lets a process reward model steer the reasoning step by step.
Papers
- s1: Simple test-time scaling Budget forcing: ends the thinking at a token budget by inserting the end-of-thinking delimiter, or extends it with "Wait", and plots accuracy against thinking tokens.
- Qwen3 Technical Report The model recorded here: thinking and non-thinking modes in one model, and the thinking budget with the stop-thinking instruction this page inserts.
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models Prompting a model to write intermediate steps before its answer, the idea thinking mode trains in.
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning Reinforcement learning on verifiable answers that produces long reasoning with self-checking, and distillation of it into small models.
- Training Verifiers to Solve Math Word Problems GSM8K, the grade-school maths problems every Reasoning tab answers.
- Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters Compares spending inference compute sequentially, on revisions, with sampling in parallel under a verifier, and how the best choice depends on the problem.
- The Curious Case of Neural Text Degeneration Nucleus (top-p) sampling, one of the truncations in the next-token panel.
See also
- TransformerLooped Looped transformer · Ouro
- Post-trainingGRPO GRPO · group-relative policy optimization
- Post-trainingDAPO DAPO · decoupled clipping and dynamic sampling
- Post-trainingR1-Distill R1-Distill · reasoning traces into a small model
- AgentsReAct ReAct · thoughts, actions and observations in a loop
- ReasoningCoconut Coconut · reasoning in continuous thoughts instead of tokens