SIAgentNews.com
← All news
DevelopingPolicy

Z.ai launches GLM-5.4 model using looped layers to save memory

The new 750-billion-parameter model reuses layers to increase depth without adding new weights, though it remains hosted in a jurisdiction with strict data laws.

· First reported by Tech Times

106layer passes per token

The short version

  • GLM-5.4 is a 750-billion-parameter mixture-of-experts model that reuses 28 of its 78 stored layers twice.
  • The looping design allows the model to perform 106 layer passes per token without needing extra weight storage.
  • Z.ai reports a 30-billion-parameter test showed performance gains of up to 58% on specific benchmarks.
  • The model is currently only available via hosted services, meaning data is subject to China's National Intelligence Law.
  • No independent benchmarks or open weights have been released for the full 750-billion-parameter version yet.

Why it matters

This architecture breaks the traditional link between a model's parameter count and its actual compute cost. For users, it means that 'small' models can behave like 'large' ones in terms of reasoning depth while staying within memory limits.

The loop transformer design

Z.ai recently introduced GLM-5.4, a large language model with approximately 750 billion parameters. Unlike standard transformer models that pass a token through a unique stack of layers once, this model uses a 'loop transformer' or recurrent-depth architecture. This means it reuses a specific block of layers to process information multiple times.

Specifically, the model consists of a 26-layer prelude, a 24-layer coda, and a middle section of 28 layers that run twice. By looping these middle layers, the model performs 106 layer passes per token while only storing 78 unique layers of weights. This design allows the model to achieve more depth without the memory overhead of storing hundreds of unique layers.

The model is built on a mixture-of-experts base, which means it only activates a small subset of its total parameters for each individual token. In this setup, weight memory tracks the total parameters, while per-token compute tracks the active ones. By combining looping with mixture-of-experts, Z.ai aims to balance the model's size with its reasoning capabilities.

Memory savings vs. compute costs

The primary advantage of the looping architecture is that it saves on weight memory rather than reducing compute requirements. Because the model reuses the same weights for the second pass, it does not need to store additional data. However, every time a layer is looped, the hardware must still perform the full execution for that pass.

According to calculations from Tech Times, the model executes about 36% more layer passes per token than its 78 stored layers would suggest. While Z.ai reported that a smaller test model required about 10% more training compute, the inference cost is higher because of the repeated passes. This creates a new way for developers to evaluate models where the parameter count no longer serves as a direct guide to the cost of a single token.

To keep the second pass stable and efficient, Z.ai uses per-token gates to control how much information is written back during the loop. The model also reuses the KV cache from the first pass and adds only a small sliding window of new context. These optimizations help manage the stability of the hidden-state norms, which can otherwise drift or grow too large in looped designs.

Evidence and independent testing

Z.ai has provided evidence for the model's effectiveness through an ablation study on a 30-billion-parameter version. In these tests, the looped model showed significant improvements on benchmarks like AIME25 and GPQA-Diamond. These results showed relative gains of 58%, 18%, and 18% across different metrics, respectively.

However, there is a significant gap between these small-scale tests and the full 750-billion-parameter model. Z.ai has not yet published any benchmark scores for the full system, and no independent evaluations have been conducted. It remains unclear if the performance gains seen in the 30-billion-parameter test will scale linearly to the larger model.

Furthermore, independent assessments of previous models in the family have shown limitations. The US National Institute of Standards and Technology measured GLM-5.3 as being about four months behind the US frontier on cyber benchmarks. Because no such evaluation exists for GLM-5.4, the current performance of the new model relative to other frontier systems is unknown.

Hosting and legal considerations

Currently, GLM-5.4 is only available through Z.ai's hosted services, such as the ZCode tool and Z.ai Chat. The company has stated that open weights and API access will follow safety evaluations, but no specific dates have been provided. This means users cannot yet self-host the model to keep their data on private infrastructure.

Using the hosted service means that all prompts, uploaded files, and usage metadata are sent to a Beijing-based company. This puts the data under the jurisdiction of China's National Intelligence Law, specifically Article 7. This law requires organizations to support and cooperate with national intelligence efforts, which can include providing access to data upon request.

Other laws, such as the Cybersecurity Law and the Data Security Law, further require data localization and accessibility for intelligence services. Because these legal obligations are standing conditions, they apply regardless of the company's internal privacy policies. For users handling sensitive or proprietary information, these jurisdictional factors are a primary consideration for choosing a model provider.

What to watch

  • Whether the 750-billion-parameter model achieves the same relative gains as the 30-billion-parameter ablation.
  • The release date for open weights and API access.
  • Independent benchmarks from third-party labs to verify the model's reasoning capabilities.

Try it

Check the Z.ai repository to see if the GLM-5.4 weights have been released for local hosting, as this would allow you to use the model without sending data to a hosted endpoint.

Sources and links

Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

More AI news