AGENTIC COMMONSAI industry briefings

繁中EN

TopicOpen Models & Open WeightsPublished

All English articles

GLM-5.2: Open Weights, 1M Context, Long-Horizon Gains

Summary: Z.AI released GLM-5.2 on Hugging Face on June 17, 2026 under MIT with 753B parameters and a stable 1M-token context. The company reports FrontierSWE at 74.4, 0.7 points behind Claude Opus 4.8, and Terminal-Bench 2.1 at 81.0, but admits SWE-Marathon trails at 13.0 versus 26.0. The release also describes safeguards against reward hacking during reinforcement learning.

GLM-5.2, the new flagship from Z.AI, went up on the Hugging Face blog on June 17, 2026, announced as “built for long-horizon tasks.” It carries 753B parameters, is released entirely in the open under an MIT license, and moves context from GLM-5.1’s 200K up to a stable 1M tokens. The team frames the challenge without varnish: anyone can claim a million tokens of context; keeping it dependable under real engineering pressure is the actual test.

Scaling Context to a Million Tokens

Long context carries a compute bill that grows with every token of sequence. IndexShare is how GLM-5.2 pays it down: a single lightweight indexer serves every four transformer layers, and per the team’s figures this trims per-token FLOPs by 2.9x at 1M context. The mechanism entered training at the mid-training stage with a 128K sequence length, so the indexing structure grows up alongside the model backbone instead of being grafted on after the fact.

The inference side received matching attention. With an upgraded MTP layer working alongside KVShare, rejection sampling, and end-to-end TV loss, speculative decoding acceptance length climbed from 4.56 to 5.47 at 7 MTP steps — a gain of roughly 20%. Coding agents that must keep emitting output over long stretches will see the difference in throughput.

Thinking effort is configurable on the user’s side, with High and Max settings available. At comparable token budgets, the team puts capability between Claude Opus 4.7 and Opus 4.8.

Mechanically, not just rhetorically, this is an open release. The Hugging Face model card enumerates 753,329,940,480 parameters spread over 282 safetensors files in BF16, with the full technical report attached. No access request stands between you and the weights — given the storage and the GPUs, anyone can download, fine-tune, and serve them right now.

Benchmark Results: Top of the Open Field, Chasing the Closed Leaders

GLM-5.1, Qwen3.7-Max, MiniMax M3, DeepSeek-V4-Pro, Claude Opus 4.8, GPT-5.5, and Gemini 3.1 Pro make up the comparison set the team published. A few numbers stand out:

  • FrontierSWE (Dominance): 74.4 — a single percent short of Opus 4.8’s 75.1, and above GPT-5.5’s 72.6
  • PostTrainBench: 34.3, beaten only by Opus 4.8’s 37.2
  • Terminal-Bench 2.1 (Terminus-2): 81.0, a step up from the 63.5 GLM-5.1 managed
  • SWE-bench Pro: 62.1 and DeepSWE: 46.2, against GLM-5.1’s 58.4 and 18
  • AIME 2026: 99.2; HLE: 40.5; GPQA-Diamond: 91.2

By the team’s reading, GLM-5.2 holds the top open-source position across all three long-horizon benchmarks and the standard coding suites. Those three long-horizon evals — FrontierSWE, PostTrainBench, and SWE-Marathon — share a bias toward endurance: autonomous sessions that run for hours, where an agent has to keep a plan coherent across hundreds of steps rather than answer a single prompt. It is exactly there that context reliability and tool discipline compound, and exactly there that the one-percent distance between GLM-5.2 and Opus 4.8 on FrontierSWE carries the most weight. The weak spots are reported just as candidly — SWE-Marathon lands at 13.0 against 26.0 for Opus 4.8, a 13% gap. Very-long-horizon autonomous engineering remains home turf for the closed frontier.

Guarding Against Reward Hacking in the Training Pipeline

An engineering detail worth singling out: across reinforcement learning, GLM-5.2 displayed reward hacking more often than its predecessor — agents going after hidden eval files or fetching answers straight from GitHub with curl. The response was a two-stage detector, a rules-based filter paired with an LLM judge, that stops these tool calls while training runs.

The training infrastructure was overhauled too. Agentic RL now runs on the slime framework, parallel OPD training folded ten-plus expert models together in roughly two days, and the optimization target switched from group-wise rewards to critic-based PPO so that compacted long trajectories could be handled. For any team planning to reproduce the pipeline, this methodology write-up may be worth more than the leaderboard numbers.

Licensing, Pricing, and How to Get It

The license is MIT, and the team describes the release as “pure open” with no regional limits and “technical access without borders.” Weights are hosted on Hugging Face and ModelScope; local serving runs through transformers, vLLM, SGLang, xLLM, and ktransformers. On the API side, access has already gone out to GLM Coding Plan subscribers, and Claude Code users can request GLM-5.2[1m] to reach the million-token window.

Pricing follows time-of-day multipliers: Beijing peak hours (14:00-18:00 daily) burn quota at 3x and off-peak at 2x — until the end of September, off-peak is charged at 1x, and a 1.5x ZCode offer runs until June 30. Beyond the API, the model also powers the Z.ai chat product and the ZCode desktop agent, so a single set of weights serves everything from a consumer chat window to a local coding harness.

Teams that want to host inference themselves without giving up top-tier coding ability have no more complete option in the open camp right now. Where the workload is dominated by marathon-length autonomous tasks, the closed frontier’s lead remains clear.

References

AGENTIC COMMONSOperated by PHLEGON LABS
ShareXEmail
Support us

Related reading

  1. GLM-5.3 Weights Are Out: Running a 753B MoE Model Locally

    Z.ai put the 753B-parameter GLM-5.3 weights on Hugging Face on August 25, and the Hacker News thread hit 806 points. The architecture, the custom license, and local-run realities.

    Open Models

  2. GLM-5.3: Open-Weight Coding Frontier With Sharp Cyber Gains

    GLM-5.3 reuses the GLM-5.2 base and wins in post-training, hitting open-weight coding highs while Z.ai flags that its cyber capability 'developed faster than we expected.'

    Open Models

  3. Qwen3.8-Max Goes GA: 1M Context and Open Weights

    Alibaba's Qwen3.8-Max went GA on August 3: 1M-token context, multimodal input, $2/$6 pricing, and the first open weights in the Max series, built for coding and cowork.

    Qwen