ReleaseAPI / Product · ActionableHabr AI→ original

Z.ai's GLM-5.4 Loops Layers Twice and Scores 33.2 of 60 on KingBench 4

Z.ai has released GLM-5.4. To make the model "think deeper" without growing in size, it runs some of its layers twice, much as a reader goes back over a dense paragraph. In the independent KingBench 4 test, it scored 33.2 of 60 points, placing 7th out of 19 and first among open models, but it reasoned roughly 15 times longer than Gemini 4 Neon. There are no official benchmarks, API, or weights, so only Coding Plan subscribers should try it, and they should check credit usage first.

AI-processed from Habr AI; edited by Hamidun News
Z.ai's GLM-5.4 Loops Layers Twice and Scores 33.2 of 60 on KingBench 4
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1The second pass reuses the first pass's cache, so memory grows by one window rather than by a full 1M-token cache
Key metric #2On a 30B model, adding about 10% more compute raised AIME25 from 19.17 to 30.42
Key metric #3A GLM-5.4 token consumes 1.5 times fewer credits than a GLM-5.3 token

On November 23, Z.ai released GLM-5.4, the company's first flagship model built on the Loop Transformer architecture. The problem it addresses will be familiar to anyone who pays for large models: to make a neural network reason better, you usually make it bigger, and that is expensive to train and expensive in memory. Z.ai took a different route: some of the model's layers simply run twice with the same weights. Think of rereading a dense paragraph of code: you have not learned anything new, but your conclusion comes out more accurate. The trouble is that it is still hard to verify whether the idea works. The flagship has no published benchmark table, no public API, and no released weights.

How the Loop Works and What Happens to Memory

The model was not trained from scratch. It was fine-tuned from the GLM-5 base. According to MarkTechPost, 28 layers are run twice, and the full model weighs about 750 billion parameters. DataCamp notes that Z.ai has not confirmed these figures. The author of the original review could not access the company's official blog and relied on those who quote it, so the details should be treated as preliminary.

The most interesting engineering trick involves the cache. The KV cache holds the stored attention keys and values, a kind of "summary" of text already read so it does not have to be recomputed. The second pass reuses the sparse cache from the first pass and stores its own cache only within a sliding window. As a result, the extra loop costs the memory of one window, not of a full 1M-token cache. Without this trick, the double pass would consume memory precisely in long contexts, such as a large code repository.

Z.ai claims the model reaches the level of models with 2 to 3 trillion parameters. The only evidence published is an ablation study (a comparison of "with the loop" versus "without the loop") on a 30B model. There, roughly 10% more training compute raised the score on the AIME25 Olympiad mathematics benchmark from 19.17 to 30.42, and on the GPQA-Diamond science questions from 47.58 to 56.26. At the same time, answers became 2 to 15% shorter. This is an experiment on a small model, and its results cannot be transferred directly to the flagship.

Pricing and Access

GLM-5.4 can only be tried through the GLM Coding Plan (Lite from $18 per month), in the ZCode desktop agent, and in Z.ai Chat. The pay-as-you-go API is marked "Coming Soon," the weights are promised "after safety hardening," and no dates have been given. Quotas in credits remain unchanged, but a GLM-5.4 token consumes about 1.5 times fewer credits than a GLM-5.3 token (data from Fello AI). Simon Willison connected to the model using a Coding Plan key through the OpenAI-compatible endpoint api.z.ai/api/v1, so existing clients should work.

What the Measurements Showed

The first independent run was done by the blogger AICodeKing on his KingBench 4 task set (according to Fello AI and DataCamp). The maximum score is 60 points:

  • Claude Fable 5.2: 42.0;
  • Gemini 4 Neon: 37.9, the run took 109 minutes;
  • GLM-5.4: 33.2, the run took 431 minutes;
  • GLM-5.3: 27.5, but the run is partial: it hit a timeout.

GLM-5.4 placed 7th out of 19 and first among open models. The cost of this result is very long reasoning: about 1.04 million tokens versus roughly 70 thousand for Gemini 4 Neon. Z.ai itself acknowledges the model's tendency toward "marathon thinking": in the High and Max modes it hit the 180-second timeout without finishing its reasoning.

The measurement has caveats. Gemini 4 Neon did the grading, GLM-5.4 graded a couple of tasks itself, and which reasoning mode was used for the run is still disputed. This is a single test from a single author, not a reproducible table.

What to Do About It

The 1.5x credit saving disappears if answers become twice as long: you pay for the number of reasoning tokens, not for the price of a single token. So if you already pay for the Coding Plan, run the model on your own tasks and measure actual credit usage and response time. If you are building a product on the API, wait for official benchmarks, API access, and weights. For now, GLM-5.4 remains an interesting architectural experiment: the idea of a loop with a economical cache looks sound, but there is no proven evidence for the flagship yet.

Story

Key Questions Answered

How the Loop Works and What Happens to Memory?

The model was not trained from scratch. It was fine-tuned from the GLM-5 base. According to MarkTechPost, 28 layers are run twice, and the full model weighs about 750 billion parameters. DataCamp notes that Z.ai has not confirmed these figures. The author of the original review could not access the company's official blog and relied on those who quote it, so the details should be treated as preliminary. The most interesting engineering trick involves the cache.

What are the key details on Pricing and Access?

GLM-5.4 can only be tried through the GLM Coding Plan (Lite from $18 per month), in the ZCode desktop agent, and in Z.ai Chat. The pay-as-you-go API is marked "Coming Soon," the weights are promised "after safety hardening," and no dates have been given. Quotas in credits remain unchanged, but a GLM-5.4 token consumes about 1.5 times fewer credits than a GLM-5.3 token (data from Fello AI).

What the Measurements Showed?

The first independent run was done by the blogger AICodeKing on his KingBench 4 task set (according to Fello AI and DataCamp). The maximum score is 60 points: Claude Fable 5.2: 42.0; Gemini 4 Neon: 37.9, the run took 109 minutes; GLM-5.4: 33.2, the run took 431 minutes; GLM-5.3: 27.5, but the run is partial: it hit a timeout. GLM-5.4 placed 7th out of 19 and first among open models. The cost of this result is very long reasoning: about 1.04 million tokens versus roughly 70 thousand for Gemini 4 Neon.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…