GLM-5.4 bets on the loop transformer for deeper coding
Z.ai launches GLM-5.4, its first flagship model built on a Loop Transformer architecture. Initially reserved for subscribers of its coding plan, it promises deeper reasoning without increasing the number of parameters.
Z.ai has unveiled GLM-5.4, a 750-billion-parameter model that introduces a Loop Transformer architecture at the Chinese publisher, making it first accessible to users of its coding plan, as well as in ZCode and Z.ai Chat. The API is expected to follow after security evaluation, while the open weights are announced for later, once security hardening is complete. The goal is clear: to push reasoning and coding towards broader uses without exploding computational costs.
An architecture that replays its own layers
In a classic Transformer, each layer is processed only once per execution. GLM-5.4, however, replays 28 layers of the GLM-5 model twice, increasing computational depth without adding parameters. Z.ai aims for intelligence comparable to models with 2,000 to 3,000 billion parameters, a scale that places it in the same conversation as the largest closed models currently available.
The principle is not black magic, even if AI marketing likes to dress it up as such: the model starts from GLM-5, already pretrained, then continues training with this looped structure. The company explains that "from scratch" training with shared weights remains less effective, at equal computational budget, than non-shared models. As a result, the final version gains in reasoning depth while remaining deployable at a contained cost.
Why Z.ai talks about “Generalized Coding”
Z.ai presents GLM-5.4 as the starting point of “Generalized Coding,” an idea where code no longer serves only to produce applications but also videos, games, 3D shaders, or CAD models. In its demonstrations, the company notably shows a narrated music video, a six-axis robotic arm designed in FreeCAD, a complete game with physics and combat, as well as an interactive 3D birdwatching scene. The publisher thus wants to extend code to broader creative tasks, not just development assistance.
However, the promise has a limit already acknowledged by Z.ai: the model can get stuck in "marathon thinking" loops, with reasoning phases that are too long. The company nevertheless defends this extra self-correction, linking it to better accuracy. In other words, the model sometimes takes its time. A lot of time.
Measured gains on a test model, not yet on GLM-5.4 itself
The figures published by Z.ai mainly concern a 30-billion-parameter test model, not GLM-5.4 itself. On this basis, the looped version improves on several benchmarks: AIME25 rises from 19.2 to 30.4 points, GPQA-Diamond from 47.6 to 56.3, and AA-LCR from 40.3 to 47.7. On MMLU-Pro, the gain is more modest, just over three points, as on IFBench. Answers also become shorter, with a reduction of 14.9% on MMLU-Pro and 11.7% on GPQA-Diamond.
To contain memory footprint, Z.ai says it added several mechanisms: token-level gates to regulate what goes back into the residual stream, a hybrid KV cache to avoid doubling the cost of the second pass, and reuse of sparse attention indices from the first pass. On its 750-billion-parameter model, the company claims these choices keep deployment costs manageable, including with a context of one million tokens.
Availability, quotas, and next steps
GLM-5.4 is already available to all users of the GLM Coding Plan, with ZCode and Z.ai Chat. Zixuan Li, at Z.ai, indicates that users subject to weekly quotas receive 50% more quota compared to GLM-5.3. In Claude Code, the model is referenced as glm-5.4[1m], and as glm-5.4 in other tools. API access is expected to open after security evaluation, followed by open weights once security is reinforced.
One point of caution remains: Z.ai has not yet published benchmark scores specific to GLM-5.4, only those of the test model, and independent evaluations are still missing. The company says it aims for larger and deeper models in the future, while continuing to extend loop length. For developers, the signal is clear: Z.ai no longer wants to compete only on code, but on what code can produce.
Key points
- GLM-5.4 is Z.ai’s first flagship Loop Transformer model.
- 28 layers of GLM-5 are replayed twice.
- Z.ai announces access via GLM Coding Plan, ZCode, and Z.ai Chat.
- API arrives after security evaluation, according to Z.ai.
- The 30B test model improves on AIME25, GPQA-Diamond, and AA-LCR.
- Zixuan Li promises 50% more weekly quota for some users.
By the numbers
- 750 billion parameters — announced size of GLM-5.4 by Z.ai.
- 28 layers — GLM-5 layers replayed in the loop.
- 200 tokens per second — throughput announced off-peak by Z.ai.
- 70 to 80 tokens per second — throughput announced under load.
- 50% — additional weekly quota for some subscribers.