Skip to content
IJK

Qwen-3's Rolling Checkpoint: Which Reasoning Blocks Survive a Turn

By IJK ·

What the Hugging Face post says Qwen-3's chat template keeps and strips across turns, how it finds the checkpoint and what older templates did instead.

What the template preserves

Qwen-3 utilizes a rolling checkpoint system, intelligently preserving or pruning reasoning blocks to maintain relevant context. [1]

Traverse the messages in reverseto the latest user turn that was not a tool callReplies after that indexkeep their full reasoning blocksEverything earlieris stripped out
Which reasoning blocks does the template keep, and which does it strip?

How the checkpoint is found

Qwen-3 introduces a "rolling checkpoint" by traversing the message list in reverse to find the latest user turn that wasn’t a tool call. [2]

For any assistant replies after that index it keeps the full <think> blocks; everything earlier is stripped out. [3]

What older models did

Older models discarded reasoning prematurely to save tokens. [4]

Sources

  1. The Hugging Face source says: Qwen-3 utilizes a rolling checkpoint system, intelligently preserving or pruning reasoning blocks to maintain relevant context. The 4 Things Qwen-3's Chat Template Teaches Us
  2. The Hugging Face source says: Qwen-3 introduces a "rolling checkpoint" by traversing the message list in reverse to find the latest user turn that wasn’t a tool call. The 4 Things Qwen-3's Chat Template Teaches Us
  3. The Hugging Face source says: For any assistant replies after that index it keeps the full <think> blocks; everything earlier is stripped out. The 4 Things Qwen-3's Chat Template Teaches Us
  4. The Hugging Face source says: Older models discarded reasoning prematurely to save tokens. The 4 Things Qwen-3's Chat Template Teaches Us

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • llm
  • chat templates
  • reasoning
  • qwen