Z.AI releases GLM-5.2: first open-source model with solid 1M-token context, built for long-horizon coding tasks
GLM-5.2: Built for Long-Horizon Tasks
Z.AI open-sourced GLM-5.2, a model built for long-horizon coding tasks. It delivers a genuinely usable 1M-token context—not just accepting more tokens, but maintaining quality across long agent trajectories. IndexShare reuses one indexer across every four sparse attention layers, cutting per-token FLOPs by 2.9× at 1M context; MTP acceptance length improved by up to 20%. On FrontierSWE it beats GPT-5.5 by 1%, and on PostTrainBench it outranks both GPT-5.5 and Opus 4.7, placing second. It's the top open-source model across all three long-horizon coding benchmarks. MIT license, no regional restrictions.
Why it matters: Z.AI's open-source GLM-5.2 pushes context to 1M tokens, holds output quality through long agent runs, and IndexShare cuts compute per token to about a third at equal length.