What Is GLM-5.4? Z.ai’s First Loop Transformer Flagship (2026)

Ethan Coleon 25 minutes ago

GLM-5.4 is Z.ai’s first flagship model built on a Loop Transformer: it reuses part of an existing network to do more computation without simply adding more parameters. Announced in Z.ai’s November 23, 2026 research blog, it targets “Generalized Coding”—using code not only to build software, but also to work on video, games, 3D scenes, and engineering designs.

The practical launch detail matters as much as the architecture. As checked on November 24, 2026, the official documentation says GLM-5.4 is available to all GLM Coding Plan users. The general Model API is still awaiting a security assessment, and the model weights are a planned release after safety hardening—not a download we can point you to today.

This is an explanation of the official release and documentation, not a hands-on benchmark review. Here is what the specifications mean, how the loop works, and which launch claims need careful qualification.

GLM-5.4 at a glance

According to the official GLM-5.4 documentation and research announcement:

  • Developer: Z.ai, also known as Zhipu.
  • Architecture: Loop Transformer adapted from the GLM-5 base model.
  • Scale: The architecture discussion describes deployment at the 750B-parameter scale.
  • Loop configuration: 28 shared layers run for two iterations.
  • Input modalities: Video, image, text, and file, as listed in the documentation.
  • Output modality: Text.
  • Context length: 1M tokens.
  • Maximum output: 128K tokens.
  • Current access: GLM Coding Plan; the launch blog also links ZCode and Z.ai Chat.
  • General Model API: Coming after the security assessment.
  • Weights: Planned for responsible release after necessary safety hardening; no release date stated in the cited announcement.

Those are different kinds of specifications. Context length is an input-and-conversation capacity claim, not a guarantee of perfect recall. Maximum output is a ceiling, not the length every answer will reach. And a product being available inside a subscription does not mean the same model is already available through a general-purpose API.

What is a Loop Transformer?

The same layers do another pass

In an ordinary Transformer forward pass, each layer runs once. In a Loop Transformer, a group of layers runs more than once with shared weights. The later pass refines the internal representations produced by the earlier pass.

For GLM-5.4, Z.ai says 28 layers of the GLM-5 base model are reused across two iterations. Think of a shared processing stage getting another opportunity to refine its work, rather than a second, separately parameterized copy of that stage being added to the network.

This increases effective computational depth without increasing the parameter count in the way that adding independent layers would. It does not make the second pass free: more processing still has an inference cost. The engineering challenge is getting useful extra reasoning without making memory usage and serving cost grow uncontrollably.

Looping is not just a longer written answer

A loop inside the network is different from asking a chatbot to write a longer explanation. The former adds computation in the model’s internal processing; the latter increases visible generated tokens. The two can interact, but they are not interchangeable.

Z.ai says some reasoning can shift from explicit output tokens into the implicit depth of the loop. Its smaller controlled experiment reports shorter average outputs on several benchmarks despite better scores. That does not mean GLM-5.4 always responds briefly: the company also acknowledges that the flagship can get stuck in overly long “marathon thinking.”

Both statements can be true because one describes a controlled experiment and the other describes a known limitation of the released model.

How Z.ai makes the second pass practical

The technical blog describes three changes. You do not need to implement them to use GLM-5.4, but they explain why this is more than simply running an unchanged model twice.

Gated progressive updates

Reusing layers from a pretrained model can destabilize the scale of intermediate representations. Z.ai adds independent, per-token gates for each iteration to control how much of a candidate update is written into the residual stream.

The company describes the first pass as relatively conservative and the second as more willing to write refined updates. The gates also adjust with token difficulty. The important idea is controlled refinement: later processing should improve the representation rather than overwhelm what downstream layers expect.

A hybrid KV cache

A naive loop could keep a separate full key-value cache for each iteration, multiplying memory needs. GLM-5.4 instead combines shared global information with an independent local sliding window for the additional pass.

In Z.ai’s explanation, the second loop reuses sparse KV information selected in the first pass while retaining its own local updates. An extra loop therefore adds one sliding window of KV cache rather than another complete context cache. This matters especially at the advertised 1M context length.

It is a relative deployment-efficiency claim, not evidence that a 750B-scale model will fit on a consumer laptop. No local hardware minimum or downloadable checkpoint is established by the launch materials cited here.

Reused sparse-attention indices

The second pass also reuses attention indices generated in the first pass, avoiding a second indexing operation. Z.ai reports nearly identical performance to recomputing the indices each time.

Together, these changes address update stability, cache memory, and retrieval overhead. They do not erase the cost of extra computation; they aim to make that cost worthwhile.

What does “Generalized Coding” mean?

Code as a tool for making things

