Back to Articles

GLM-5.4: The Revolution of Loop Transformer and Generalized Coding

November 25, 2026774

GLM-5.4: The Loop Transformer Revolution and the Shift to Generalized Coding

Z.ai recently introduced GLM-5.4, its new flagship model, which brings a significant technological breakthrough: the Loop Transformer architecture. Instead of continuing to increase the number of parameters linearly, the new model uses a technique of looping existing layers, allowing it to reach the intelligence level of models with 2-3 trillion parameters while based on an infrastructure of only 750 billion parameters [1, 2, 10].

Why is this important?

Until now, the common way to increase the reasoning capabilities of language models was to add more and more parameters, which led to heavy, expensive, and slower models. Z.ai is changing the equation: by reusing 28 layers from the base model (GLM-5) in two iterations, the model performs "deeper thinking" without placing an extreme burden on memory [1, 3]. This is a critical step for tasks requiring long and complex chains of inference, such as advanced software engineering, 3D modeling, and cybersecurity [1, 6].

Generalized Coding: Beyond Software Code

The company calls its new direction Generalized Coding. The idea is to use code not only to write applications, but as a basis for creating complex physical and digital worlds [3, 8]. The new capabilities of GLM-5.4 include:

  • •Full Game Development: Creating games that include physics, character movement, maps, and combat systems [3, 7].
  • •Engineering Modeling (CAD): Building complex engineering models, such as a 6-axis robotic arm, with high precision [3, 7].
  • •Visual Content Creation: Writing 3D shaders and creating code-based videos [1, 3].
  • •Multimodal Support: The model accepts input of text, images, video, and files, allowing it to "see" and understand the environment it is asked to program [2, 7].

Efficiency and Performance

One of the biggest challenges in loop-based models is memory consumption (KV Cache). Z.ai solved this through KV Cache optimization and Sparse Attention index sharing, which allows the model to maintain an impressive operating speed of 70-80 tokens per second at peak load, and up to 200 tokens per second during off-peak hours [1, 3].

Availability and Summary

Currently, GLM-5.4 is available to users of Z.ai's GLM Coding Plan, including within the ZCode development environment and the company's chat [4, 9]. The company stated that API access will open after the completion of rigorous safety assessments, and that there is an intention to release the model weights (Open Weights) in the future, following a "Safety Hardening" process [1, 6, 8].

In summary, GLM-5.4 is not just another language model upgrade. It is proof that smarter architectures—those that know how to "think" about information over and over again—can outperform larger, more cumbersome models. For developers and engineers, this is a powerful tool that expands the boundaries of automation far beyond the computer screen.

For more information:

Thanks to Spotlight by Daniel Trabelsi by Daniel Trabelsi for sharing and inspiring this article.

Join the channel
#GLM-5.4#Artificial Intelligence#Machine Learning#Loop Transformer#Z.ai#Generalized Coding#Large Language Models#Software Development