Z.ai launches GLM-5.4, a 750B loop transformer that runs 28 layers twice

Z.ai has introduced GLM-5.4, its first large model built on a loop transformer. A standard language model uses each layer once per pass. GLM-5.4 instead runs a block of shared layers several times, refining the intermediate results from the previous pass, which makes the network deeper without adding parameters. The team retrained the GLM-5 base model, released in February, into a loop model that runs 28 layers twice. The article notes that OpenAI has used a similar architecture since GPT-6 Astra. According to Z.ai, the 750-billion-parameter model reaches performance comparable to models with 2 to 3 trillion parameters. Z.ai also writes that loop models trained from scratch have so far performed worse than models without shared weights under the same compute budget.

Converting an existing model brings a problem, Z.ai says. If the model simply overwrites its intermediate states on each pass, activations grow sharply from round to round, and later layers receive values outside the range they were trained on. GLM-5.4 handles this with dedicated gates for each token and pass, which control how much of the new output flows back into the data stream. Per Z.ai, the model builds context cautiously on the first pass and writes its changes back in full on the second; on difficult tokens, the first pass steps in more strongly.

To keep memory and compute in check, both passes share the KV cache, the temporary memory for previously processed tokens. The second pass stores its own extra values only in a small local window. Z.ai says the overhead compared with GLM-5.3 stays manageable even at a 1-million-token context. The model also uses sparse attention to pick the most relevant earlier tokens upfront, and the second pass reuses the first pass's selection. Z.ai says this gives nearly the same results as selecting separately on each pass. The company states a speed of up to 200 tokens per second off-peak and 70 to 80 tokens per second under load.

The only benchmark figures come from a smaller test. Before the flagship, Z.ai tried the architecture on models of 1, 4, 30 and 750 billion parameters. For a direct comparison it used a 30B model built on the same architecture as the large base model. Both versions had the same parameter count, but the loop version got about 10 percent more training compute. On AIME25 math, scores rose from 19.2 to 30.4 points. On GPQA-Diamond they went from 47.6 to 56.3, and on the AA-LCR long-context test from 40.3 to 47.7. Gains on MMLU-Pro and on IFBench (instruction following) were smaller, just over three points each. Responses also got shorter: by 14.9 percent on MMLU-Pro, 11.7 percent on GPQA-Diamond and 2 percent on AIME25. Z.ai says part of the reasoning moves out of the output tokens and into the loop's extra computational depth.

The Decoder stresses that it is still impossible to judge how well GLM-5.4 performs. Z.ai has published no benchmark scores for the 750B model, and there are no independent evaluations from groups like Artificial Analysis. By Z.ai's own account, the model's biggest weakness is overly long reasoning phases in which it gets stuck, though the company says extended double-checking improves accuracy.

Z.ai frames GLM-5.4 as the start of "Generalized Coding", where code becomes the base for tasks beyond traditional software work, such as generating videos, games and CAD models. As illustrations it shows a music video scored by the model itself, a six-axis robot arm it says GLM-5.4 designed in FreeCAD, a complete game, and an interactive 3D scene built from mathematical geometry and custom shaders.

GLM-5.4 is available through the GLM Coding Plan, the ZCode coding environment and Z.ai Chat. An API is to follow, and token pricing is not yet announced. Z.ai plans to release the weights after further safety testing and has announced a much larger model expected soon.

The article adds context. Shared layers date back to the Universal Transformer in 2018. In March, researchers in Bonn showed that looped transformers benefit from greater compute depth on math, while everyday knowledge benefits more from greater memory, the same trade-off Z.ai cites for its design. Thinking Machines recently drew attention with Inkling 2 Mini, a loop model that runs locally on Macs with at least 32 GB of RAM. GLM-5.4 is far from laptop territory; Z.ai is targeting the tier of Kimi K3.1 Pro and Qwen3.8-Max, at 2.8 trillion and 2.4 trillion parameters, more than three times as large. For GLM-5.3, Z.ai kept the existing base model and drew all gains from post-training. It delayed that model's weights because of its strong vulnerability-finding abilities, and Anthropic later found GLM-5.3 could build exploits on its own, almost on par with Claude Mythos Preview.

Key facts

  • GLM-5.4 has 750 billion parameters and runs a block of 28 layers twice. It is Z.ai's first large loop-transformer model, retrained from the GLM-5 base released in February.
  • Z.ai says the model performs comparably to models with 2 to 3 trillion parameters. It has published no benchmark scores for the 750B model, and no independent evaluations exist.
  • In a 30B test, the loop version (about 10 percent more training compute) beat its baseline: AIME25 19.2 to 30.4, GPQA-Diamond 47.6 to 56.3, AA-LCR 40.3 to 47.7.
  • Gates per token and pass, a shared KV cache and reused sparse-attention selection keep the second pass's cost down; Z.ai states up to 200 tokens per second off-peak and 70 to 80 under load.
  • It is available in the GLM Coding Plan, ZCode and Z.ai Chat; the API and token pricing are to follow, and the weights are planned after further safety testing.

Why it matters

Z.ai is moving its flagship to a loop architecture, following OpenAI, which the article says has used a similar design since GPT-6 Astra. The pitch is more computational depth without more parameters: a 750B model aiming at the tier of Kimi K3.1 Pro (2.8 trillion parameters) and Qwen3.8-Max (2.4 trillion), models more than three times its size. Z.ai also notes that loop models trained from scratch have so far lagged models without shared weights at equal compute, so retraining an existing base model into a loop model is the route it took.

Who it affects

Developers using Z.ai's coding products are the first group: the model is in the GLM Coding Plan, the ZCode coding environment and Z.ai Chat. Teams that want open weights or API access must wait. Labs building large models will note another major lab adopting looped layers, and Z.ai says a much larger model is coming soon.

How to use it

For now, access is through the GLM Coding Plan, ZCode and Z.ai Chat. An API is to follow, with token pricing not yet announced. Z.ai plans to release the model weights after further safety testing. Z.ai's showcase examples for "Generalized Coding" include a music video, a six-axis robot arm designed in FreeCAD, a complete game and an interactive 3D scene.

How solid is it

Thin so far. The comparison to 2 to 3 trillion parameter models is Z.ai's own claim. Z.ai has published no benchmark scores for the 750B model, and the figures in its blog post come solely from a 30B test model, where the loop version also got about 10 percent more training compute than the baseline. There are no independent evaluations from groups like Artificial Analysis. Speed figures (up to 200 tokens per second off-peak, 70 to 80 under load) are also the company's.

Risks and caveats

By Z.ai's own account, the model's biggest weakness is overly long reasoning phases in which it gets stuck, though the company says extended double-checking improves accuracy. The 30B gains were uneven: large on AIME25 and GPQA-Diamond, just over three points on MMLU-Pro and IFBench. Response length fell only 2 percent on AIME25. Conversion also needed gating to stop activations from growing sharply across passes. The weights are not out yet, so outside checks are not possible. The predecessor GLM-5.3 had its weights delayed over strong vulnerability-finding abilities, and Anthropic later found it could build exploits on its own, almost on par with Claude Mythos Preview.

“It is still impossible to judge how well GLM-5.4 actually performs, as Z.ai has published no benchmark scores for the 750B model and the figures in its blog post come solely from the 30B test.”

— The Decoder