The Lab Notes

Z.ai

Z.ai's GLM-5.4 runs layers twice and reaches Coding Plan users first

Z.ai released GLM-5.4, a 750B-parameter loop transformer, to Coding Plan subscribers, ZCode and Z.ai Chat, with the API and open weights still to come.

Overlapping red, purple and white rings sit at the center, with looping bands on a black right half.

Z.ai has released GLM-5.4, a 750-billion-parameter model that runs part of its network twice for each answer. Only GLM Coding Plan subscribers, ZCode users and Z.ai Chat users can reach it, and the per-token API is not live.

Z.ai announced the model Nov. 23 on its blog, calling it the new flagship. The Coding Plan is Z.ai’s flat-rate subscription, which works inside coding tools such as ZCode, Claude Code, Codex and OpenCode. Z.ai’s docs say the model API “will be made available upon completion of the security assessment,” and the blog lists it as “Coming Soon.” Z.ai said it plans to open-source the weights “responsibly after completing necessary safety hardening,” with no date given. Subscribers on weekly-quota Coding Plans get 1.5 times their GLM-5.3 quota when they use GLM-5.4, the docs say.

The Model Reruns 28 Layers With Shared Weights

GLM-5.4 is Z.ai’s first flagship built as a loop transformer, a design in which a group of layers runs several times and each pass refines the result of the one before. A standard transformer runs each layer once. Z.ai took 28 layers of the GLM-5 base model and runs them twice with the same weights, which adds depth without adding parameters. Z.ai claims the result reaches “intelligence levels comparable to 2T-3T parameter models.”

Z.ai said looped models trained from scratch lag standard models given the same compute, so it converted an already-trained base model through continued training.

The Second Pass Reuses the First Pass’s Cache

Z.ai kept memory costs down by having the second pass reuse the KV cache from the first, along with its attention indices. The KV cache is the model’s stored working memory of the text it has already read. The second pass adds only one sliding window of cache, and Z.ai said this keeps the deployment cost increase over GLM-5.3 “well under control” at 1M-token contexts.

Z.ai’s own test used a 30B model with the same architecture, not GLM-5.4. The looped version took about 10% more training compute, and its average output length on GPQA-Diamond and MMLU-Pro fell 10% to 14%, mostly from shorter chains of thought.

The Docs List a 1M-Token Window and Video Input

GLM-5.4 takes video, image, text and file inputs and returns text, according to Z.ai’s docs. The context window is 1M tokens and the maximum output is 128K tokens.

Z.ai pitches the model for what it calls Generalized Coding: writing code to make and edit video, build games, and do 3D modeling and mechanical design.

Z.ai Names Long Thinking Loops as a Weakness

Z.ai said GLM-5.4 “tends to get caught in overly long ‘marathon thinking’ loops,” though it said the extra self-correction improves accuracy. The company also said its next model, which it called “significantly larger,” will be ready soon.

Our View

We think the list of places GLM-5.4 can be used matters more than the looping design. The model is available only through the Coding Plan, ZCode and Z.ai Chat, so who gains depends on how a team pays for Z.ai’s models.

Developers already on the Coding Plan can switch today inside the tools they use, and those on weekly quotas get 50% more usage than GLM-5.3 gave them. Teams that build products on Z.ai’s API, or buy tokens through a gateway, cannot use GLM-5.4 yet, because the per-token route is closed. Teams that want to host the model themselves have to wait for the weights.

API builders get the model only once Z.ai finishes the security assessment, for which it has given no date.