GLM's docs reveal how a twice-run model handles memory: two KV streams, one loop window
krishnan · x · 2026-11-26
Varun Krishnan walks through GLM's docs answering a question nobody asks at launch: which version of the past does a second pass remember?
- GLM-5.4 loops 28 layers of its GLM-5 base for two iterations at 750B scale.
- A naive build would keep a full KV cache per pass, so memory grows with loop count — untenable at 1M context.
- Instead the second pass reads two KV streams: the sparse KV already selected by pass one, plus its own recent sliding-window KV. Both can cover the same token position, giving the model both the first-pass view and its updated view.
- The extra loop costs one window of KV, not a second full-context cache, and reuses pass one's sparse attention indices instead of recomputing them.
More from Models
- Together AI: chasing the top model can cost 2× tokens, cost and runtime vs near-top picks — togethercompute · 2026-11-29
- Users report GPT-6.2-Astra suddenly faster and smarter, speculating OpenAI rolled back throttling — yihui_indie · 2026-11-29
- Delip Rao to Anthropic: enable reasoning traces if you want good faith — deliprao · 2026-11-29
- Moth adds MCP integration: 60 models run inside Claude at up to 55% below list price — Aiden_Tech_Ai · 2026-11-29
- LiveBench data: top reasoning model scores 95.1 but drops to 58.5 on agentic tasks — Aiden_Tech_Ai · 2026-11-29
- Commentary: Neon marks Anthropic's first serious momentum loss since Opus 4.5 — teortaxesTex · 2026-11-29