Founders BetaFounder price: US$ 9.90/month locked for as long as you subscribe.→
HomeBlogNewsletterZ.ai's GLM-5.4 Uses Loop Transformer, Targets General-Purpose Code
Diagram of GLM-5.4's Loop Transformer architecture, with shared layers executed in two iterations
Image: Z.ai
Newsletter5 min

Z.ai's GLM-5.4 Uses Loop Transformer, Targets General-Purpose Code

Z.ai announced GLM-5.4, its first flagship with a 750B Loop Transformer, up to 200 tokens/s, and a focus on general-purpose code. API and weights not yet released.

Z.ai announced on Monday, November 23, 2026, the GLM-5.4, its first flagship model built on the Loop Transformer architecture. The company says it reaches intelligence levels comparable to 2T to 3T parameter models, despite a 750B base.

The biggest AI newsletter in the World

Get AI articles in your inbox

Technical curation on models, agents and coding tools. No spam, unsubscribe anytime.

Daily at 8:00 and 16:00 Brasília time. No spam.

The announcement comes with a product message: GLM-5.4 marks the beginning of what Z.ai calls generalized coding, where programming becomes the foundation for solving tasks far broader than software.

In this article you will see:

  • What GLM-5.4 is and how the Loop Transformer works
  • The architectural changes and reported speed
  • What Z.ai shows of generalized coding
  • How to test today and what is still missing

What is GLM-5.4, Z.ai's first Loop flagship

GLM-5.4 is Z.ai's new flagship model, the company behind the GLM line. According to the official post, it is the house's first flagship with Loop Transformer, after three months of scaling loop depth and model size in parallel.

What the announcement does not bring: independent benchmark tables, API pricing, or a date for open weights. The performance claims are Z.ai's own and have not yet been reproduced by third parties.

How GLM-5.4's Loop Transformer works

In a standard Transformer, each layer runs once per pass. In a Loop Transformer, a group of layers with shared weights runs multiple times, refining the state from the previous pass. The network becomes deeper without gaining parameters.

The idea is not new: Z.ai notes that the Universal Transformer, from 2018, already proposed depth with shared weights. The problem is that loop models trained from scratch tend to lose to non-shared models with the same training budget.

That is why Z.ai adapted an already pre-trained base model, with continued training and a small extra cost. In GLM-5.4, 28 layers from GLM-5 run for two iterations. Another open model with loop layers was released last week: see the analysis of Thinking Machines' Inkling 2 Mini.

Three architectural changes at 750B scale

To keep deployment costs in check, Z.ai made three adjustments, all described in the official post:

  • Gated progressive updates: per-token gates control how much of each iteration returns to the residual stream, preventing activation explosion across passes.
  • Hybrid KV cache: the second loop reuses the first loop's cache and adds only a sliding window, instead of a full cache.
  • Sparse attention index reuse: the second loop uses the first loop's indices, with no extra indexing cost.

With this, Z.ai says that with 1M context, deployment cost rises in a controlled way compared to GLM-5.3. The KV cache is the memory that stores already-processed context, and it is what usually weighs on long contexts.

What Z.ai's controlled tests show

The company validated the architecture at 1B, 4B, 30B, and 750B scales. In a 30B model with the same architecture as the 750B base, it compared loop and non-loop versions with the same parameters and about 10% more total compute.

The largest gains appeared in math, scientific reasoning, and long-context tasks. On benchmarks like GPQA-Diamond and MMLU-Pro, average output length dropped 10% to 14%, because part of the reasoning moves into the loop's implicit depth.

On speed, Z.ai reports up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak. This is a provider number, measured on their infrastructure.

Generalized code: from game to robotic arm

GLM-5.4's focus is treating code as a foundation for other tasks. Z.ai shows four examples written as demos, all without independent evaluation:

  • a music video narrated by the model itself
  • a 6-axis robotic arm modeled in CAD in FreeCAD
  • a complete game, with movement, physics, maps, combat, and art
  • an interactive 3D scene made with mathematical geometry and GLSL shaders

For those building with agents, the relevant point is the promise of long tasks, with many chained steps. We covered something similar in Alibaba's Qwen4 Max, another flagship focused on long context.

How to test GLM-5.4 today

For now, access is through three official doors: Z.ai Chat, ZCode, and the Z.ai code plan. The API appears as coming soon, at the address z.ai/model-api.

Z.ai itself recommends caution with one limit: the model tends to enter long thinking loops. When testing, compare a multi-step long task with a conventional model and note both quality and time spent reasoning.

Frequently asked questions about Z.ai's GLM-5.4

What is GLM-5.4?

It's Z.ai's new flagship model, announced on November 23, 2026. It's the company's first with Loop Transformer architecture and uses a 750B-parameter GLM-5 base.

What is a Loop Transformer?

It's a Transformer where a group of layers with shared weights runs multiple times. This deepens reasoning without increasing the parameter count.

Is the GLM-5.4 API available yet?

Not yet. Z.ai lists the API as coming soon. For now, the model can be used in Z.ai Chat, ZCode, and the GLM Coding Plan.

Will GLM-5.4 have open weights?

Z.ai says it intends to open the weights after completing safety reinforcement, with no set date.

What are GLM-5.4's known limitations?

Z.ai itself admits the model tends to fall into long reasoning cycles, which it calls marathon thinking, though this improves accuracy.

What GLM-5.4 changes for those using code agents

The announcement reinforces a trend: instead of just increasing parameters, labs start spending more compute per token with loops. If this holds outside Z.ai's tests, smaller models could perform like large ones, with memory cost under control.

It's still early to treat GLM-5.4 as a substitute for anything. API, weights, and independent numbers are missing. Worth reserving a test squad to compare the model with what you already use as soon as API access comes out.

Did GLM-5.4 catch your attention? Put this novelty to work in an AI agent squad at bridgecode, each with a clear role.

Source: Z.ai

Share this article

Tags:#GLM-5.4#Z.ai#Loop Transformer#modelos de código
Marcelo Santiago
Marcelo Santiago·Creator of bridgecode

Developer and creator of bridgecode, an agentic development environment for orchestrating squads of AI agents. Helps people going from vibe coding to professional development move from idea to shipped product.

The biggest AI newsletter in the World

Enjoyed this content? Stay ahead in AI engineering.

Code analysis, multi-agent architecture, token benchmarks and tools selected by developers for developers.

Daily at 8:00 and 16:00 Brasília time. No spam.