惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
D
Docker
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
H
Help Net Security
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
L
LangChain Blog
MongoDB | Blog
MongoDB | Blog
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
博客园 - 司徒正美
C
Check Point Blog
B
Blog
Y
Y Combinator Blog
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
F
Fortinet All Blogs
美团技术团队
D
DataBreaches.Net

The Decoder

The AI industry's platform trap is starting to look a lot like Microsoft's OpenAI buys Ona to push Codex toward long-running, autonomous coding tasks Jeff Bezos' AI startup Prometheus closes $12 billion round at a $41 billion valuation Free Deezer tool lets users on any streaming service check their playlists for AI music OpenAI vs. Anthropic: A price war over API tokens is brewing Dario Amodei's new essay reads like a Cold War playbook for the AI age Claude Fable 5: Anthropic admits "wrong tradeoff" after invisibly throttling rival AI researchers Google's new open model DiffusionGemma generates text from noise instead of word by word OpenAI's IPO slips as Altman tells staff to expect a public offering "within the next year" Anthropic study shows AI needs hours, not weeks, to build exploits from security patches OpenAI wants its biggest data center yet, and Nvidia would back the bill Claude Fable 5: The first Mythos model is powerful, expensive, and heavily filtered Germany's National Security Council greenights an AI Safety Institute modeled after the UK's AISI Google's NotebookLM now runs its own cloud computer with code execution and agent-based research Anthropic releases Claude Fable 5 and Mythos 5 with major gains in coding and science Google's Gemini 3.5 Live Translate delivers real-time voice translation across 70+ languages SpaceX wants to put data centers in orbit, and Musk says it's no big deal Landmark German ruling declares Google's AI Overviews are Google's own words and makes it liable for false answers Beijing's $295 billion AI buildout would require 80 percent domestic chips, locking out US suppliers Apple Intelligence gets a second shot with help from Google and Nvidia OpenAI now says "entirely automating everything is not the future we want" OpenAI says going public is "a complicated set of tradeoffs" and is unsure about the timing Microsoft Research's Lens proves detailed captions matter more than raw scale for training efficient image generators Intel gets a second life as Google and Nvidia explore it as a TSMC backup for AI chips Most companies are flying blind on AI spending Frontier Radar #3: How agentic AI is turning tokens into a business metric Instagram AI chatbot breach may have affected over to 20,000 accounts, Meta discloses Microsoft tightens rules for conflict zones after investigation into Israel's military use of Azure Moonshot AI targets a $30 billion valuation, more than six times its late-2025 worth Deepseek topped Ramp's trending software vendors in June 2026 as US companies chase cheaper AI
Zhipu AI's GLM-5.2 closes in on closed-source leaders in ...
Jonathan Kemper · 2026-06-18 · via The Decoder

Chinese AI lab Zhipu AI releases GLM-5.2 with a stable 1-million-token context under the MIT license. On hours-long coding tasks, the open-source model trails Anthropic's Opus models by just a few percentage points.

Zhipu AI has unveiled GLM-5.2, positioning the model as a tool for so-called long-horizon tasks - coding jobs that stretch over hours and thousands of individual steps. To get there, the company expanded the context window to one million tokens and focused training on agentic coding scenarios like large-scale implementation, automated research, and complex debugging.

"A 1M context is easy to claim, but much harder to keep reliable under real engineering pressure," Zhipu AI writes in its blog post, because the model needs to maintain quality across long, unstructured coding agent sessions.

Bar chart comparing GLM-5.2 with Opus 4.8, Opus 4.7, GPT-5.5, and Gemini 3.1 Pro across three long-horizon coding benchmarks.
On long-horizon tasks, GLM-5.2 usually lands just behind Opus 4.8 but remains the strongest open model. | Image: Zhipu AI

Just one percentage point behind the latest Opus model

On FrontierSWE, which evaluates open engineering projects ranging from hours to dozens of hours, GLM-5.2 scores 74.4 percent, just one point behind Anthropic's Claude Opus 4.8 and slightly ahead of OpenAI's GPT-5.5.

On PostTrainBench, where an agent uses an H100 GPU to improve small models through post-training, GLM-5.2 beats both GPT-5.5 and Opus 4.7, again landing second behind Opus 4.8. On SWE-Marathon, an ultra-long-horizon benchmark with demanding tasks like compiler construction and kernel optimization, the gap is much wider: GLM-5.2 reaches only half of Opus 4.8's score.

Anthropic's current top models Fable and Mythos aren't part of these comparisons, since Fable was pulled shortly after launch and Mythos was never broadly released. Across all three benchmarks, GLM-5.2 is still the strongest open-source model, according to Zhipu AI.

Bar chart showing GLM-5.2, GLM-5.1, Opus 4.8, GPT-5.5, and Gemini 3.1 Pro across eight coding benchmarks.
On standard coding tasks, GLM-5.2 pulls clearly ahead of its predecessor GLM-5.1. | Image: Zhipu AI

