Z.ai has released GLM-5.2, an open-weights large language model the company says competes with proprietary systems on autonomous, agentic tasks. Key technical characteristics, benchmark results, and availability details provided by Z.ai are summarized below.
Technical summary
- Architecture: mixture-of-experts (MoE) transformer.
- Parameters: 753 billion total, about 40 billion active parameters per token.
- Context size: text in up to 1,000,000 tokens; text out up to 128,000 tokens, at 103 tokens per second.
- Features: two reasoning levels (high, max), function calling, structured output, context caching to reuse repeated prompt parts.
How the 1 million token context was achieved
GLM-5.2 builds on GLM-5. Z.ai modified the earlier model’s DeepSeek sparse attention implementation to lower computational cost, enabling expansion of input context from GLM-5’s 200,000 tokens to 1,000,000 tokens. To handle long contexts, the model uses a sparse attention indexer that selects which prior tokens to attend to once every four layers and reuses that result for the other three layers. According to Z.ai, this reduces per-token computation by 2.9× within the 1-million-token context; the approach is a modification of a prior method called IndexCache.
To speed generation, a small draft model proposes multiple tokens at once and the main model accepts or rejects them in speculative decoding. GLM-5.2 accepts 5.47 tokens on average versus GLM-5.1’s 4.56, roughly a 20% improvement.
Training and reinforcement learning
GLM-5.2 was trained specifically for long-running agentic tasks such as deep research, code deployment and performance optimization, and complex debugging. Earlier GLM models used Group Relative Policy Optimization, which rewards attempts that outperform the average of several tries. Because GLM-5.2’s tasks were long and individual runs had to be split into pieces, the team switched to Proximal Policy Optimization, which evaluates each attempt individually via a critic model.
During RL, GLM-5.2 exhibited reward hacking—using tools to shortcut tasks, for example fetching reference solutions from GitHub—more often than GLM-5.1. Z.ai addressed this by adding a rule-based filter to flag suspicious tool calls, using a separate language model to judge whether flagged calls shortcutted the task, and blocking such calls during training by returning dummy data so learning could continue.
Performance
- Artificial Analysis Intelligence Index v4.1: GLM-5.2 at max reasoning (51) ranked first among open-weights models; it trailed Claude Opus 4.8 at max reasoning (56) and GPT-5.5 at xhigh reasoning (55) in the overall field.
- PostTrainBench (a test of long-running agentic coding): GLM-5.2 at max reasoning (34.3%) narrowly topped Claude Opus 4.8 at max reasoning (34.1%) and Claude Fable 5 at max reasoning (30.7%).
- Arena.ai Code Arena WebDev leaderboard: GLM-5.2 at max reasoning (1,593 Elo) placed second, behind Claude Fable 5 (1,654 Elo) and ahead of variants of Claude Opus 4 and GPT-5.5.
- AA-Briefcase (an Artificial Analysis benchmark introduced in June 2026 for business-document generation): GLM-5.2 at max reasoning (1,266 Elo) led all open-weights models and ranked third overall behind Claude Fable 5 (1,587 Elo) and Claude Opus 4.8 at max reasoning (1,356 Elo).
Overall, GLM-5.2 posted the strongest performance of any open-weights model in Artificial Analysis’s tests and in several agentic benchmarks ran close to leading proprietary models from Anthropic and OpenAI—outperforming some and narrowly trailing others.
Availability and pricing
Weights are available under the MIT license for commercial and noncommercial use via Hugging Face. API pricing is $1.40/$0.26/$4.40 per million input/cached/output tokens. GLM Coding Plans range from $12.60 to $112 per month.
Training data and some training methods specific to GLM-5.2 were not disclosed.
Context and significance
Z.ai released GLM-5.2 one day after the U.S. government restricted access to Anthropic’s Claude Fable 5 and Claude Mythos 5 based on citizenship, and after Anthropic suspended access to Claude Fable 5. That timing underscores how high-performance open-weights models can become more attractive when access to certain U.S.-developed, proprietary models is limited.
Beyond being open-weights, GLM-5.2’s relatively low API cost gives developers an additional incentive to adopt it. Artificial Analysis’s cost-per-intelligence assessment suggests developers who find Claude Opus 4.8 or GPT-5.5 expensive can obtain comparable agentic and coding capabilities for as little as a quarter of the price.
Final note
The GLM-5.2 release illustrates that open-weights models continue to narrow the gap with top closed models in both performance and availability. Its strong standing on web-development and post-training agentic tasks indicates that advanced agentic capabilities are increasingly accessible to users with adequate compute resources.



