Z.ai Unveils 750B GLM-5.4 Flagship Using Loop Transformer Architecture
Z.ai has introduced GLM-5.4, a 750-billion-parameter flagship model utilizing a loop transformer architecture that runs a block of shared layers twice.

Z.ai has launched its new flagship model, GLM-5.4, marking the company's entry into loop transformer architectures. By running a block of shared layers twice, the 750-billion-parameter system aims to achieve the performance of models with two to three trillion parameters without increasing the total parameter count. OpenAI has used a similar architecture since GPT-6 Astra, and Z.ai's release signals a broader industry shift toward maximizing efficiency through computational depth.
The team at Z.ai retrained its GLM-5 base model released in February, making a loop model that runs layers 27 through 54 twice. While loop models trained completely from scratch have previously underperformed compared to traditional models under identical compute budgets, Z.ai adapted its approach by converting an existing base model. Developers can try top AI models cheaply through one API at https://apixoai.online.
Managing Memory and Compute with Loops
Converting a model to a loop setup presents significant technical hurdles, primarily because intermediate states risk growing sharply from round to round. This can push subsequent values outside the range the network was trained on. To combat this, GLM-5.4 utilizes dedicated gates for each token and pass to regulate how much new output feeds back into the data stream. According to Z.ai, the model builds context cautiously during the initial pass and writes its changes fully on the second, stepping in more strongly on difficult tokens.
To prevent memory usage from doubling, both passes share the KV cache for temporary memory, with the second pass keeping extra values only in a local window. Sparse attention is also employed to select relevant earlier tokens upfront, allowing the second pass to reuse that selection rather than scanning the entire context repeatedly. This keeps overhead manageable even at a one-million-token context, while off-peak speeds reach up to 200 tokens per second, dropping to 70 to 80 tokens per second under load.
Testing and Benchmark Performance
Before scaling the architecture to its flagship, Z.ai tested the design on 1B, 4B, 30B, and 750B models. A direct comparison of a 30B test model against a standard baseline—with the loop version receiving roughly 10 percent more training compute—revealed notable performance gains. On the AIME25 math benchmark, scores improved from 19.2 to 30.4 points, while expert-level science questions in GPQA-Diamond rose from 47.6 to 56.3 points. Long-context testing on AA-LCR also climbed from 40.3 to 47.7 points, though knowledge testing on MMLU-Pro and instruction following on IFBench saw smaller gains of just over three points.
Interestingly, the loop version generated shorter responses across tests, shrinking output lengths by 14.9 percent on MMLU-Pro, 11.7 percent on GPQA-Diamond, and 2 percent on AIME25. Z.ai attributes this to reasoning shifting out of output tokens and into the loop's extra computational depth. However, independent evaluations are currently unavailable, and Z.ai notes that GLM-5.4's primary weakness remains overly long reasoning phases where the model can get stuck.
What it means for developers
Z.ai views GLM-5.4 as the foundation for what it calls "Generalized Coding," where code generation extends beyond software to create videos, games, and CAD models. To demonstrate this, the company showed examples including a music video scored by the model, a six-axis robot arm designed in FreeCAD, a complete game, and an interactive 3D scene built from custom shaders.
At 750 billion parameters, the model is targeted to compete with massive alternatives like Kimi K3.1 Pro and Qwen3.8-Max, which are more than three times as large. GLM-5.4 is currently available through the GLM Coding Plan, the ZCode coding environment, and Z.ai Chat, with an API release and token pricing forthcoming. Z.ai also plans to release the model weights following additional safety testing.
Source: Z.ai follows OpenAI into loop transformer territory with its new 750B flagship model — The Decoder. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