Z.ai uses this phrase for tasks that extend beyond conventional application development. The announcement shows examples involving a self-narrated music video, a six-axis robotic arm modeled in FreeCAD, a complete game, and an interactive 3D bird-watching scene built with geometry and shaders.

The shared idea is that code becomes an intermediate tool for creating or manipulating another artifact. A model can reason about a goal, write instructions or programs, and work with the software that produces the result.

These are vendor demonstrations, not our independent reproductions. They show the direction of the product; they do not prove that every similarly difficult project will succeed without supervision.

Text output is not native video output

The official documentation lists video and image among supported inputs but lists text as the output modality. That distinction prevents a common misunderstanding: a model that writes code to generate or edit a video is not necessarily a model that directly emits a finished video file.

Likewise, CAD code is not an automatically validated engineering design. Real projects still need execution, inspection, testing, and domain-specific review. For physical mechanisms, professional validation matters more than a persuasive explanation or a polished render.

How strong is GLM-5.4? Read the evidence carefully

The 2T–3T comparison is a vendor claim

Z.ai describes GLM-5.4 as reaching intelligence levels comparable to models with 2T–3T parameters. That is a performance comparison made by the developer. It is not a statement that GLM-5.4 contains two or three trillion independent parameters.

Nor should it be treated as universal parity across every workload. A parameter-equivalence headline cannot substitute for task-specific results, evaluation methodology, and independent reproduction.

The controlled ablation uses a 30B model

The blog’s controlled iso-parameter experiment compares a looped and non-looped 30B model, using approximately 10% more total training compute for the looped version. The stated evaluation follows 200K long-context supervised fine-tuning, with thinking mode enabled.

Z.ai reports gains particularly in mathematics, scientific reasoning, and long-context work, alongside shorter average outputs on several tasks. These results support the architectural argument at the tested scale. They must not be relabeled as benchmark scores achieved by the 750B flagship.

For a purchase or integration decision, the relevant question is narrower: does the available product handle your repository, documents, or design workflow accurately enough at acceptable cost? This article does not report an independent answer to that question.

Reported speed is not a service guarantee

The company reports up to 200 tokens per second off-peak and 70–80 at peak load. Those are provider-reported serving figures, not timings measured for this article or promises for every account.

A token-generation rate also differs from time to a useful final result. Thinking time, prompt processing, tool execution, and revisions can all affect the experience. The acknowledged marathon-thinking limitation is especially relevant for interactive work.

How to access GLM-5.4 now

Start with the Coding Plan route

The official documentation says GLM-5.4 is available to all GLM Coding Plan users through supported coding tools. It also says users on weekly quota plans receive a GLM-5.4 quota equal to 1.5 times their GLM-5.3 quota.

That multiplier is specifically about the stated weekly-quota arrangement. It is not a universal discount, unlimited usage promise, or API pricing announcement. Check the current plan details before subscribing.

The launch blog points readers to GLM Coding Plan, ZCode, and Z.ai Chat. Those are official access destinations, not a guarantee that every surface has identical features, entitlement rules, or usage limits.

Do not confuse documentation with an open API

The documentation lists features such as thinking mode, streaming, function calling, context caching, and structured output. However, it separately says the Model API will become available after the security assessment.

Feature documentation is therefore not sufficient evidence of a generally available API endpoint. We are not publishing an unverified model ID, an invented price, or a request example that assumes the general API has already launched.

Open weights are still a plan

The launch blog says the team plans to open-source the weights responsibly after necessary safety hardening. That does not establish a download date, license, checkpoint format, or local deployment recipe.

“Planned open weights” also says nothing by itself about adult-content permissions. For that separate question, see our GLM-5.4 NSFW and safety guide, which distinguishes confirmed safety wording from untested assumptions.

Who should pay attention to GLM-5.4?

GLM-5.4 is worth watching if you want a coding assistant that can reason across longer workflows and use code to work with visual or engineering artifacts. Its architectural approach is also relevant to readers following recurrent-depth models: it adapts an already pretrained base rather than relying only on training a shared-depth network from scratch.

It is less useful to treat it as an immediately downloadable local model, a guaranteed replacement for every frontier system, or an already-open general API. Those descriptions run ahead of the cited release state.

If your goal is a separate conversational experience rather than code-driven production, you can also explore HackAIGC Chat. That is a different product choice, not a claim that HackAIGC hosts GLM-5.4 or reproduces its capabilities.

Bottom line

GLM-5.4’s central idea is more useful computational depth from shared layers. The official release combines a 750B-scale Loop Transformer, long-context and multimodal inputs, and a push toward using code for broader creative and technical work.

The responsible reading keeps three boundaries intact: vendor claims are not independent benchmarks; the 30B ablation is not a flagship scorecard; and Coding Plan availability is not general API or open-weight availability. Those distinctions make the release easier to understand—and easier to evaluate when you can test it on your own legitimate workload.