GLM-5.4
Intro
GLM-5.4 is the flagship model Z.ai (Zhipu) released on 23 November 2026. The company presents it as its first Loop Transformer flagship and the starting point of a “Generalized Coding” line.
There were two official statements the same day. At 04:18 UTC, Z.ai lead @ZixuanLi_ said GLM-5.4 was available to all GLM Coding Plan users, with new vision capabilities, stronger all-round coding, and a 50% higher weekly quota than GLM-5.3 for users who have weekly caps. At 10:27 UTC, the official account @Zai_org posted the technical introduction Introducing GLM-5.4: Generalized Coding with Our First Loop Transformer, alongside the research post: z.ai/blog/glm-5.4. That post highlights looping existing layers in the GLM-5 base for deeper reasoning, pushing past conventional coding into video, games, 3D shaders and CAD, and adding vision for stronger visual coding.
The blog’s core specs: at about 750B scale, it loops 28 layers of the GLM-5 base for two iterations; the company says the result reaches intelligence comparable to 2T–3T-parameter models; context is designed at million-token scale (the deployment discussion uses a 1M context as the example). At announcement, the API was listed as coming soon, and open weights were planned only after necessary safety hardening.
Advertisement
Explain
What problem it targets
The blog restates a point from the GLM-5.3 technical post: memory-heavy work benefits more from parameters, reasoning-heavy work from effective compute. Large-scale software engineering, cybersecurity, 3D modeling and physical control are ultra-long causal-chain tasks. They need multi-step inference and global consistency; stacking parameters and memorizing data is not enough. GLM-5.4 uses looped depth so the model can reason more deeply without a matching jump in parameter count.
How the Loop Transformer is built
In a standard Transformer each layer runs once per forward pass. A Loop Transformer runs a block of weight-shared layers for several iterations, refining the previous hidden state. The idea goes back to the 2018 Universal Transformer and later recurrent-depth / looped LM work. The blog argues that looped models trained from scratch still lag unshared models under the same pre-training compute. So GLM-5.4 is not trained as a looped model from scratch. It adapts an already pre-trained GLM-5 base into a Loop Transformer with continued training, raising the ceiling at relatively modest extra compute.
At roughly 750B scale the team made three engineering changes to balance quality and serving cost:
- Gated progressive updates. Turning middle layers of an existing model into multi-pass loops and overwriting hidden states can explode activation norms, so later layers see out-of-distribution representations. GLM-5.4 adds per-token, per-iteration gates that write candidate updates back into the residual stream proportionally. After training, the first pass is conservative and builds global context; the second opens the gates for full updates; on harder tokens the first pass writes more aggressively.
- Hybrid KV cache (global sharing plus an independent sliding window). Keeping a full KV cache per loop would multiply memory with the iteration count. The second loop reuses the sparse KV selected in the first pass and keeps its newly generated KV in a sliding window, so an extra loop costs about one window rather than a full context cache. The blog says this keeps the serving-cost increase over GLM-5.3 under control at 1M context.
- Sparse attention index reuse. The base model uses sparse attention. The second loop reuses the attention indices from the first loop’s indexer, with no extra indexing work. The company says this performs almost the same as recomputing indices every pass.
Vendor-reported capabilities and limits
The team says it validated the loop architecture on 1B, 4B, 30B and 750B bases. On a 30B model with the same architecture as the 750B base, an iso-parameter comparison with only about 10% more total training compute showed clearer gains on long-horizon reasoning, and average output length on benchmarks such as GPQA-Diamond and MMLU-Pro fell by about 10–14%—some of the reasoning moves from explicit chain-of-thought into the implicit depth of the loop. Exact scores are in the blog charts and are not restated here.
For inference, the company claims up to about 200 tokens/s off-peak and about 70–80 tokens/s at peak, with kernel fusion and other systems work to support the multi-pass design.
On the product side, GLM-5.4 treats coding as the substrate for broader capabilities. Official demos include generating and editing video (a self-narrated Hello World music video), engineering-grade six-axis arm modeling in FreeCAD, building a complete game with movement, physics, maps, combat and art, and an interactive 3D experience from mathematical geometry and custom GLSL shaders. These are vendor demos, not guaranteed performance in arbitrary settings.
The blog also states a limitation: the model can get stuck in overly long “marathon thinking” loops, though that extended reflection and self-correction is said to keep improving accuracy beyond what the parameter count would suggest.
Usage
Where it is available now
- GLM Coding Plan subscribers (including V2, V3 and Team): the company says the model is generally available, and users with weekly quotas get 1.5× the GLM-5.3 quota when they use GLM-5.4. Subscribe at z.ai/subscribe
- Claude Code: set the model to
glm-5.4[1m] - Other tools: set the model to
glm-5.4 - ZCode: zcode.z.ai/en
- Z.ai Chat: chat.z.ai
- API: listed as coming soon at z.ai/model-api; it was not available at announcement
- Open weights: planned after necessary safety hardening; not released at announcement
What to read
- Official technical blog (architecture, serving, and generalized-coding demos): https://z.ai/blog/glm-5.4
- Official introduction post: https://x.com/Zai_org/status/2124811995912286352
- The Coding Plan availability and quota note from the company lead: https://x.com/ZixuanLi_/status/2124719275864670681
Before you call the model, trust the official docs and the model list, quotas and regional limits shown in your account at the time. Throughput, parameter-scale comparisons and demo quality in the blog are vendor-reported and are not a production SLA. For engineering, security or control work, keep human review and permission isolation in place.