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

Z.ai released GLM-5.4 on November 23, its first flagship model built as a loop transformer. Instead of training a looped model from scratch, Z.ai took the pre-trained 750B GLM-5 base and continued training it so that 28 of its layers run twice per token. The company claims this reaches the intelligence of a 2T to 3T parameter model without adding parameters.
Z.ai describes three changes that made the loop affordable at that scale. Per-token gates control how much each pass writes back to the residual stream, so the first pass writes conservatively and the second refines. The second pass reuses the first pass's sparse KV cache and keeps only a sliding window of its own, so the extra loop does not double the cache at 1M context. It also reuses the first pass's sparse-attention indices. On a 30B model with the same architecture, Z.ai reports clear gains for about 10% more training compute, with chains of thought 10 to 14% shorter on most benchmarks.

The GLM-5.4 loop: 28 layers run twice, with damping gates on each pass and a per-layer cache the second pass reuses. Figure: Z.ai.

The 30B comparison: baseline against the looped model, with the change in chain-of-thought length. Table: Z.ai.
The company names one limitation: the model tends to fall into long "marathon thinking" loops. GLM-5.4 takes video, image, text and file input with a 1M context and 128K output tokens. It is available now to GLM Coding Plan subscribers; Z.ai says the API will open after a security assessment.

GLM-5.4 win, tie and lose rates against GLM-5.3, Kimi K3.1 Pro and DeepSeek-V4.1-Flash, as reported in the developer docs. Chart: Z.ai.
Sebastian Raschka noted that with this release his LLM Architecture Gallery now holds five looped transformers.


