News 4 min read

Z.ai releases GLM-5.4, its first Loop Transformer model for coding


Z.ai released GLM-5.4 on November 23, 2026, its first flagship model built on a Loop Transformer: instead of running each layer once, it runs a block of 28 layers of its GLM-5 base model twice, which makes the network deeper without adding parameters. It is available now to GLM Coding Plan subscribers, in ZCode and in Z.ai Chat, with vision added. The API is “coming soon” and the open weights will follow after safety work, so developers using the open GLM-5.3 can’t self-host the new model yet.

What’s new

In its launch post, Z.ai says GLM-5.4 reaches “intelligence levels comparable to 2T-3T parameter models”, while the model itself is at what the company calls “the 750B scale”. It has not published a benchmark table for GLM-5.4 itself, so that comparison is Z.ai’s own claim for now.

  • Loop architecture. A group of weight-shared layers runs for two iterations, refining the hidden states from the first pass. Z.ai did not train a looped model from scratch: it converted an already pre-trained base through continued training, and says it tested the approach on 1B, 4B, 30B and 750B base models first.
  • Per-token gates. Each pass writes its update back through its own gate. Z.ai says the first pass writes cautiously to keep activations stable and the second writes fuller updates, with harder tokens getting bigger first-pass updates.
  • Cheaper memory for the second pass. The second loop reuses the sparse KV cache picked in the first pass and keeps only a sliding window of its own, and it reuses the first pass’s sparse-attention indices. Z.ai says an extra loop therefore costs one sliding window of KV cache, not a full context cache, which keeps the cost increase over GLM-5.3 “well under control” at 1M-token contexts.
  • Shorter reasoning. In a controlled test on a 30B model with the same parameter count and about 10% more training compute, Z.ai reports the looped version did better, with the largest gains in math, scientific reasoning and long-context tasks, and average output length 10-14% shorter on benchmarks such as GPQA-Diamond and MMLU-Pro.
  • Speed. Up to 200 tokens per second off-peak and 70-80 tokens per second at peak load, according to the post.
  • Vision and “Generalized Coding”. Z.ai’s announcement on X says GLM-5.4 “adds vision capabilities for stronger visual coding”. Its demos use code to make a narrated music video, model a 6-axis robotic arm in FreeCAD, build a complete game and render a 3D scene with custom GLSL shaders.

Z.ai is upfront about one weakness: the model “tends to get caught in overly long loops” of reflection, though the company says that extra self-correction still improves accuracy.

What it means for developers

Today the only way to use GLM-5.4 in your own tools is the GLM Coding Plan, the subscription Z.ai sells for coding agents. Zixuan Li of Z.ai posted the model names: set the model to glm-5.4[1m] in Claude Code and glm-5.4 in other tools. In his launch post he adds that subscribers on weekly quotas get 50% more quota with GLM-5.4 than they had with GLM-5.3.

Where Status on November 23
GLM Coding Plan (Claude Code and other agents) Available
ZCode and Z.ai Chat Available
Z.ai API Coming soon, no date
Open weights Planned “after completing necessary safety hardening”, no date

No API price has been announced. On Hugging Face the newest weights are still GLM-5.3 and GLM-5.3-Flash, so anyone running GLM locally or through a third-party host such as OpenRouter (which now also routes Hugging Face’s inference providers) has to wait for the weights or the API.

If you rely on Z.ai’s models through a provider, watch for two things before switching: the API price, since running two passes over 28 layers costs more compute per token than GLM-5.3, and how often the “overly long loops” Z.ai mentions show up in agent runs, where they cost time and tokens.

How it compares

Looping layers is not a new idea, and Z.ai says so: it credits the 2018 Universal Transformer and recent research on recurrent depth, where gains had only been shown on small models. What is new is doing it on a model of this size and shipping it to paying users. It goes the other way from most recent large releases, such as Thinking Machines’ 594B mixture-of-experts Inkling 2 Small, which add capacity with more parameters rather than more passes. Z.ai says it is pursuing both, and that its “next, significantly larger model” will be “ready soon”.

Sources