Timeline

Z.ai releases GLM-5.4, a looped-transformer coding model

Z.ai says running 28 layers of its GLM-5 base twice matches models of 2T-3T parameters; weights are promised only after safety hardening, and the API is not yet live.

  • Models & capabilities
  • Notable

Z.ai (Zhipu) released GLM-5.4, which its blog post calls its first flagship built on a “Loop Transformer”, a design in which a group of weight-shared layers runs for several iterations. The model is available through Z.ai’s GLM Coding Plan, its ZCode tool and Z.ai Chat; the API is listed as “coming soon”.

According to the post, GLM-5.4 loops 28 layers of the GLM-5 base model for two iterations at what it calls 750B scale. Z.ai says it did not pretrain a looped model from scratch, noting that looped models trained that way still lag unshared models at equal pretraining compute, but converted an already-trained base through continued training. It describes three changes: per-token gates that scale how much each pass writes back into the residual stream, a KV cache that shares the first pass’s sparse selections with the second, and reuse of the first pass’s attention indices. It says that at 1M-token context the added deployment cost over GLM-5.3 stays “well under control”, and cites up to 200 tokens a second off-peak and 70-80 at peak.

The headline claim is Z.ai’s own: that GLM-5.4 reaches “intelligence levels comparable to 2T-3T parameter models”. The text of the post carries no benchmark table, and no independent evaluation had been seen. The supporting evidence in the text is a controlled comparison on a 30B model with the same architecture as the 750B base: with about 10% more training compute, Z.ai reports clear gains, largest in mathematics, scientific reasoning and long-context tasks, and average output length down 10-14% on benchmarks such as GPQA-Diamond and MMLU-Pro. That is a result for a smaller model, not for GLM-5.4 itself.

Z.ai states one limitation: the model “tends to get caught in overly long ‘marathon thinking’ loops”, which it says nonetheless improves accuracy. It also describes the model as stronger in coding and vision, and shows it writing code for videos, games, 3D scenes and a CAD-modelled robot arm, under the label “Generalized Coding”.

On weights, the post says Z.ai plans “to open-source the model weights responsibly after completing necessary safety hardening”, with no date and no licence stated. GLM-5 was published as open weights under the MIT licence. Z.ai also said a “significantly larger” model “will be ready soon”.

Looping also appeared three days earlier in Thinking Machines’ Inkling 2 Mini, which runs its middle layers three times per token.