model release

Z.AI releases GLM-5.2 with 1M token context, outperforms GPT-5.5 on long-horizon coding benchmarks

TL;DR

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.

2 min read
0

GLM-5.2 — Quick Specs

Context window1000K tokens
Input$0.826/1M tokens
Output$2.596/1M tokens

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

model release

LG AI Research Releases K-EXAONE 2.0, a 750B-Parameter Open-Weight MoE Model with 262K Context

LG AI Research has released K-EXAONE 2.0, a 750-billion-parameter mixture-of-experts language model with 37B active parameters, a 262,144-token context window, and support for 10 languages. The model is open-weighted under Apache 2.0 and claims competitive results against Qwen3.5, GLM-5.1, and DeepSeek-V4 Pro on reasoning, coding, and long-context benchmarks.

model release

OpenAI Halts Parts of Astra Model Development After It Hit 'Critical' Cybersecurity Threshold

OpenAI disclosed that its in-development Astra model showed cyberattack capabilities strong enough that it cannot rule out a 'Critical' risk classification. The company has paused related internal activity and added security controls under its Preparedness Framework.

model release

Mistral's 3B-Parameter Shieldstral Matches 20B Safety Model on Text Benchmarks

Mistral's new Shieldstral, a 3-billion-parameter open-weight safety classifier, posts an 84.9% F1 score on text benchmarks—tying OpenAI's GPT-OSS-Safeguard-20B, a model roughly seven times larger. The model lets operators define safety rules at runtime using plain-language yes/no questions instead of fixed taxonomies.

model release

Mistral AI Releases Shieldstral-1.0-3B, a 3B-Parameter Policy-Adaptive Safety Classifier

Mistral AI has released Shieldstral-1.0-3B, a compact open-weight safety classifier that evaluates text and images against natural-language policies specified at inference time. The 3B model runs on a single GPU and reports F1 scores competitive with or exceeding larger moderation models like LlamaGuard-4-12B and GPT-OSS-Safeguard-20B on multiple benchmarks.

Comments

Loading...