AI NewsModels & agentsAnnouncement
Z.ai released GLM-5.4, a 750B coding model with a loop architecture
Z.ai released GLM-5.4, a coding model that reuses the same layers twice on every prediction. Z.ai says this reaches the quality of much larger models.

Image: Z.ai
Why it mattersA team paying for a coding subscription has a new model to test. The loop design costs more compute per request, in return for higher accuracy on long tasks.
Every extra parameter in a coding model costs money to serve. Bigger models are the usual way to fix hard reasoning tasks. Z.ai released GLM-5.4 on 23 November, and it takes the other option. The model runs the same group of layers twice on every token. The depth of the network goes up. The parameter count does not.
Z.ai calls this a Loop Transformer. The 750B base model has 28 of its layers looped for two iterations. Z.ai says GLM-5.4 reaches intelligence levels comparable to 2T to 3T parameter models. The company has sold GLM-5.3 since August through its own coding plan. GLM-5.4 is the next step on the same product line.
What the second pass changes
The naive version of this idea runs out of memory. A loop needs its own key-value cache each pass. Z.ai made three changes to fix that. The second pass reuses the sparse key-value cache the first pass built. It adds one sliding window of local keys. Z.ai says the extra loop then costs one sliding window rather than a full context cache. At 1M context lengths the deployment cost stays controlled.
Per-token gates control how much each pass writes back. Z.ai says the first pass learns to write small updates for stable context. The second pass opens the gates for the real refinement. On harder tokens the first pass writes more aggressively. The sparse attention indexer runs only in the first pass. The second pass reuses the indices with no extra work.
The scaling test, and one limit Z.ai names
Z.ai validated the architecture at 1B, 4B, 30B and 750B. At 30B the company ran a controlled test. Same parameter count as the base, about 10% more training compute. Z.ai says the looped version gained most on math, scientific reasoning and long-context tasks. Average output length fell 10% to 14% on benchmarks like GPQA-Diamond and MMLU-Pro. The company reads this as reasoning moving from spoken thought into the loop itself.
Z.ai lists one limitation. The model can get stuck in long "marathon thinking" loops. The company says this still improves accuracy but costs time. GLM-5.4 reaches up to 200 tokens per second off-peak. It holds 70 to 80 tokens per second at peak load. Those are Z.ai's own numbers.
Where you can use it today
Z.ai pitches GLM-5.4 as the first step in what it calls Generalized Coding. The announcement shows four code-generated demos. They are a music video, a FreeCAD robotic arm, a full game and an interactive 3D scene. The model is live in Z.ai's coding plan, in the ZCode agent and on chat.z.ai. The public API is marked coming soon. The company plans to release open weights after what it calls necessary safety hardening. It gives no date.
Source
- Z.ai: GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
- Hacker News discussion: GLM-5.4 (1,045 points)
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.

