Zhipu GLM-5.4 reuses its old foundation, running 28 layers twice; the company says it achieves intelligence on par with models in the 2–3 trillion parameter range

Zhipu has disclosed architectural details of GLM-5.4. Rather than pretraining the model from scratch, the company continued training it on the existing GLM-5 pretrained foundation, modifying 28 of its layers to run twice as a Loop Transformer. Zhipu says this approach gives a model with around 750 billion parameters the intelligence of one in the 2–3 trillion parameter range.

In a standard Transformer, each layer runs just once during a forward pass. A Loop Transformer, by contrast, runs the same set of network layers repeatedly. GLM-5.4 runs 28 of the original model’s layers twice, with the second pass continuing from the internal state produced by the first. This deepens the model’s computation without requiring a proportionate increase in the number of parameters.

However, directly repeating the old model’s network layers can cause internal values to grow continuously, which can hurt performance. Zhipu added a gating mechanism to each of the two passes and continued training the model so that the first pass primarily establishes a global state, while the second refines the result.

Running an additional pass also means dealing with increased memory usage. The most straightforward approach would be to store a separate KV Cache for each pass, but running two loops could nearly double the cache footprint. Instead, Zhipu has the second pass reuse the sparse KV Cache stored during the first pass, retaining only the cache for the most recent segment of the second pass. The second pass also directly reuses the sparse attention indices selected during the first pass, avoiding the cost of repeating the search. As a result, the additional pass requires only the cache for a sliding window, rather than another complete copy of the historical context.

Zhipu describes GLM-5.4’s focus as “general-purpose coding,” aiming for the model to do more than write software: it can also use code to create videos, build 3D models, and design machinery. The company’s demos include a music video whose visuals are drawn entirely with front-end code, as well as robotic-arm motion simulations created using FreeCAD and Blender.

GLM-5.4 is now available to Coding Plan subscribers. The pay-as-you-go API will launch after the safety evaluation is complete, and the model weights are also planned for open release.

Zhipu also previewed that its next model will have a significantly larger parameter count, and that future models will grow in both size and recurrent computation depth.

What do you think? 👇