GLM-5.4 Debuts with Loop Transformer: 750B Model Matches 2-3T Performance
Zhipu AI releases GLM-5.4, its first flagship model using the Loop Transformer architecture, achieving 2-3T parameter performance with 750B parameters through iterative layer looping, ranking highest among open-source models on KingBench 4 while introducing native vision, 1M context, and pan-coding capabilities for controlling professional tools via code.
Reading font

Zhipu AI has quietly released GLM-5.4, now available to all GLM Coding Plan users. According to overseas evaluations on KingBench 4, GLM-5.4 ranks 7th overall and is the highest-ranked open-source model. One tester noted it is "possibly the most meticulous model I've used," discovering bugs and security vulnerabilities in their application that even Claude's flagship model Fable missed.
A New Architecture: Loop Transformer
The article explains a well-verified scaling law: memory-intensive tasks benefit from more parameters, while reasoning-intensive tasks (coding, math, 3D modeling) benefit from more effective compute. These tasks require multi-step causal reasoning with global logical consistency, which is hard to gain by simply stacking parameters.
Loop Transformer is designed for such tasks. Unlike a standard Transformer where each layer is executed once per forward pass, Loop Transformer lets a group of weight-sharing layers loop multiple rounds, each round refining the hidden state from the previous round. This effectively deepens the network without increasing parameter count. Google's Universal Transformer (2018) proposed a similar weight-sharing loop, but such models never left the lab — shared-weight models underperformed standard models with per-layer parameters despite theoretical parameter savings.
Zhipu circumvented this by not training a Loop model from scratch. They took an already-trained 750B standard base model and adapted it. This preserves the massive knowledge accumulated during pre-training, and the loop is introduced only in post-training, drastically reducing compute overhead.
Three Key Engineering Innovations for GLM-5.4
GLM-5.4 applies two-loop iterations to 28 layers of the 750B base. To make looping work at this scale, the team implemented three critical modifications:
Gated Progressive Updates. Directly overwriting the hidden state each round causes activation norms to explode with loop count. GLM-5.4 adds per-token, per-round gates that proportionally write candidate changes back to the residual stream. Trained gates show clear division of labor: round one establishes global context with small gate values (gentle write-back); round two refines using that state with open gates (full write-back). Gates also dynamically adjust step size based on token prediction difficulty — harder positions get larger write magnitude in the first round.
KV Cache Global Sharing with Sliding-Window Independence. Naively keeping a full KV cache per round would multiply memory by loop count. GLM-5.4 splits attention by distance: inside the sliding window, each round keeps its own KV (near context differs most between rounds); outside the window, all rounds share a single KV. The extra cost of one more loop is just one window's worth of KV, keeping deployment cost controllable even at 1M context length.
Reuse of Sparse Attention Indices. The base uses sparse attention. Round two directly reuses the indexer-generated indices from round one, adding zero overhead. Experiments show this matches per-round recomputation almost exactly.
All three designs target the same goal: make "thinking one more round" as cheap as possible — nearly no extra memory, no extra retrieval cost.
Pan-Coding: Code as the Universal Protocol
GLM-5.4 introduces "Pan-Coding." The core logic: modern creative tools (video engines, 3D software, game engines, engineering CAD) all expose code APIs (Python bindings, scripting APIs, parameterized modeling languages). Historically these were for expert developers with high barriers. If a model's coding ability is strong enough, it can directly drive these tools via their APIs, extending "writing code" from software development into video production, game development, engineering design, 3D modeling, and more.
This explains why GLM-5.4 simultaneously upgrades vision and code. Vision lets the model "understand" design intent and rendered output; code lets it "execute" by calling tools to implement. Together they form an end-to-end chain from requirement understanding to artifact delivery, without humans shuttling between tools.
Pan-Coding redefines what "knowing code" means. Code is no longer just for building software — it becomes the hands with which AI manipulates the digital world. A model good at coding becomes a model good at video, games, and engineering prototypes.
Availability and Next Steps
GLM-5.4 is live for all GLM Coding Plan users and integrated into ZCode, Trae, WorkBuddy, Qoder, CatPaw, OpenCode, and other coding platforms. Coding Plan V2, V3, and team users get 1.5x quota. API access will open after safety assessment; model weights are planned for responsible open-source release. Non-peak throughput reaches 200 tokens/s; peak sustains 70-80 tokens/s.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.