Z.AI releases GLM-5.2 with 1M token context, outperforms GPT-5.5 on long-horizon coding benchmarks
Z.AI has released GLM-5.2, an open-source model with a 1M-token context window under an MIT license. On FrontierSWE, a long-horizon coding benchmark, GLM-5.2 trails Claude Opus 4.8 by 1% while outperforming GPT-5.5 by 1%, and achieves 81.0 on Terminal-Bench 2.1 compared to Opus 4.8's 85.0.
GLM-5.2 at a glance
How GLM-5.2 ranks now
| Benchmark | Score | Rank | Source |
|---|---|---|---|
| AA Intelligence Index | 33.7 index | 33 of 124 | Artificial Analysis, Oct 2026 ↗ |
| Arena Elo | 1475 Elo | 28 of 151 | LMArena, Oct 2026 ↗ |
| GPQA | 85.6% | 80 of 159 | Vals AI, Sep 2026 ↗ |
| SWE-bench Verified | 82.8% | 10 of 78 | Vals AI, Sep 2026 ↗ |
| AA Coding Index | 68.8 index | 28 of 78 | Artificial Analysis, Oct 2026 ↗ |
Rank is against every model in our database with a sourced score on that benchmark, each counted once with its best score.
Z.AI Releases GLM-5.2 with 1M Token Context, Outperforms GPT-5.5 on Long-Horizon Coding Benchmarks
Z.AI has released GLM-5.2, an open-source model with a 1M-token context window released under an MIT license with no regional restrictions. The model is designed specifically for long-horizon coding tasks and agent-based workflows.
Benchmark Performance
On FrontierSWE, which measures multi-hour technical projects including systems optimization and ML research, GLM-5.2 trails Claude Opus 4.8 by 1% while outperforming GPT-5.5 by 1% and Claude Opus 4.7 by 11%. According to Z.AI, the company ranks as the highest-performing open-source model across three long-horizon benchmarks.
On standard coding benchmarks, GLM-5.2 scores 81.0 on Terminal-Bench 2.1, approaching Claude Opus 4.8's 85.0 and surpassing Gemini 3.1 Pro. The model achieves 62.1 on SWE-bench Pro, compared to its predecessor GLM-5.1's 58.4.
On PostTrainBench, where agents receive an H100 GPU to improve small models through post-training, GLM-5.2 outperforms both Opus 4.7 and GPT-5.5, ranking second only to Opus 4.8, according to Z.AI. On SWE-Marathon, covering compiler building and kernel optimization, GLM-5.2 trails Opus 4.8 by 13%.
Technical Architecture
GLM-5.2 introduces IndexShare, which reuses the same indexer across every four sparse attention layers, reducing per-token FLOPs by 2.9× at 1M context length. The company claims this approach maintains quality across long coding-agent trajectories rather than simply accepting more tokens.
The model includes effort level control, allowing users to balance capability against execution speed. At comparable token budgets, Z.AI positions GLM-5.2's capability between Claude Opus 4.7 and 4.8, with a Max effort level for additional computation on challenging tasks.
The improved MTP (multi-token prediction) layer for speculative decoding increases acceptance length by up to 20% through techniques including IndexShare, KV cache reuse, rejection sampling, and end-to-end TV loss training. In ablation testing, acceptance length improved from 4.56 tokens to 5.47 tokens.
Training and Availability
Z.AI expanded 1M-context training specifically for coding-agent scenarios, covering large-scale implementation, automated research, performance optimization, and debugging. The training incorporated IndexShare from mid-training at 128K sequence length.
The model is available under an MIT open-source license with no regional limits. Pricing has not been disclosed.
What This Means
GLM-5.2 represents the first truly competitive open-source alternative for long-context coding work, with performance within striking distance of frontier closed models. The 2.9× FLOP reduction at 1M tokens addresses a critical efficiency bottleneck that has limited practical deployment of ultra-long-context models. Z.AI's focus on sustained quality across messy agent trajectories—rather than just benchmark performance on clean inputs—suggests the model may handle real-world coding workflows better than context window size alone would indicate. The MIT license removes barriers that have limited enterprise adoption of other open models.
Related Articles
Thinking Machines' Inkling 2 Small scores 31 on Artificial Analysis Intelligence Index, matching Gemini 3.8 Flash (high)
Thinking Machines has released Inkling 2 Small, which scores 31 on the Artificial Analysis Intelligence Index v5.0.1, matching Gemini 3.8 Flash (high). It launches as a proprietary model on Tinker at $0.30/$1.00 per 1M input/output tokens, with an Apache 2.0 weights release planned.
Baidu open-sources ERNIE 5.5 Flash Base, an MoE model with 1M-token context for fine-tuning and inference
Baidu open-sourced ERNIE 5.5 Flash Base on November 5. It is a Mixture-of-Experts base model pretrained on 33.5 trillion tokens, with 128K pretraining context and up to 1M tokens in fine-tuning and inference. Baidu claims it sets state-of-the-art results among models of the same size.
Salesforce launches Koa Decisions, a Gemma-based model that classifies text, image and audio requests
Salesforce introduced Koa Decisions on November 6, 2026. The decision model is built from Google's open-weight Gemma and accepts text, images and audio. It is the next version of HyperClassifier.
Underdog releases Woof, a 31M-parameter open text-to-speech model that runs in a browser
Underdog's new text-to-speech model Woof has 31 million parameters and weighs 31.7 MB. The company says it runs on most devices without an internet connection, and the weights are open to download. Underdog demonstrated it with a browser game posted on November 5, 2026.
Comments
Loading...