Z. ai has introduced GLM-5.4, a 750-billion-parameter flagship built as a loop transformer that runs a block of 28 shared layers twice per pass. The company claims performance comparable to models with 2 to 3 trillion parameters, following a similar architectural shift OpenAI used since GPT-6 Astra. The release marks the start of what Z. ai calls Generalized Coding, where code generates videos, games and CAD models. That framing matters because it repositions coding models as production tools for media and engineering.

Z. ai launches 750B loop transformer GLM-5.4 for generalized coding

How GLM-5.4 loop architecture works

GLM-5.4 was converted by retraining the GLM-5 base model released in February into a loop design, rather than training from scratch. Z. ai notes that loop models trained from scratch have so far performed worse than dense models under the same compute budget. The loop version refines intermediate results from the first pass, making the network effectively deeper without adding parameters. Distribution runs through the GLM Coding Plan, the ZCode coding environment and Z. ai Chat, with an API to follow and token pricing not yet announced.

The conversion required controls for activation growth, since overwriting intermediate states would push values outside the trained range. GLM-5.4 uses dedicated gates for each token and pass to regulate how much new output returns to the data stream. According to Z. ai, the model builds context cautiously on the first pass and writes changes back in full on the second, with stronger first-pass intervention on difficult tokens. Both passes share the KV cache for previously processed tokens, while the second pass stores extra values only in a small local window.

Efficiency measures extend to attention and serving capacity at a 1-million-token context. The model uses sparse attention to select the most relevant earlier tokens upfront instead of scanning full context each time, and the second pass reuses the first-pass selection. Z. ai reports nearly the same quality as separate selection per pass, with manageable overhead versus GLM-5.3. Reported speed reaches up to 200 tokens per second off-peak and 70 to 80 tokens per second under load, which defines the operating envelope for long-context coding work.

What this means for business use of AI coding

For companies, the practical proposition is flagship-class capacity without the infrastructure of 2.4-trillion to 2.8-trillion-parameter systems such as Qwen3.8-Max and Kimi K3.1 Pro. Z. ai positions GLM-5.4 against that tier while keeping the parameter count at 750 billion, which still excludes laptop deployment but lowers the cluster requirement. Small teams gain access through hosted chat and ZCode rather than self-hosting, while larger firms can plan API integration once pricing appears. Demonstrated outputs include a scored music video, a FreeCAD six-axis robot arm, a complete game and an interactive 3D scene with custom shaders.

Evidence for quality currently rests on a 30B test model, not on published scores for the 750B flagship. That loop variant received about 10 percent more training compute at equal parameter count and improved AIME25 from 19.2 to 30.4, GPQA-Diamond from 47.6 to 56.3 and AA-LCR from 40.3 to 47.7 points. Gains on MMLU-Pro and IFBench were just over three points, and no independent evaluations from groups like Artificial Analysis exist. Buyers should ask for flagship benchmarks, load-tested throughput, safety test results before weight release, and the announced larger model timeline.

The marker to watch is publication of independent GLM-5.4 benchmarks alongside the promised weight release after further safety testing. Predecessor GLM-5.3 drew gains from post-training alone, faced delayed weights over vulnerability-finding ability, and was later found by Anthropic to build exploits almost on par with Claude Mythos Preview. If third-party scores confirm the 2-3 trillion-parameter claim and weights ship on schedule, loop architectures will become a procurement criterion for code-heavy automation.