GLM-5.4 explained: Loop Transformer, specs and how to try it.
Z.ai’s GLM-5.4 runs 28 layers twice to think deeper without more parameters. What’s new, specs, availability and how to try it today.
By The Model Atlas · 3 sources
In this post6 sections
Z.ai has released GLM-5.4, its first flagship model built on a Loop Transformer, announced on 23 November 2026. Instead of stacking more layers, GLM-5.4 runs a shared block of layers twice, so it can reason more deeply without adding parameters. Z.ai says that puts it at intelligence levels comparable to 2T–3T parameter models, and it pitches the release as the start of what it calls Generalized Coding: using code to make videos, games, 3D scenes and mechanical designs, not only software. Here is what GLM-5.4 is, what is new, how to try it and what people are already building with it.
What is GLM-5.4?
GLM-5.4 is the successor to GLM-5.3 from Z.ai (Zhipu AI). According to Z.ai’s launch post, it is a 750B-scale model that loops 28 layers of the GLM-5 base model for two iterations. Rather than pre-training a looped model from scratch, Z.ai adapted an already pre-trained base model into a Loop Transformer through continued training, which it says raises the intelligence ceiling with a relatively small compute overhead.
Z.ai’s developer documentation lists GLM-5.4 with video, image, text and file inputs, text output, a 1M-token context window and up to 128K output tokens. The docs also list thinking modes, streaming output, function calling, context caching and structured (JSON) output. Vision understanding is new in this release.
What’s new in GLM-5.4: the Loop Transformer
In a standard Transformer, each layer runs once per forward pass. In a Loop Transformer, a group of weight-shared layers runs several times, each pass refining the hidden states from the one before. Z.ai notes the idea goes back to the 2018 Universal Transformer, and that looped models trained from scratch have tended to lag unshared models at the same pre-training budget, which is why it converted an existing base model instead. To make looping work at 750B scale, Z.ai describes three changes:
- Gated progressive updates. Per-token gates control how much each pass writes back into the residual stream. Z.ai says the first pass builds global context and writes conservatively, while the second pass refines the output and writes full updates, with harder tokens getting bigger first-pass writes.
- Hybrid KV cache. The second loop reuses the sparse KV cache selected in the first pass and keeps only its own sliding window of new KV, so an extra loop costs one sliding window rather than a full context cache. Z.ai says this keeps the deployment cost increase over GLM-5.3 under control at 1M context.
- Sparse attention index reuse. The second loop reuses the attention indices from the first loop’s indexer, adding no indexing overhead. Z.ai reports this performs nearly the same as recomputing indices each pass.
What the evidence shows
Z.ai says it validated the loop design on 1B, 4B, 30B and 750B base models. Its controlled comparison was run on a 30B model with the same architecture as the 750B base: with identical parameter counts and about 10% more total training compute, Z.ai reports the looped version showed clear gains, largest in math, scientific reasoning and long-context tasks. It also says average output length on benchmarks such as GPQA-Diamond and MMLU-Pro fell by 10–14%, mostly from shorter chains of thought. As VentureBeat points out, those numbers come from the 30B test model, not GLM-5.4 itself.
Z.ai is open about a limitation: GLM-5.4 tends to get caught in overly long “marathon thinking” loops, though the company says this extra self-correction consistently improves accuracy. On speed, Z.ai says GLM-5.4 reaches up to 200 tokens per second off-peak and holds 70–80 tokens per second at peak load.
Generalized Coding: what GLM-5.4 is built for
Z.ai frames software engineering, cybersecurity, 3D modeling and physical control as ultra-long-chain reasoning tasks, the kind it built the loop for. Its launch demos show GLM-5.4 writing code well beyond apps:
- Video: “Hello World”, a self-narrated music video. Z.ai’s docs say the visuals were drawn entirely in front-end code with no image assets, and the model planned and prompted a third-party music model for the soundtrack.
- Engineering: a 6-axis robotic arm modeled in FreeCAD, then animated in Blender.
- Games: a complete game covering character movement, physics, maps, combat systems and art assets.
- 3D: an interactive macro bird-watching scene built from pure mathematical geometry and custom GLSL shaders.
Z.ai’s docs add that in its internal evaluation of 200 real-world coding scenarios, GLM-5.4’s overall coding experience ranked near the top among Chinese models, standing out in visual coding, visual replication and long-horizon tasks.
How to try GLM-5.4
- Z.ai Chat: use it in the browser at chat.z.ai (opens in a new tab).
- ZCode: Z.ai’s coding environment at zcode.z.ai (opens in a new tab).
- GLM Coding Plan: Z.ai’s docs say GLM-5.4 is open to all Coding Plan subscribers, and users with weekly limits get 1.5 times the GLM-5.3 quota when using it. Plans are at z.ai/subscribe (opens in a new tab).
The API is listed as coming soon, after a safety evaluation, and Z.ai says it plans to release the open weights responsibly once safety hardening is done. Neither has a date yet.
What people are building with GLM-5.4
Early builds on The Model Atlas lean into exactly the 3D and visual coding Z.ai is promoting. Rez had GLM-5.4 build a 3D scene of Paris, kepochnik asked it for one continuous camera move from deep space down to Earth, and a side-by-side anime basketball court diorama compares it with Gemini 4 Neon on the same prompt, where GLM-5.4 took far longer to finish. Browse every new one on the GLM-5.4 model page.
GLM-5.4 is the second looped model in a week, after Thinking Machines Lab’s Inkling 2 Mini; read our Inkling 2 Mini explainer for the other approach.
GLM-5.4 FAQ
What is a Loop Transformer?
A Transformer in which a group of weight-shared layers runs more than once per forward pass, each pass refining the last. GLM-5.4 runs 28 layers of the GLM-5 base twice, which Z.ai says adds reasoning depth without adding parameters.
How big is GLM-5.4?
Z.ai describes it as a 750B-scale model and says its intelligence is comparable to 2T–3T parameter models.
What is GLM-5.4’s context window?
Z.ai’s docs list a 1M-token context window and up to 128K output tokens, with video, image, text and file inputs.
Is GLM-5.4 open source?
Not yet. Z.ai says it plans to open-source the weights after completing safety hardening, with no date announced.
Is there a GLM-5.4 API?
The API is marked coming soon. Z.ai’s docs say it will open after a safety evaluation. For now you can use GLM-5.4 in Z.ai Chat, ZCode and the GLM Coding Plan.
Is GLM-5.4 free?
You can try it in Z.ai Chat; coding use runs through the paid GLM Coding Plan, where Z.ai says weekly-limit users get 1.5 times the GLM-5.3 quota for GLM-5.4.
How fast is GLM-5.4?
Z.ai says up to 200 tokens per second off-peak and 70–80 tokens per second at peak, though it also warns the model can think for a long time on hard tasks.
Sources · 3
- GLM-5.4: Toward Generalized Coding with Our First Loop Transformer (Z.ai blog, 23 November 2026) (opens in a new tab)
- GLM-5.4 model guide (Zhipu BigModel docs) (opens in a new tab)
- Z.ai’s GLM-5.4 aims to match models up to four times its size by running 28 layers twice (VentureBeat, 23 November 2026) (opens in a new tab)