All posts

Blog

Z.ai releases GLM-5.4, its first flagship model built on a looped transformer

FindAmNow
Z.aiGLMAI ModelsChina AIAI Coding

GLM-5.4 runs 28 layers of its 750B base twice per token to reason more deeply without adding parameters. It is live in Z.ai's coding tools now, with API access and open weights still to come.

Chinese AI company Z.ai released GLM-5.4 on 23 November 2026. It is the company's first flagship model built on a Loop Transformer architecture, which reuses the same layers more than once instead of stacking new ones.

What a looped transformer does

In a standard transformer, each layer runs once per forward pass. In a looped transformer, a group of weight-shared layers runs for several iterations, refining the model's internal state each time. The result is more computational depth per token without more parameters.

The idea is not new. Z.ai points to the 2018 Universal Transformer and more recent research on recurrent depth. VentureBeat notes that Thinking Machines Lab also used a looped design in its Inkling 2 Mini model, released on 20 November.

According to Z.ai and VentureBeat, GLM-5.4 loops 28 layers of the GLM-5 base for two iterations at the 750B scale. It was adapted from an already pre-trained model through continued training rather than trained from scratch.

Z.ai says it made three changes to keep looping affordable:

  • Gated updates: per-token gates control how much each pass changes the model's internal state, to avoid instability.
  • Hybrid KV cache: the second pass reuses the first pass's cache and only adds a sliding window, instead of a full cache per pass.
  • Attention index reuse: the second loop reuses the attention indices from the first, avoiding a second indexing step.

Z.ai's performance claims

Z.ai says GLM-5.4 reaches "intelligence levels comparable to 2T-3T parameter models". VentureBeat points out that the company does not explain how it arrived at that comparison, and that its published win-rate chart against other models comes without a description of the evaluation method.

Z.ai's main controlled evidence comes from a separate 30B test model. With the same parameter count and about 10% more training compute, the looped version showed the biggest gains in maths, scientific reasoning and long-context tasks, and produced shorter average answers. Those results were measured on the small test model, not on GLM-5.4 itself.

Z.ai also reports speeds of up to 200 tokens per second off-peak and 70–80 tokens per second at peak load.

Known limits

Z.ai is open about one weakness: the model "tends to get caught in overly long 'marathon thinking' loops". The company says this extra reflection does improve accuracy, but early testers quoted by VentureBeat describe the model as slow, while finding it useful for hunting bugs and security flaws.

"Generalized Coding"

Z.ai positions GLM-5.4 as the start of what it calls Generalized Coding: using code as the foundation for tasks beyond software, such as generating and editing video, building complete games, 3D modelling and mechanical design. The model also adds vision.

Availability

GLM-5.4 is available now through Z.ai's GLM Coding Plan, ZCode and Z.ai Chat. Public API access is listed as coming soon. Z.ai says open weights will follow after safety hardening, with no date given.

Why it matters

Looped models are becoming a trend among labs looking to get more reasoning out of fewer parameters, which can lower serving costs. GLM-5.4 is the largest public example so far, but until independent benchmarks and the open weights arrive, its headline comparisons remain Z.ai's own claims.

Sources

Source