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 — Quick Specs
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
Tencent Open-Sources AuK, a 1.5B-Parameter Speech Generation and Editing Model
Tencent has open-sourced AuK, a 1.5B-parameter foundation model for speech generation and editing that handles TTS, content editing, and audio enhancement through natural-language instructions. The release includes a distilled AuK-Flash variant for 4-step fast inference, both under MIT license.
AllSpark's Iris-mini and Iris-pro Top Open-Weight Search Agent Benchmarks
Chinese lab AllSpark has released Iris-mini and Iris-pro, two open-weight search agents built on Qwen3 models that claim the top spot among open-weight systems in their size classes on four research benchmarks. The release includes model weights, an agent harness, and evaluation code, with training pipelines to follow.
Google Releases TimesFM-3, a 330M-Parameter Model That Forecasts Sales Using Weather and Discount Data
Google Research has released TimesFM-3, a 330-million-parameter time series forecasting model that predicts outcomes like sales by combining related variables, historical data, and known future events such as discounts or weather. The model claims top rankings on three benchmarks against Amazon's Chronos-2 and the Toto-2.0 family.
DeepSeek Ships V4.1-Flash With Novel Encoder-Decoder Architecture, Cuts KV Cache to 1/8 of Predecessor
DeepSeek released V4.1-Flash, a 763B-parameter model built on a new causal encoder-decoder architecture that splits 8B active parameters for prefill and 16B for decode. The model adds native vision support, a 1M-token context window, and shrinks KV cache footprint to roughly 1/8 of DeepSeek V4 Flash, while retiring V4 Pro.
Comments
Loading...