Z.ai’s GLM-5.4 loops 28 layers twice to deepen coding and reasoning
Z.ai has released GLM-5.4, a coding model that runs 28 shared layers from its GLM-5 base twice, adding computational depth without adding parameters. The company says the roughly 750-billion-parameter model approaches the capability of models with 2–3 trillion parameters, but has not published benchmark scores for GLM-5.4 itself.
Bottom line — Z.ai says GLM-5.4’s next test is whether looped reasoning can scale without marathon-length thinking.
Go deeper 8
-
Z.ai says it adapted a pre-trained model rather than training a looped model from scratch, because scratch-trained looped models lagged at the same pre-training compute budget.
-
In a 30-billion-parameter comparison, Z.ai reports the looped version used about 10% more training compute and made its largest gains in maths, scientific reasoning and long-context tasks.
-
Z.ai says average output length fell by 10–14% across most benchmarks in that 30-billion-parameter test; it has not published GLM-5.4 benchmark results.
-
The second pass reuses the first pass’s sparse attention selections and most of its KV cache; Z.ai says the extra loop requires only one local sliding window of cache.
-
Z.ai reports speeds of up to 200 tokens per second off-peak and 70–80 at peak load.
-
The company says the model can get caught in overly long “marathon thinking” loops, although it says the extra reflection improves accuracy.
-
GLM-5.4 adds vision and Z.ai demonstrations include video creation, game-building, 3D scenes and a robotic arm modelled in FreeCAD.
-
The model is available through Z.ai Chat, ZCode and the GLM Coding Plan. Z.ai says API access will follow a safety evaluation and that weights are planned after safety hardening.