What the template preserves
Qwen-3 utilizes a rolling checkpoint system, intelligently preserving or pruning reasoning blocks to maintain relevant context. [1]
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
- 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
- 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
- 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
- The Hugging Face source says: Older models discarded reasoning prematurely to save tokens. The 4 Things Qwen-3's Chat Template Teaches Us