Back to News
InnovationAI Understanding briefing

Zhipu AI Open-Sources GLM-5.2 With a One-Million-Token Context Window

The Chinese lab has released the weights of GLM-5.2 under a permissive MIT license, giving developers everywhere a frontier-class coding model they can download and run themselves.

June 17, 20266 min read
Zhipu AI Open-Sources GLM-5.2 With a One-Million-Token Context Window
The short version

The Chinese lab has released the weights of GLM-5.2 under a permissive MIT license, giving developers everywhere a frontier-class coding model they can download and run themselves.

What happened

On June 17, Zhipu AI — the Chinese lab also known as Z.ai — released the full weights of GLM-5.2, its newest flagship model, under the MIT license. That is one of the most permissive licenses in software: anyone can download the model from Hugging Face or ModelScope and use it for any purpose, commercial or otherwise, with no regional restrictions.

GLM-5.2 is built for coding, reasoning, and agentic work — tasks where a model plans and executes multiple steps using tools. It is a large mixture-of-experts design, reported at roughly 750 billion total parameters with around 40 billion active for any given token, and its standout feature is a context window of one million tokens, several times larger than its predecessor. In practical terms, that is enough to hand the model an entire codebase or a shelf of documents in a single request.

How it performs

Independent coverage from The Decoder reports strong results on coding benchmarks. GLM-5.2 scores 62.1 on SWE-bench Pro, a test of resolving real software engineering issues, up from 58.4 for the previous GLM-5.1. On the Artificial Analysis Intelligence Index, it scores 51 points, making it the strongest open-weights model currently tracked. It still trails the top closed models — Claude Opus 4.8 and Gemini 3.1 Pro remain ahead on hard reasoning evaluations — but the gap has narrowed to single digits on several coding measures.

The engineering behind the long context window is notable in its own right. A technique Zhipu calls IndexShare lets groups of transformer layers share lightweight attention indexers, which the company says cuts compute per token by nearly three times at the full one-million-token length — the difference between a long context window that exists on paper and one that is affordable to actually use.

The open-weights race

GLM-5.2 continues a pattern that has defined the past two years: Chinese labs releasing increasingly capable models with open weights while the leading American labs keep their best models behind APIs. For developers, researchers, and companies that need to run models on their own hardware — for cost, privacy, or reliability reasons — the strongest options now come predominantly from China.

Why it matters

  • Frontier-adjacent AI is now free to download. Capabilities that were exclusive to paid APIs a year ago can now run on hardware you control, which matters for anyone with data they cannot send to a third party.
  • It pressures pricing everywhere. Every capable open model sets a floor under what closed providers can charge, one reason API prices keep falling across the industry.
  • It complicates AI governance. The same month the U.S. government temporarily shut down access to Anthropic's top models over security concerns, a comparable-class model was published for unrestricted worldwide download. Controls on closed models do not reach open ones, and policymakers have yet to resolve that tension.

What to watch next

Watch for independent replication of the benchmark results now that anyone can test the model directly, and for how quickly GLM-5.2 spreads through the tools developers already use — it ships with support for popular open-source serving frameworks and coding agents. The larger question is strategic: whether American labs respond with more capable open releases of their own, and whether governments attempt to regulate open-weights models at all, given that once weights are published, they cannot be recalled.

Found this useful?
The Monthly Briefing

Get the AI stories that actually matter.

One short email a month — what changed in AI, why it matters, plus the tools and guides worth your time.

Free · No spam · Unsubscribe in one click