
Z.ai Launches GLM-5.4 With Loop Transformer Architecture for Deep Reasoning and Coding
Z.ai has released GLM-5.4, a flagship AI model built on a Loop Transformer architecture designed to deepen reasoning by recycling existing neural network layers rather than adding new parameters. Built on the 750-billion-parameter GLM-5 foundation, the release introduces multimodal support for images, video, and files alongside expanded capabilities in software engineering, game creation, video production, and 3D design. GLM-5.4 is available immediately to GLM Coding Plan subscribers, while API access and open-weight releases remain pending final safety evaluations.
Introducing GLM-5.4: Generalized Coding with Our First Loop Transformer.
– Loops existing layers in the GLM-5 base model for deeper reasoning
– Pushes beyond traditional coding to video, games, 3D shaders, and CAD modeling
– Adds vision capabilities for stronger visual coding…– Z.ai (@Zai_org) November 23, 2026
What Is GLM-5.4?
GLM-5.4 joins the model lineup developed by Z.ai, formerly known as Zhipu AI, a Chinese artificial intelligence company building foundation language models and developer tools. The release marks Z.ai’s first flagship model powered by a Loop Transformer architecture, targeting complex software engineering and tasks requiring multi-step planning and verification.
The model builds directly on GLM-5, which contains roughly 750 billion parameters. Rather than expanding total parameter count, Z.ai altered how the network processes information-reusing a subset of internal layers across multiple passes during inference to increase computational depth. According to Z.ai, this recursive design gives GLM-5.4 reasoning capabilities comparable to conventional models ranging from 2 trillion to 3 trillion parameters.
Z.ai frames this release around a concept it calls Generalized Coding, shifting code generation from writing traditional software applications to producing video, interactive games, 3D environments, and CAD engineering models.
How the Loop Transformer Architecture Works
Standard Transformer models pass information through neural network layers in a single forward sequence. A Loop Transformer routes internal hidden states back through the same shared-weight layers, giving the network an additional round of computation without duplicating parameters.
In GLM-5.4, Z.ai loops 28 layers from the base GLM-5 model across two iterations. This setup increases effective computational depth while keeping the parameter footprint of those layers unchanged.
To prevent recursive passes from inflating memory overhead across long prompts, Z.ai introduced three architectural modifications:
- Gated Progressive Updates: Controls how much new information the model writes into its internal hidden state during each pass. On the first iteration, the model aggregates context and writes conservative updates; on the second iteration, it reviews and refines its earlier representations.
- Hybrid KV Cache: Allows the second pass to reuse portions of the attention cache generated during the first pass while maintaining a local window for incoming tokens, eliminating the need to rebuild full context memory from scratch.
- Sparse Attention Index Reuse: Reuses attention indices computed during the first pass rather than recalculating them across the entire sequence.
Together, these mechanisms contain memory costs when processing extended inputs, enabling GLM-5.4 to support a 1-million-token context window.
Generalized Coding Beyond Traditional Software
GLM-5.4 anchors Z.ai’s push into Generalized Coding, treating code as an execution layer for building complete digital products outside conventional software development.
In software engineering workflows, the model targets long-horizon tasks that require upfront planning, output verification, and iterative debugging rather than isolated code snippets.
Z.ai also added multimodal input support, allowing the model to process images, video clips, and files alongside text. These capabilities support workflows that require interpreting user interfaces, analyzing visual assets, and translating visual references into functional applications.
To demonstrate the release, Z.ai published several sample projects generated by the model. In one showcase, GLM-5.4 produced a music video titled Hello World, complete with an original voiceover script written by the model. In another, it built a playable video game incorporating character movement, physics, maps, combat mechanics, and visual elements.
The demonstrations also extended into 3D graphics and mechanical design. GLM-5.4 generated an interactive 3D birdwatching scene using mathematical geometry and GLSL shaders, and modeled a six-axis robotic arm inside FreeCAD, an open-source parametric engineering application. Across these examples, code serves as the underlying engine for 3D geometry and visual media rather than being confined to web apps or backend scripts.
Benchmark Results and Real-World Performance
Z.ai published internal ablation studies examining how Loop Transformer scaling affects reasoning quality across models sized at 1 billion, 4 billion, 30 billion, and 750 billion parameters.
The company’s detailed head-to-head comparison focused on a 30-billion-parameter model, holding total parameter count identical between standard and looped variants while allocating roughly 10% additional training compute to the looped version.
The largest gains appeared in mathematics, scientific reasoning, and long-context benchmarks. Average response length also dropped by 10% to 14% across most evaluated suites, including GPQA-Diamond and MMLU-Pro. While these figures show that layer looping shortened outputs and improved reasoning accuracy in controlled testing, the published ablation data applies strictly to the 30B experimental variant and does not represent a full benchmark table for the 750B GLM-5.4 release.
Because public API access remains withheld, GLM-5.4 has not yet received a verified listing on the Artificial Analysis Intelligence Index, leaving independent third-party evaluations as the primary external benchmark available. In an independent review published by DataCamp citing testing from AICodeKing on the KingBench 4 suite, GLM-5.4 scored 33.2 out of 60, ranking seventh overall and first among open models in the tested cohort. Completing the suite took 431 minutes and consumed roughly 1.04 million reasoning tokens-metrics that reflect the specific test harness and tooling used in DataCamp’s evaluation.
Inference Speed and Context Window
Z.ai reports that GLM-5.4 reaches generation speeds of 200 tokens per second during off-peak hours and maintains 70 to 80 tokens per second under peak server load.
The model supports a 1-million-token context window and up to 128,000 output tokens, accommodating multi-file repositories, technical specifications, and extended execution logs within a single session.
Despite those throughput figures, Z.ai acknowledged that the model occasionally enters prolonged reasoning loops that extend task completion times. The company refers to this behavior as Marathon Thinking, noting that extended self-verification can improve answer accuracy at the cost of higher latency.
How to Access GLM-5.4
GLM-5.4 is live across three Z.ai platforms and can be selected inside supported developer tools using the standard glm-5.4 identifier or the extended-context glm-5.4[1m] identifier:
- GLM Coding Plan: Z.ai’s developer subscription tier for integrating models into coding workflows and IDE environments.
- ZCode: Z.ai’s native coding environment.
- Z.ai Chat: The company’s official conversational web interface.
Z.ai also announced a 50% larger weekly usage allowance compared to GLM-5.3 for subscribers on weekly quota plans. That increase stems from lower token-consumption multipliers-set at 0.67× during off-peak hours and 2× during peak hours, down from 1× and 3× on GLM-5.3-rather than a proportional jump in model performance.
The public API remains in preparation and will launch after safety evaluations conclude. Z.ai also plans to publish the model weights openly once safety safeguards are finalized, though it has not announced a target release date.
What Comes Next on Z.ai’s Roadmap
GLM-5.4 underscores Z.ai’s bet on scaling computational depth rather than raw parameter counts, while broadening code generation into media production and CAD engineering.
Alongside the announcement, Z.ai confirmed it is simultaneously increasing loop depth and scaling up model size, stating that a substantially larger model built on GLM-5.4’s architectural experiments will arrive soon.




