# GLM-5.4: Z.ai's Loop Transformer that reasons deeper without more parameters


Z.ai unveiled GLM-5.4 on November 23, 2026: its first flagship model built on a Loop Transformer architecture, where a shared block of layers runs for multiple iterations instead of stacking more parameters. Z.ai's claim: intelligence comparable to 2T to 3T parameter models, reached by converting the 750B GLM-5 base into a two-iteration loop through continued training rather than pre-training from scratch. The model is available now through Z.ai's chat, ZCode and the GLM Coding Plan, with an API listed as coming soon and open weights promised only after safety hardening. Every performance figure below is the vendor's own.

#### What the loop actually is

In a standard Transformer each layer runs once per forward pass. GLM-5.4 loops 28 layers of its base model for two iterations. The pitch is that reasoning-intensive work, large software engineering, cybersecurity, 3D modeling, physical control, needs more effective compute per parameter rather than more memorized parameters, so the same weights do several passes of refinement. Z.ai says looped models trained from scratch lag unshared models at equal pre-training compute, which is why it adapted an already trained base instead.

#### Three changes that make looping affordable at 750B

The technical blog lists three modifications. First, gated progressive updates: per-token gates decide how much of each iteration's candidate update writes back into the residual stream, because directly overwriting hidden states blows up activation norms across iterations. After training, the first pass writes conservatively to build stable global context and the second pass opens the gates for full refinement, with harder tokens getting more aggressive first-pass writes. Second, a hybrid KV cache: the second loop reuses the sparse KV selected in the first pass and keeps only its own sliding window of new KV, so an extra loop costs one sliding window of cache rather than a full context cache, which Z.ai says keeps the deployment cost increase over GLM-5.3 under control at 1M context. Third, sparse attention index reuse: the second loop reuses the first loop's attention indices with, per Z.ai, nearly identical quality and zero indexing overhead.

#### The evidence offered

Before committing the flagship, Z.ai validated the loop progressively at 1B, 4B, 30B and 750B scales. Its headline controlled experiment is a 30B iso-parameter ablation: identical parameter count, about 10 percent more total training compute, and clear gains concentrated in math, scientific reasoning and long-context tasks. It also reports average output length dropping 10 to 14 percent on benchmarks like GPQA-Diamond and MMLU-Pro, meaning part of the reasoning moved from visible chain-of-thought tokens into the implicit depth of the loop. On serving, Z.ai claims up to 200 tokens per second off-peak and 70 to 80 at peak load, crediting fused kernels and the KV and index designs.

#### Generalized coding, and the honest limitation

Z.ai's framing is that code is becoming the substrate for tasks beyond software: its demos have GLM-5.4 producing a self-narrated music video, building a 6-axis robotic arm as engineering-grade CAD in FreeCAD, writing a complete game, and generating an interactive 3D scene with custom GLSL shaders. Treat those as curated vendor demos. The one limitation Z.ai states plainly: the model tends to get caught in overly long marathon thinking loops, though it says that prolonged reflection keeps improving accuracy beyond the parameter count. If you evaluate it, time-to-first-useful-answer is the metric to watch.

#### Availability and what I could not verify

GLM-5.4 is live in Z.ai Chat, the ZCode coding tool and the GLM Coding Plan subscription, with the API marked coming soon. Weights are not out: Z.ai says it will open-source them after safety hardening, with no date. I did not run the model, and the 2T to 3T comparison, the ablation gains, the 10 to 14 percent shorter outputs and the throughput numbers all come from Z.ai's own post, with no independent evaluation published yet. The loop count is fixed at two; adaptive per-token iteration is listed as future work, as is a significantly larger next model.

#### Why this matters for builders

If the loop approach holds up under independent testing, it changes the cost curve that matters to anyone serving models: depth of reasoning without proportional growth in weights, KV cache or serving hardware. The engineering ideas are worth tracking even if you never touch GLM: gating iterative writes into a residual stream, sharing KV across passes with a local window, and reusing sparse attention indices are transferable patterns. The near-term caveat is practical: until the API ships and weights land, GLM-5.4 is a hosted coding product, not a model you can self-host and measure yourself.

### What is GLM-5.4?

Z.ai's new flagship model, announced November 23, 2026, and its first built on a Loop Transformer: 28 shared layers of the 750B GLM-5 base run for two iterations. Z.ai claims intelligence comparable to 2T to 3T parameter models.

### What is a Loop Transformer?

An architecture where one block of weight-shared layers runs multiple times per forward pass instead of running once. The goal is deeper reasoning through more effective compute per parameter, rather than more memorized parameters.

### Is GLM-5.4 open source?

Not yet. Z.ai says it plans to release the weights after completing safety hardening, with no date given. Today it is available only through Z.ai's hosted products: Chat, ZCode and the GLM Coding Plan, with an API coming soon.

### How fast is it?

Z.ai claims up to 200 tokens per second off-peak and 70 to 80 at peak load, despite the two-pass loop, thanks to shared KV caching, reused attention indices and fused kernels. These are vendor numbers with no independent benchmark yet.

### What are its known weaknesses?

Z.ai itself names marathon thinking: the model can get stuck in overly long reasoning loops. It says the extra reflection improves accuracy, but expect higher latency on some prompts. Curated demos aside, there is no third-party evaluation of quality.

### How was it trained?

By adapting the already pre-trained GLM-5 base into a loop through continued training, not from scratch. Z.ai says a 30B iso-parameter ablation with about 10 percent more training compute showed clear gains, biggest in math, scientific reasoning and long-context tasks.

### Should I switch my coding workflow to it?

Only after you can measure it yourself. The claims are interesting but all vendor-run, the API is not out yet, and weights are not available. If you already use ZCode or the GLM Coding Plan, it is the default upgrade; otherwise wait for the API or the open weights.

## Sources

- Z.ai announcement and technical blog: https://z.ai/blog/glm-5.4
- Secondary coverage, Digitimes: https://www.digitimes.com/news/a20261124VL224/z.ai-flagship-infrastructure.html