The jump over the predecessor is just as clear on standard coding tasks. On Terminal-Bench 2.1, GLM-5.2 climbs from 63.5 (GLM-5.1) to 81, putting it within a few points of Claude Opus 4.8. On SWE-bench Pro, the score goes from 58.4 to 62.1.

Users can also dial the model's thinking effort up or down. At a similar token budget, GLM-5.2 delivers much stronger coding results than GLM-5.1, Zhipu AI says. The highest setting, "Max," lets users throw extra compute at the hardest problems.

Line chart showing coding performance relative to tokens used for GLM-5.2, GLM-5.1, Opus 4.8, and Opus 4.7, each with effort levels from Non-Thinking to Max.
The "High" effort level already extracts nearly full performance. "Max" costs far more tokens for barely any extra points. | Image: Zhipu AI

Reasoning still trails closed-source rivals by a wide margin

On Humanity's Last Exam, GLM-5.2 falls clearly behind Claude Opus 4.8 and Gemini 3.1 Pro according to the benchmark table. Those two lead by about ten and five percentage points. GLM-5.2 also ranks behind the top closed-source models on GPQA-Diamond, a scientific question benchmark. Math is a different story. The model nails 99.2 percent on AIME 2026.

Agentic tasks beyond coding paint a mixed picture. On MCP-Atlas, a tool-use test, GLM-5.2 nearly ties with Opus 4.8. On Tool-Decathlon, it falls well behind both Opus 4.8 and GPT-5.5.

Independent platform Artificial Analysis backs up the gains over the predecessor. On its Intelligence Index, GLM-5.2 scores 51 points, making it the current strongest open-weights model. It sits clearly ahead of MiniMax M3, DeepSeek V4 Pro, and Kimi K2.6. The biggest jumps show up in scientific reasoning, and it hallucinates a bit less than its predecessor.

Bar chart and scatter plot: AI models ranked by Artificial Analysis Intelligence Index; intelligence index versus cost per task (USD).
The top chart ranks AI models by their Artificial Analysis Intelligence Index, an aggregate of several benchmarks. The bottom chart plots intelligence index against cost per task to identify the most cost-effective top models. | Image: Artificial Analysis

On GDPval-AA v2, which Artificial Analysis considers its top metric for real-world agentic tasks, GLM-5.2 matches the proprietary GPT-5.5. The trade-off is that it burns through far more tokens than the open competition, making it one of the least efficient models in its class.

New architecture slashes compute costs for long contexts

To make the 1-million-token context practical, Zhipu AI introduces a technique called IndexShare. Groups of four transformer layers share the same lightweight indexer instead of each layer computing its own. That should cut compute per token by 2.9x at one million tokens of context.

Diagram of the GLM-5.2 architecture with main model, shared MTP modules, and shared indexer.
With IndexShare, multiple layers share the same indexer, saving compute on long contexts. | Image: Zhipu AI

Zhipu AI also sped up text generation. With speculative decoding, the model predicts several tokens at once and throws out wrong guesses afterward. Through several tweaks to this process, GLM-5.2 accepts 20 percent more predicted tokens on average, according to the company's ablation studies. That directly speeds up output.

Bar chart comparing throughput of GLM-5.1 and GLM-5.2 at sequence lengths from 32k to 1024k.
The longer the context, the more clearly GLM-5.2 outpaces its predecessor in throughput. | Image: Zhipu AI

The model cheats during training by downloading code from GitHub

In an unusually candid move, Zhipu AI describes a problem that crops up during reinforcement learning for coding tasks. Because the reward is typically a binary pass/fail signal, the model can learn to game it instead of actually writing better code. GLM-5.2 tried this more often than its predecessor.

According to Zhipu AI, the model pulls solution code straight from GitHub via curl, hunts for hidden evaluation files in the file system, or chains commands to first find secret test cases and then feed them into a solution script. These tricks inflate reward signals and corrupt training.

To fix this, Zhipu AI built a two-stage anti-hacking module. A rule-based filter catches suspicious actions first. Then an LLM judge checks the intent behind flagged calls. The system blocks only the cheating call and returns a dummy response, letting the training run continue. That keeps aborted rollouts from destabilizing the model.

Model weights and API available now

Model weights are live on HuggingFace and ModelScope, with code on GitHub, all under the MIT license with no regional restrictions. GLM-5.2 works as a chat interface and API through Z.ai and plugs into coding agents like ZCode, Claude Code, and OpenCode. For local deployment, Zhipu AI supports vLLM, SGLang, transformers, xLLM, and ktransformers.

Zhipu AI recently shipped GLM-5.1, an open-weights model that could refine its own strategy across hundreds of iterations on coding tasks. It reportedly built a Linux desktop in eight hours. GLM-5.2 builds on that, adding the 1-million-token context and much stronger long-horizon skills.

Competition among Chinese AI labs stays fierce. Alongside Zhipu AI, Moonshot AI with Kimi K2.7-Code and MiniMax with M3 are also fighting for the autonomous coding agent market with long context windows.