Z.ai releases GLM-5, an open 744-billion-parameter model

GLM-5 is a 744-billion-parameter language model of which only 40 billion parameters work on any one word, trained on 28.5 trillion tokens. Its makers, the GLM-5 team at Zhipu AI (which trades as Z.ai) and Tsinghua University, described it in a technical report posted to arXiv on 17 February 2026 and revised on 24 February. It is a company report, not peer reviewed, and every benchmark below is the authors' own measurement. The weights are public on Hugging Face under the MIT licence.

In short

744B total parameters, 40B active per token; 28.5T tokens of base-model training; 1.5-2× less attention computation on long inputs, per the report; 77.8 SWE-bench Verified score, authors' test

Why does reading long text cost an AI model so much?

In a standard Transformer every new token "attends" to every earlier token, so the work grows with the square of the input length; the report calls this dense O(L²) attention and says it "becomes prohibitively expensive at 128K contexts". DSA, introduced by DeepSeek, replaces that with a selection step: a small, fast indexer scores the earlier tokens and the model attends only to the top ones, 2,048 of them in GLM-5's set-up. Unlike a fixed sliding window, the choice depends on the content (our plain summary of the report's description).

The report leans on DeepSeek's earlier result that its sparse model matched its dense predecessor, which the GLM-5 authors read as showing that "90% of attention entries in long contexts are indeed redundant". For GLM-5 they claim DSA lets the model handle 128K contexts "at half the GPU cost".

Switching to sparse without starting over

GLM-5 was not trained sparse from the start. The team trained a dense base model, then converted it. The report's pipeline figure sets out the stages:

The DSA switch began with a warm-up of 1,000 steps, each on 14 sequences of 202,752 tokens, followed by 20B tokens of sparse training. That is far less than the 943.7B tokens DeepSeek-V3.2 spent, but the authors report it was enough. On their long-context tests the sparse model scored 100.0 against 100.0 on MQ-NIAH-128k, 97.0 against 95.5 on MV-NIAH-128k and 86.0 against 79.7 on SQuAD-128k, but 63.0 against 66.3 on HotpotQA-128k. After the same supervised fine-tuning, they say, the sparse and dense versions "tie in training loss and evaluation benchmarks".

Separating the writers from the learners

Reinforcement learning for agents means letting the model attempt long tasks, such as fixing a real GitHub issue, and rewarding it for success. The authors write that the attempts vary hugely in length, so in a synchronous set-up the whole batch waits for the slowest one and GPUs sit idle.

Their answer, built on Z.ai's open-source slime framework, puts the inference engine and the training engine on different GPUs. The inference side keeps generating attempts; once enough have piled up, a batch goes to training, and every few updates the new weights are pushed back to the generators. The catch, the authors note, is that attempts may come from older versions of the model, a "severe off-policy issue"; they reset the optimiser after each weight push, among other fixes. A central orchestrator supports more than 1,000 rollouts at once. The report says this "drastically improves" post-training efficiency but gives no measured speed-up figure.

Training used more than 10,000 verifiable software-engineering and terminal scenarios, and roughly 10 million GitHub issue and pull-request pairs went into mid-training.

The results, as the authors measured them

The report's main table compares GLM-5 with its predecessor, other open models and closed ones. A selection:

* scored on the full HLE set; GLM-5's HLE scores are on the text-only subset.

These are the developer's own runs. Some settings were adjusted: a tailored prompt for SWE-bench, a longer timeout on MCP-Atlas, prompt fixes on τ²-Bench. On a "verified" Terminal-Bench 2.0 with ambiguous instructions fixed, GLM-5 scores 60.7, higher than the 56.2 on the standard version.

The authors cite about 20% average gains over GLM-4.7 on eight headline benchmarks, and a score of 50 on the Artificial Analysis Intelligence Index v4.0, up from 42 for GLM-4.7, which they call the first time an open-weights model reached 50.

Terms in plain English

Where things stand

GLM-5's weights are on Hugging Face under the MIT licence; the model page was created on 11 February 2026, six days before the report went up. Since then, Z.ai's GitHub README lists GLM-5.1, GLM-5.2 and GLM-5.3, all with the same 744B total and 40B active parameters, and says GLM-5.3 uses the same base model as GLM-5.2 with gains from post-training. No independent reproduction of the February benchmarks was part of what we read.

Sources

We read the report, the GitHub README and the Hugging Face record on 22 November 2026. Cover image: Figure 5 of the paper, CC BY 4.0, GLM-5 Team.

Sources

Related stories

More from Teach the Bot

All stories from Teach the Bot