Z.ai has released GLM-5.4, its first flagship model built on a Loop Transformer architecture, and claims it reaches the intelligence of models with two to three trillion parameters.
Rather than pre-training a looped model from scratch, Z.ai adapted an already pre-trained GLM-5 base: a shared block of 28 layers runs twice per token, refining the hidden states from the first pass. The team reports that converting an existing model into a loop caused activation norms to blow up across iterations, so it added per-token gates that write updates back into the residual stream proportionally. A hybrid KV cache reuses the first pass's sparse selection while keeping a local sliding window for the second, so an extra loop costs one window of KV cache rather than a full context cache. The second pass also reuses the first pass's sparse attention indices, adding no indexing overhead.
At 30B scale, with identical parameter counts and about 10 percent more training compute, the looped version showed its largest gains in math, scientific reasoning and long-context tasks, while average output length on benchmarks like GPQA-Diamond and MMLU-Pro fell 10 to 14 percent. GLM-5.4 runs at up to 200 tokens per second off-peak and 70 to 80 at peak.
Z.ai acknowledges one notable flaw: the model gets caught in overly long "marathon thinking" loops, though it says the extended self-correction still improves accuracy. GLM-5.4 is available through Z.ai's coding plan, ZCode and chat; the API is listed as coming soon, and the company plans to release open weights after safety hardening.


