A brand‑new model with a brand‑new architecture.
Zhipu has just unveiled GLM‑5.4, its first model powered by the Loop Transformer architecture.

Let’s start with the viral hand‑coded demo video created using GLM‑5.4: Video link: https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA
This music video titled Hello World was fully produced by creator Mike Luan with GLM‑5.4. The model handled the whole workflow: concept design, music arrangement, dynamic storyboarding and visual rendering.
More specifically, every frame is rendered in real time using front‑end code, with zero external image assets. GLM‑5.4 planned the score according to the narrative and shot sequence, called third‑party music generation models, and iteratively refined the music prompts over multiple rounds.
The MV has gone viral overseas, with viewers commenting:
It really exceeded expectations.
Next up is the classic 3D benchmark of a pelican riding a bicycle, generated by GLM‑5.4: Video link: https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA
Clear improvements, really clear improvements.
Speaking of upgrades, many users have shared side‑by‑side comparisons between GLM‑5.3 and GLM‑5.4: Video link: https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA
Visual quality has improved dramatically. What about benchmark scores? Yes, there are benchmark results.
One overseas user who has tested GLM‑5.4 for some time put it bluntly:
This is the best open‑source model you can get your hands on right now!
Recall the newly introduced Loop Transformer mentioned above. This explains the leap in visual capability.
Zhipu frames this update around the concept of Generalized Coding. The singing alphabet characters and the cycling pelican are perfect examples of this vision.
Inference speed is also noteworthy. Official Zhipu data lists a peak throughput of up to 200 tokens per second during off‑peak hours, and 70–80 tokens per second at peak load.
Now let’s look at more GLM‑5.4 demos. As usual, results first.
First, interactive HTML generation. The demo is called Convenience Store on a Rainy Night. The whole street looks like a miniature tabletop diorama. Video link: https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA
The zooming and perspective details are far more refined than AI outputs from just a few months ago. Small touches such as the automatic opening storefront and neatly arranged goods inside are all rendered clearly. GLM‑5.4 handles this kind of task with remarkable ease.
Raising the bar further: 3D workflows inside professional software. This demo is a Blender scene with modeling and lighting controls: a Lego‑style Gringotts Bank. Video link: https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA
Notice the fire dragon perched on the roof in the clip. Click “Dome Dragon” on the left panel and the camera pans to the rooftop. Drag the “Flame Intensity” slider and the fire from the dragon’s mouth brightens or dims accordingly.
Three preset lighting modes — Bright, Night, Golden Hall — are built in, and individual lighting zones can be adjusted. The whole interaction runs smoothly.
After scene generation, let’s look at coding‑to‑game output. GLM‑5.4 builds a 3D burger shop. Video link: https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA
The resulting game matches the quality of regular browser mini‑games. The full cycle of greeting customers, taking orders, preparing ingredients and serving food works just like commercial casual games.
Lastly, a practical software engineering task tested inside ZCode: adding version history to an existing document dashboard. The original project supports editing and saving documents, with four historical drafts stored in its database. The requirement was to preserve those four existing files after the upgrade; every save should log a new version, with rollback support. Original author and read‑only permission rules also had to stay intact.
After running the task, all four old documents remained accessible. A “Version History” tab appeared below the editor. Even unmodified files show an “Initial Version” entry.
These demos show GLM‑5.4 performs reliably across a wide range of tasks.
The Debut of Loop Transformer Architecture
Now let’s break down the newly introduced Loop Transformer.
In a standard Transformer, when generating one token, information flows sequentially through stacked layers, with each layer computing once. Zhipu modified 28 intermediate layers in GLM‑5.4. After these layers complete their first pass, the output feeds back to the start, runs a second pass using the same weight set, and only then passes onward to subsequent layers.
That is the Loop in GLM‑5.4. The same block of layers runs an extra iteration. Before the model emits the next token, it reprocesses its intermediate results. Since both passes reuse identical weights, the overall parameter count stays roughly unchanged.
How much performance gain comes from this extra loop? Zhipu ran controlled tests on a 30B model with fixed parameter size. Adding the Loop increased total training compute by roughly 10%:
- AIME25 score rose from 19.17 to 30.42
- GPQA Diamond improved from 47.58 to 56.26, while average output token usage fell by 11.7%
- MMLU‑Pro went from 71.65 to 75.05, with average output tokens down 14.9%
In short, with this internal second pass, the model answered some questions more accurately while producing shorter outputs.
Adapting the Loop to the 750B‑scale GLM‑5.4 brought new challenges. The base model was already pre‑trained. With this extra forward pass, the team needed to control how much of the first iteration’s output is retained and how much the second iteration modifies it.
Zhipu added gating mechanisms for both passes to regulate how much of each computation is written back into the state. After training, the first pass tends to establish a broad understanding of the global context with modest writeback. The second pass builds on that foundation for finer‑grained reasoning, with larger writeback weights.
Deployment also introduced memory overhead from the KV Cache, which stores context states for reuse. Storing separate caches for both passes would exhaust VRAM for long contexts.
Zhipu split the cache by recency. Distant context is shared between the two passes. Only a short recent sliding window maintains separate caches. Moreover, the sparse attention indices identified in the first pass can be reused by the second pass.
Thanks to this design, even at a 1M‑token context window, the second pass only requires extra cache for that narrow sliding segment.
Scaling the Loop to 750B
Recurrent layer loops were first explored in the Universal Transformer back in 2018. Zhipu’s approach retrofits the Loop onto an already pre‑trained base model via post‑training. Validations ran step by step on 1B, 4B and 30B variants before the architecture was deployed on the flagship 750B GLM‑5.4.
Scaling from 30B to 750B was non‑trivial. Positive benchmark results on the 30B model proved the looped layers could work, but integrating this mechanism into a fully trained 750B foundation model and making it stable for online serving required careful engineering. The gating, cache sharing and index reuse schemes described above were built for this scaling hurdle.
This is one of the most compelling aspects of GLM‑5.4: a Chinese AI team took a custom architectural modification, validated it on small models, and shipped it in its flagship model. Zhipu plans to build even larger base models, opening the door to test this Loop method further.
Returning to Zhipu’s “Generalized Coding” concept: the Gringotts demo highlights why this direction matters. The sliders on the left panel are the key feature. The fire dragon is rendered, and users can switch camera angles, adjust lighting and preview renders within the same webpage. Want to darken the underground vault? Tweak the controls instantly. At this level, code generation can connect discrete operations from professional tools into reusable interactive applications.
Zhipu states that the GLM‑5.5 base model will be even larger. That release will show how much further the Loop architecture can boost performance, and whether the model can reliably handle complex end‑to‑end workflows like the Gringotts demo — bridging user requirements all the way to chained software controls.
On the widely discussed open‑source plan: Zhipu says GLM‑5.4 will release its model weights after completing necessary safety hardening.

















No comments yet