By Daniel Carter (pen name) · Reviewed November 23, 2026
Z.ai released GLM-5.4 on November 23, and the headline feature is architectural, not a raw scale-up. The model is built on a Loop Transformer: a single 28-layer stack of shared weights, executed twice per forward pass. Running the same weights again buys effective reasoning depth without adding parameters to that block — Z.ai spent three months scaling loop depth and model size together to get here.
The company estimates the result "reasons at the level of a 2T–3T parameter model." Treat that as a claim, not a measurement. What's concrete today is access: GLM-5.4 is live for GLM Coding Plan users and in the coding tools ZCode, Trae, WorkBuddy and Qoder. Subscribers on Coding Plan V2, V3 and Team get 1.5× their previous weekly allowance. API access is still waiting on a safety review, and downloadable weights are promised but not yet out.
From reading to running: Z.ai's rollout reaches its own Coding Plan and partner tools first, and the usual fine print applies. If you're weighing where GLM-5.4 fits in your stack, review the GLM Subscription page — tiers, point allowances and model coverage in one place — before you commit to a coding plan.
The idea: a transformer that revisits its own work
For most of the recent history of language models, getting smarter meant adding parameters. Z.ai's own GLM-5.3 research drew a sharper line through that assumption: memory-heavy tasks reward parameter count, while reasoning-heavy tasks reward compute. A standard transformer walks its layer stack exactly once. GLM-5.4 walks it twice — the same weights applied in two passes over the hidden state, each pass refining what the previous one wrote.
The lineage goes back to the Universal Transformer in 2018, and the history there is cautionary: shared-weight models trained from scratch have consistently trailed unshared ones given equal compute. Z.ai's workaround was to stop pretraining a looping model from scratch and instead convert a pretrained GLM-5 base into one — 28 layers, run twice. Making that conversion hold up at 750B scale took three pieces of engineering.
Three fixes that make looping work at 750B
Gated progressive updates
Each pass writes only part of its change into the residual stream through per-token gates, which prevents activation norms from blowing up across rounds. Pass one is conservative, building global context; pass two reuses that state and writes more boldly. Gate sizes scale with how hard each token is.
Shared global KV cache, independent sliding window
The second pass reuses the first pass's sparse KV cache and adds only its own sliding-window cache on top. That keeps serving cost near GLM-5.3 levels even at 1M-token context — the loop adds depth, not deployment pain.
Reused sparse-attention indices
Rather than recomputing which tokens matter, the second pass reuses the first pass's indexer selections. It performs nearly as well as full recomputation while adding essentially no indexer cost.
The 30B experiment: what +10% compute buys
Loops sound elegant; the question is whether they earn their keep. Z.ai ran a controlled comparison at 30B parameters: identical architecture and parameter count, with the looping variant receiving roughly 10% more training compute. After 200K steps of long-text SFT with thinking enabled, the looping model led on every benchmark tested — and by the widest margins exactly where a deeper-compute design should help: math, long-context reasoning and code. The company reports running the same comparison at 1B, 4B and 750B as well.
| Benchmark | Baseline | + Loop | Change | Avg. thinking length |
|---|---|---|---|---|
| AIME25 | 19.17 | 30.42 | +11.3 | −635 tokens (−2%) |
| GPQA-Diamond | 47.58 | 56.26 | +8.7 | −2,473 tokens (−11.7%) |
| AA-LCR | 40.33 | 47.67 | +7.3 | −539 tokens (−9.7%) |
| MMLU-Pro | 71.65 | 75.05 | +3.4 | −863 tokens (−14.9%) |
| IFBench | 50.20 | 53.47 | +3.3 | −763 tokens (−13.0%) |
The controlled comparison above comes from Z.ai: same architecture and parameter count, looping variant trained with roughly 10% additional compute, evaluated after 200K long-text SFT steps with thinking enabled.
Just as telling is what shrank: chains of thought came out 10–14% shorter on GPQA-Diamond and MMLU-Pro. The extra depth inside the loop appears to be absorbing reasoning that used to spill into longer output — more thinking per token, fewer tokens per answer. Z.ai flags two open questions itself: how to allocate compute adaptively to token difficulty, and how returns scale with more passes or bigger models.
Coding past software: three demos
Z.ai has treated coding as a base capability since early 2025 — agentic engineering, long-horizon tasks, security work. The pitch it calls "general coding" extends that past software: code as the medium for video, complete games, 3D scenes and mechanical parts. Three demos anchor the claim.
A self-narrated music video, drawn entirely in code
Creator Mike Luan's 2:44 "Hello World" video renders every visual in real time with frontend code — zero image assets. GLM-5.4 planned the music chapter by chapter and shot by shot, called a third-party music model, and iterated on its own prompts.
A birdwatching macro scene in raw geometry
The 53-second scene is built from mathematical geometry and hand-written GLSL shaders, with no external models or textures. The long-tailed tit has individually rendered feathers — and it breathes, tilts its head, and blinks.
A six-axis robotic arm in FreeCAD
The 21-second clip shows an arm modeled in FreeCAD, with motion, visualization and audio finished in Blender, performing a full logo-pickup sequence.
Z.ai says it also evaluated GLM-5.4 on 200 real-world tasks and calls it the strongest Chinese model for coding "feel" — visual coding, visual replication and long-running tasks in particular. That is a self-reported assessment, not an independent benchmark, so weigh it accordingly.
Head-to-head numbers
The company's win/tie/loss comparisons against recent flagships show clear separation from its own previous model and narrower — but still positive — margins against competitors:
| Comparison | Win | Tie | Loss |
|---|---|---|---|
| vs GLM-5.3 | 51.1% | 25.7% | 23.1% |
| vs Kimi K3.1 Pro | 41.8% | 26.9% | 31.3% |
| vs DeepSeek-V4.1-Flash-1017 | 36.6% | 30.2% | 33.2% |
All figures are company-reported.
Speed, access — and the catch
On throughput, Z.ai reports up to 200 tokens per second off-peak and 70–80 at peak, crediting distance-split KV caching, the reused sparse-attention indices, and fused kernels. Beyond the Coding Plan tools, the model is rolling into Z.ai's own products (the Z.ai chatbot, Zhipu Qingyan, AutoClaw) and a long partner list: WorkBuddy, Doubao Work, Trae, Qwen Office, Qoder, CatPaw, MaDao, Baidu Dazi Enterprise, AiWork, TJ Codely and OpenCode.
The catch: "thunderous thinking." On hard prompts, GLM-5.4 can spend extended time reflecting and self-correcting before it answers — a genuine advantage for long tasks, and pure overhead for simple ones. Budget for it when you're picking this model for quick edits.
API access and downloadable weights both remain behind the curtain as of publication — the safety review and the "responsible release" are pending.
What to watch next
Two threads are worth following. First, whether the loop's economics hold in the wild: the 30B experiment is the strongest evidence Z.ai has published, and it built GLM-5.4 by converting a pretrained base rather than training a looping model from scratch — the approach works, but the open questions (adaptive compute per token, returns across passes and scale) are the ones that decide whether looping becomes a default technique. Second, the teaser: Z.ai says its next model will be significantly larger, pursuing depth and size together. If looping compounds with scale the way the 30B numbers hint, that release is the real test.
Bottom line
GLM-5.4's real story is a bet that the next gains come from spending compute twice rather than storing more. The controlled 30B evidence is genuinely encouraging; the flagship-level claims and the 200-task eval are self-reported; and access today means Coding Plans first, with API and weights still pending. If you build with code, the video, 3D and engineering demos alone justify an afternoon. The model to truly watch, though, is the bigger one Z.ai says comes next.
FAQ
What exactly loops in the Loop Transformer?
The same 28-layer stack of shared weights runs twice per forward pass. The second pass refines the hidden state written by the first — extra reasoning depth with no new parameters in that block.
Why not train a looping model from scratch?
History is unkind to that idea: since Universal Transformer (2018), shared-weight models trained from scratch have trailed unshared ones at equal compute. Z.ai instead converted a pretrained GLM-5 base into a looping model, which is what made the approach viable at 750B.
Is GLM-5.4 open weights?
Not yet, as of November 23, 2026. Z.ai says weights will be released "responsibly" at a later date, and API access is awaiting a safety review. Right now the model is reachable through GLM Coding Plans and partner coding tools.
Does the loop make it slower?
For hard prompts, potentially yes — the "thunderous thinking" behavior means long stretches of reflection and self-correction. For serving throughput, Z.ai reports up to 200 tokens/sec off-peak and 70–80 at peak, but those are company figures, not independently measured.
What does "general coding" actually mean?
Z.ai's term for using code beyond software: generating video, complete games, 3D scenes and mechanical parts as code. The launch demos — a code-rendered music video, a shader-built 3D bird scene, a FreeCAD robotic arm — are the concrete version of the pitch.