4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
5 min read

What Is GLM-5.4? Z.ai's Loop Transformer for Coding

GLM 5.4 is Z.ai's first flagship Loop Transformer, released November 23, 2026. See how the looping works, what Z.ai has published, and where you can try it today.

GLM 5.4 (also written GLM-5.4) is Z.ai's first flagship Loop Transformer, released on November 23, 2026. It is built for coding work, including software, and Z.ai also shows it writing code that produces video, games, and 3D or CAD work. The official post says the model has 750 billion parameters, and that it loops 28 layers of the GLM-5 base model for two iterations. That reuse is meant to add reasoning depth without adding a new pile of weights.

If you already use GLM models for coding and want to know what changed, where you can try 5.4 today, and what Z.ai has not published yet, this guide sticks to the official post, checked on November 24, 2026.

What a Loop Transformer is

In a standard transformer, each layer runs once per token. In a Loop Transformer, a shared group of layers runs more than once, refining the hidden state on each pass. The idea is older than this launch (Z.ai points back to the 2018 Universal Transformer), but training a looped model from scratch has often lagged a normal model under the same pre-training budget. Z.ai's approach was to take an already trained GLM-5 base and continue training it as a looped model.

At the 750 billion scale, the official post describes three changes that make the extra pass cheaper to serve:

  • Gated updates. Directly overwriting the hidden state between passes can blow up the numbers that later layers expect. GLM-5.4 adds per-token gates so each pass writes a controlled update. Z.ai says the first pass tends to write conservatively, and the second pass writes a fuller update.
  • A hybrid memory cache. A naive loop would store a full key-value cache for every pass. GLM-5.4 reuses sparse cache from the first pass and keeps a local sliding window for the second, so the extra loop does not double the full context cache. The post says this matters at context lengths up to 1 million tokens.
  • Reuse of sparse attention indices. The second pass reuses the attention index from the first, so it does not pay that indexing cost again.

The practical picture: the model runs some of its layers twice, and Z.ai designed the serving stack so that second pass is not a full second copy of the model in memory.

What Z.ai claims, and what it has not published

The official post says GLM-5.4 reaches "intelligence levels comparable to 2T-3T parameter models." That is Z.ai's own wording. The same post does not publish a benchmark table for the 750 billion flagship itself.

The numbers it does share come from a smaller test. Z.ai says it validated the loop design on 1B, 4B, 30B, and 750B bases. On a 30 billion model with the same architecture as the 750 billion base, a looped version used about 10% more training compute than a non-looped model of the same size. Z.ai reports the largest gains on math, scientific reasoning, and long-context tasks, and says average output length dropped by 10 to 14% on tests such as GPQA-Diamond and MMLU-Pro, mostly from shorter chains of thought. Those figures are a 30 billion ablation, not scores for GLM-5.4 itself. Do not read them as a 750 billion leaderboard.

The official post is also candid about a limit. The model "tends to get caught in overly long 'marathon thinking' loops." Z.ai says that extra reflection can improve accuracy, but it can also mean a long wait. For inference speed, the post claims up to 200 tokens per second off-peak, and 70 to 80 tokens per second at peak load.

Third-party tests were already circulating the day after launch. They are not official scores, and this article does not treat them as a substitute.

Where you can try it, and what is still coming

As of the November 23 post, GLM-5.4 is available in the GLM Coding Plan, in ZCode, and in Z.ai Chat. The same post lists the API as "coming soon" and says Z.ai plans to open-source the weights after safety hardening. It does not publish API prices on that page, so this article does not invent any.

If you already pay for a GLM Coding Plan, the honest next step is to try 5.4 on a real repo task and watch for the marathon thinking the lab itself warns about. If you are choosing among coding tools more broadly, Best AI Coding Agents in 2026 compares agents rather than a single model name.

Thinking Machines Lab released another looped model, Inkling 2 Mini, on November 20, 2026. That one is a small open checkpoint meant to run on a laptop. GLM-5.4 is a large hosted flagship. They share a design idea, not a deployment target.

For further reading

The skill that lasts

New coding models now show up every few weeks, often with a new architecture word attached. The useful habit is to read what the lab actually measured, notice what it has not published, and test the model on work you already understand. If you want to build that habit with models and agents, at your own pace, see how AI Flex works.

Sources, checked November 24, 2026: GLM-5.4: Toward Generalized Coding with Our First Loop Transformer (Z.ai, November 23, 2026).

Want to build with AI models and agents?

Get information on learning applied AI at your own pace, with guided paths and mentorship.

Frequently Asked Questions