Armin Ronacher explains how reasoning effort lives in the system prompt and wrecks KV cache
mitsuhiko · x · 2026-08-20
Armin Ronacher (creator of Flask) published "What Is Reasoning", prompted by a paper showing reasoning traces can be extracted from closed-weight models:
- Reasoning traces are just text: the model is trained to emit thinking into a scratchpad before its final answer. In GPT-OSS's Harmony format, the analysis and final channels use the same text separated by special tokens; a parser routes reasoning into a separate API stream, while closed models presumably use another model to redact and summarize it.
- Reasoning effort is baked into the system prompt: earlier APIs exposed it as a token budget, making it look like a sampling parameter, but it's really part of the system prompt.
- The post also explains why changing reasoning effort invalidates the KV cache and how CoT traces can leak—valuable reading for anyone optimizing inference serving.
More from Models
- NeurIPS paper: buggy baselines hid that SFT-then-RL beats mixed-policy RL by up to +22.2 points — valentina__py · 2026-11-30
- oMLX 0.8.4 doubles Inkling 2 Mini decode speed on Mac, adds concurrent MTP — pcuenq · 2026-11-30
- One Weird Image Makes Qwen Claim It's Anthropic's Claude — Sauers_ · 2026-11-30
- World model demo: Unitree B2/H1 robots navigate generated world with intact spatial memory — Scobleizer · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Trap 2: 36% of training pairs silently taught the model to fabricate quotes — IridiumEagle · 2026-11-30