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
- GLM-5 is a mixture-of-experts model with 256 experts and 80 layers: 744B parameters in total, 40B active per token, about twice the size of GLM-4.5 (355B total, 32B active).
- It swaps ordinary attention for DeepSeek Sparse Attention (DSA), which the report says cuts attention computation by roughly 1.5 to 2 times on long inputs, with long-context scores close to the dense model's in the authors' tests.
- Post-training uses an asynchronous reinforcement-learning set-up in which the GPUs that generate answers run separately from the GPUs that train.
- The authors pitch it as a step from "vibe coding" to "agentic engineering": on SWE-bench Verified it scored 77.8, against 80.9 for Claude Opus 4.5 in the same table.
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
- Mixture-of-experts: a model made of many specialist sub-networks, of which only a few run for each token, so it can be big without being slow (our wording).
- Sparse attention: looking back at a chosen subset of earlier tokens instead of all of them (our wording).
- Rollout: one attempt by the model at a task during reinforcement learning, which is then scored (our wording).
- Off-policy: learning from attempts made by an older version of the model (our wording).
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
- GLM-5: from Vibe Coding to Agentic Engineering, GLM-5 Team, Zhipu AI and Tsinghua University, arXiv, 17 February 2026 (v2 24 February 2026)
- zai-org/GLM-5, GitHub README
- zai-org/GLM-5 model weights, Hugging Face
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
- GLM-5: from Vibe Coding to Agentic Engineering
- zai-org/GLM-5 code repository
- zai-org/GLM-5 model weights
Related stories
- Alibaba's Qwen releases open Qwen4-35B-A3B with 3B active
- Ai2 releases Molmo 3, an open model that judges depth in photos
- Flexion's FUSE trains new robot skills in simulation in days
- MiniMax releases M4, a 2.74T-parameter model; weights to follow
- Recension releases Coatl-1, an open model for DNA, proteins and text
- Subquadratic says its SubQ Savant AI takes up to 4 million tokens
More from Teach the Bot
- Alibaba releases Qwen3.5, an open 397B model for text and images
- StepFun releases Step 3.5 Flash, a 196B-parameter open model
- Google DeepMind says its maths agent got 13 Erdős answers right
- Google finds twice the languages needs 1.18x the model size
- Arcee AI releases Trinity Large, an open 400B-parameter model