Z.ai GLM-5.4: A 750B Loop Transformer Runs 28 Layers Twice
In this article
Z.ai has released GLM-5.4, its first flagship model built on a Loop Transformer architecture. The model runs a block of 28 weight-shared layers from the GLM-5 base twice per forward pass at 750B scale. Z.ai claims the design reaches intelligence comparable to models with 2T–3T parameters, though the company has not published a flagship benchmark table to support that figure. For engineers evaluating deployment choices, the release raises a specific architectural question: whether doubling compute on a shared layer block can substitute for the parameter count it does not add.
The loop architecture and its three optimizations
A standard Transformer executes each layer once per pass. GLM-5.4 executes the same 28-layer block twice, effectively doubling reasoning depth without adding parameters. Z.ai adapted the pre-trained GLM-5 base through continued training rather than pre-training a looped model from scratch; the company notes looped models trained from scratch still trail unshared models at equal compute.
Three changes keep the loop practical at 750B scale. First, gated progressive updates address activation norm blow-up when hidden states are overwritten across loops. Per-token gates keep first-pass writes small while building global context, then open on the second pass for full refinement; harder tokens trigger more aggressive first-pass writes. Second, a hybrid KV cache avoids doubling context memory: the second loop reuses the sparse KV selected in pass 1 and stores its own new KV only in a local sliding window. Z.ai says the extra loop costs one sliding window of cache rather than a full context cache, which keeps the cost increase over GLM-5.3 under control at 1M-context deployment. Third, sparse attention index reuse means pass 2 inherits pass 1's indexer output with zero additional indexing overhead; Z.ai reports near-identical results versus recomputing indices every pass.
Ablation evidence, not flagship scores
The only quantitative evidence Z.ai has published is an iso-parameter ablation on a 30B model sharing the 750B base's architecture, using roughly 10% more total training compute and measured after 200K long-context SFT with thinking mode on. In Z.ai's self-reported results, the looped variant gained 11.3 points on AIME25 (19.17 to 30.42), 8.7 on GPQA-Diamond (47.58 to 56.26), 7.3 on AA-LCR (40.33 to 47.67), 3.4 on MMLU-Pro (71.65 to 75.05), and 3.3 on IFBench (50.20 to 53.47). These figures describe a 30B model, not the shipping flagship.
Two patterns stand out. Gains concentrate in math, science reasoning, and long-context tasks. Output length also drops on most benchmarks: MMLU-Pro answers fell 14.9%, GPQA-Diamond 11.7%, and IFBench 13.0%. Z.ai attributes part of the reasoning to the loop's implicit depth. AIME25 is the outlier at only a 2% output reduction. The company also flags "marathon thinking" loops as a failure mode, where the model can iterate excessively on some prompts.
Cost, speed, and access
Z.ai reports throughput of up to 200 tokens/s off-peak and 70–80 tokens/s at peak load, achieved partly by fusing core kernels to cut intermediate memory traffic. GLM-5.4 is currently available only through Z.ai-hosted products: the GLM Coding Plan, the ZCode desktop agent harness (macOS, Windows, Linux Beta), and Z.ai Chat. Z.ai lists Coding Plan pricing at Lite $12.60/month, Pro $56, and Max $117.60, with prices subject to change. API access is pending safety evaluation; weights are planned after safety hardening. Active parameters, an official context window, and license terms are not disclosed. Self-hosting hardware specifications will not be clear until weights ship.
Z.ai frames the model's differentiator as "Generalized Coding": code as the tool for video, games, 3D shaders, and CAD. Demos include a self-narrated music video, a 6-axis robotic arm modeled in FreeCAD, a complete game with physics and combat, and an interactive bird-watching scene built with custom GLSL shaders. These are vendor demos, not benchmarks.
| Feature | GLM-5.4 (Z.ai) | GLM-5.3 (Z.ai docs) | Kimi K3.1 Pro (HF) | DeepSeek-V4.1-Flash (HF) |
|---|---|---|---|---|
| Architecture | Loop Transformer: 28 GLM-5 layers × 2 passes | Same base as GLM-5.2, new post-training | MoE | MoE |
| Total params | 750B scale | Not disclosed | 2.8T | 552B backbone + 196B Engram memory |
| Active params | Not disclosed | Not disclosed | 104B | 8B prefill / 16B decode |
| Context | Not officially listed (blog cites 1M deployment) | 1M (128K max output) | 1,048,576 | Up to 1M |
| License / weights | Weights planned after safety hardening | Not stated on docs page | Kimi K3.1 Pro License, weights on HF | MIT, weights on HF |
| Access | Coding Plan, ZCode, Z.ai Chat; API soon | API, Coding Plan | Kimi API and apps | HF weights, DeepSeek API |
| Published scores | 30B ablation only | Terminal-Bench 3.0: 28.3 | On model card | DeepSWE v1.1: 74.2 (NVIDIA card) |
AI Mastery analysis
The most consequential design decision in GLM-5.4 is the hybrid KV cache. If the second loop genuinely reuses pass 1's sparse KV selection and only maintains a local sliding window, then the memory overhead of a "double-depth" 750B model is capped at a constant additive term rather than a factor of two. That changes the inference economics: long-context deployments become viable at a cost profile closer to a single-pass model. But the claim rests on the quality of that sparse index reuse. If the second pass needs attention positions the first pass did not select, the model cannot recover them without recomputation — and Z.ai's own report that recomputing indices yields "near-identical" results suggests the first-pass indexer is doing most of the representational work. This echoes a broader pattern we have tracked: pipeline architecture, not better models, is driving 2026 AI gains.
The 30B ablation also has a ceiling worth naming. A +11.3-point AIME25 jump at 10% extra training compute is a strong iso-parameter result, but the gain is measured on a model one twenty-fifth the flagship's scale. Weight sharing behaves differently as capacity saturates, and the "marathon thinking" caveat indicates the loop can become pathological on open-ended prompts. For developers evaluating GLM-5.4 against open-weight alternatives like DeepSeek-V4.1-Flash, the decisive variable right now is not capability but deployment surface. Until weights or an API ship, the model is a managed service with undisclosed active parameters and no independent verification — the frontier gated-capability verification problem in miniature. For local inference teams, the longer-term question is whether looped architectures generalize into a path to deeper reasoning without the usual VRAM or parameter-count penalties; the local AI workload decision is a capability race for some, not most, and GLM-5.4 currently sits on the capability-race side.
Sources
- Reported by: MarkTechPost: Z AI Releases GLM-5.4: A 750B Loop Transformer That Runs 28 Layers Twice
- Linked in that report: https://z.ai/blog/glm-5.4
Frequently asked questions
What is the GLM-5.4 Loop Transformer architecture?
GLM-5.4 runs a block of 28 weight-shared layers from the GLM-5 base twice per forward pass at 750B scale. The second pass reuses the first pass's sparse KV cache and attention indices, adding only a local sliding window of new KV. Z.ai says this doubles reasoning depth without adding parameters.
How much does GLM-5.4 cost per month?
Z.ai lists GLM Coding Plan pricing at Lite $12.60/month, Pro $56, and Max $117.60, with prices subject to change. GLM-5.4 is currently available only through Z.ai-hosted products: the Coding Plan, ZCode, and Z.ai Chat. No self-hosting price or hardware specification has been published yet.
Does GLM-5.4 have published benchmarks for the 750B model?
No. Z.ai has not published a flagship benchmark table for the 750B GLM-5.4 model. The only quantitative evidence is a self-reported 30B iso-parameter ablation, where the looped variant gained 11.3 points on AIME25, from 19.17 to 30.42, for roughly 10% more training compute.
When will GLM-5.4 weights or API be available?
Z.ai says API access is pending safety evaluation and weights are planned after safety hardening; no dates have been given. Active parameters, the official context window, and license terms are also undisclosed until then.
Related Reading
Inkling 2 Mini: 26B Looped MoE Runs on a 32GB Mac, 79.2% SWE-bench
Thinking Machines Inkling 2 Mini is a 26.4B looped MoE that fits a 20GB checkpoint on a 32GB Mac and scores 79.2% on SWE-bench Verified.
OpenAI Cuts GPT-6.2 Astra API Price 20% to $8/$40
OpenAI's GPT-6.2 Astra drops to $8 input and $40 output per million tokens; Sol stays at $2/$10. Benchmark gains are real, coding and hallucination results are not.
Google Claims Gemini 4 Hydrogen Runs 2.5x Faster Than 3.8 Flash
Google DeepMind's Gemini 4 Hydrogen is a fast execution tier priced at $1.50/$7.50 per 1M tokens, with vendor-reported 2.5x speed gains over Gemini 3.8 Flash.