Independent · Updated November 25, 2026 · Every claim traceable
Home › AI Models › GLM-5.4: Z.ai's first Loop Transformer, explained…
AI Models

GLM-5.4: Z.ai's first Loop Transformer, explained

By Yogesh · · 7 min read

Sources checked and dated on publication. See our editorial policy.

Z.ai published GLM-5.4 on November 23, 2026, calling it the first flagship built on a Loop Transformer: instead of…

Z.ai published GLM-5.4 on November 23, 2026, calling it the first flagship built on a Loop Transformer: instead of adding parameters, the model runs 28 layers of the GLM-5 base model through two iterations, so the network gets deeper without growing. Z.ai says that puts GLM-5.4 at intelligence levels comparable to 2T-3T parameter models — a vendor claim with no public benchmark table behind it yet. What is concrete is smaller and more useful: the model is live on the GLM Coding Plan, in ZCode and in Z.ai Chat, it adds image input, which its text-only predecessor GLM-5.3 never had, and on the plan it costs fewer credits per token than GLM-5.3.

The short answer

What GLM-5.4 actually changes

A standard Transformer runs each layer once per forward pass. GLM-5.4 takes 28 layers of the GLM-5 base model and runs them for two iterations, refining the hidden states from the first pass in the second. Because the layers are weight-shared, the model gets more depth without a single new parameter — Z.ai describes the result as a 750B-scale model that it says reaches intelligence levels comparable to 2T-3T parameter models.

The second change is modality. GLM-5.3 was text-only; GLM-5.4 accepts video, image, text and file inputs, with text as the only output. Z.ai frames the combination as "Generalized Coding": using code to produce things that are not software. Its launch demos include a self-narrated music video, a six-axis robotic arm modelled in FreeCAD, a complete game, and an interactive 3D scene built from geometry and custom GLSL shaders.

How a Loop Transformer works — and what it costs to serve

The obvious objection to looping is memory. A naive implementation keeps a full key-value cache for every pass, so two passes means roughly double the cache. Z.ai's technical blog addresses that directly with three changes.

First, gated progressive updates: independent per-token gates decide how much of each iteration is written back into the residual stream. Z.ai says the gates learn a division of labour, with the first pass writing conservatively to keep activation scales stable and the second pass opening the gates to write full updates, and larger first-pass updates on harder tokens.

Second, a hybrid KV cache: the second loop reuses the sparse key-value selection from the first pass and keeps only a small sliding window of its own, so Z.ai's claim is that an extra loop costs one sliding window of cache rather than a full context cache. Third, sparse attention index reuse — the second pass reuses the attention indices the first pass already produced, which Z.ai says adds "zero indexing overhead" and performs nearly identically to recomputing them.

The claimed payoff is throughput: up to 200 tokens per second off-peak, and 70-80 tokens per second at peak load. That is Z.ai's own figure with no published third-party measurement yet.

What Z.ai published, and what it did not

The strongest evidence in the launch post is not about GLM-5.4 itself. It is a controlled, iso-parameter ablation on a 30B model with the same architecture as the 750B base: identical parameter counts, about 10% more total training compute for the looped version. On that smaller model Z.ai reports AIME25 rising from 19.17 to 30.42 and GPQA-Diamond from 47.58 to 56.26, with the largest gains in maths, scientific reasoning and long-context tasks.

Two findings from that test are more interesting than the raw jump. Looping shifted reasoning out of visible output: Z.ai says average output length fell 10-14% across most benchmarks, because part of the reasoning moved from explicit output tokens into the implicit depth of the loop. And longer reasoning chains benefited most — which is a real argument for long-horizon coding and agent work.

What is missing is a benchmark table for GLM-5.4. The only comparison on Z.ai's model page is a win-rate chart — GLM-5.4 wins 51.1% of comparisons against GLM-5.3 and 23.1% lose, with 25.7% ties — and Z.ai does not say which tasks were used or who judged them. Treat the 2T-3T claim and the win rates as vendor statements until independent numbers appear. The blog is also candid about a limitation: the model can get caught in overly long "marathon thinking" loops.

Where you can use it, and what the plan costs

GLM-5.4 reached every GLM Coding Plan tier — Lite, Pro and Max — on launch day, and Z.ai's documentation states the quota position clearly: for users with weekly limits, the available allowance for GLM-5.4 is 1.5x that of GLM-5.3. The credit totals themselves did not change; the model simply costs fewer credits per unit of work.

Independent analysis of Z.ai's credit multipliers puts GLM-5.4 at 4.6 credits per input unit, 1.1 per cached input unit and 16 per output unit, against GLM-5.3's 6.9, 1.7 and 24 — the same credits buying about 1.5x the tokens. The paid route today is the Coding Plan, which starts at $18 a month for the Lite tier. There is no published pay-as-you-go API price and no open weights: Z.ai lists the API as coming soon and says weights will follow "safety hardening", with no dates for either. Teams that need to call the model from their own code, or to self-host it, cannot do that yet.

What the early independent tests say

Independent evidence is thin but not absent. One early-access reviewer scored GLM-5.4 at 33.2 out of 60 on KingBench 4, seventh of 19 models tested and ahead of GLM-5.3's 27.5, though that is a single reviewer's run on a preview build. The more immediately actionable finding is about effort settings: Claude Code runs GLM-5.4 at maximum effort by default, and in that review the max setting took 431 minutes on a large build against 109 minutes for a competing model, while the low effort setting won on smaller tasks. If you point a coding agent at GLM-5.4, the default reasoning effort is worth lowering before you judge the model on speed.

Who should switch, and who should wait

On the Coding Plan the switch is close to a free option: GLM-5.4 costs fewer credits per token than GLM-5.3, adds image input, and scored higher in the only independent test published so far. If you already pay for a Z.ai plan, moving to glm-5.4 is a configuration change in tools that accept a custom model name.

Two groups should wait. Teams that consume a model through the pay-as-you-go API should stay on GLM-5.3 until Z.ai publishes a GLM-5.4 rate — the pricing page at launch still showed GLM-5.3 as the newest billable model. And anyone who needs weights on their own hardware should stay with GLM-5.3 or its smaller open siblings, because GLM-5.4 is not downloadable. For how this fits the wider market, see our model coverage and pricing guides.

Frequently asked questions

A Loop Transformer at the 750B scale

GLM-5.4 loops 28 layers of the GLM-5 base model for two iterations. Z.ai describes the scale as 750B and says the architecture reaches intelligence levels comparable to 2T-3T parameter models; it did not publish an exact parameter count.

Coding Plan and Z.ai apps only, for now

GLM-5.4 is available to GLM Coding Plan users and in ZCode and Z.ai Chat. Z.ai lists the pay-as-you-go API as coming soon and says model weights will be open-sourced after safety hardening, with no dates for either.

Cheaper per token on the plan

Z.ai says weekly-quota users get a GLM-5.4 allowance 1.5x that of GLM-5.3. Secondary analysis of Z.ai's credit table puts the per-unit multipliers at 4.6 input, 1.1 cached and 16 output for GLM-5.4, against 6.9 / 1.7 / 24 for GLM-5.3.

Vision in, 1M context, 128K out

Z.ai's model documentation lists video, image, text and file inputs, text-only output, a 1 million-token context window and a 128K maximum output. Z.ai quotes up to 200 tokens per second off-peak and 70-80 tokens per second at peak load.

Sources

Prices and benchmark figures are standard published rates as of November 24, 2026 and can change without notice. Some outbound links may be affiliate links — see our disclosure. Found an error? Tell us and we'll correct it in public.