Two luminous loops surround a processor on a circuit board.

Zhipu GLM-5.4: The Loop Transformer That Runs Its Layers Twice

Key Takeaways

  • Z.ai, also known as Zhipu AI, released GLM-5.4 on 23 November 2026, its first flagship model built on a Loop Transformer architecture.
  • The design runs the same 28 layers of the GLM-5 base model twice per forward pass, at about 750 billion parameters, giving a deeper network without adding parameters.
  • Z.ai claims intelligence comparable to models with 2 to 3 trillion parameters, but that claim is vendor-reported and unverified, because Z.ai published no flagship benchmark table.
  • The model has a 1-million-token context window and native vision for visual coding, and it can generate responses up to 128,000 tokens long.
  • Z.ai reports speeds of up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load, and says GLM-5.4 uses 33 percent fewer Coding Plan credits than GLM-5.3.
  • GLM-5.4 is live now for GLM Coding Plan subscribers in ZCode and Z.ai Chat, with the model name glm-5.4[1m] in Claude Code.
  • The pay-as-you-go API is listed as "coming soon" after a safety evaluation, and open weights are planned after safety hardening, with no date given for either.
  • Z.ai itself discloses that the model can get caught in long "marathon thinking" loops, a limitation that comes directly with the looping design.
  • A secondary Dev.to piece gives conflicting details, including four iterations, a 12 November webcast, a 15 November beta API, an ASIC and prices, that contradict the consensus account and should not be used.

What Zhipu Released

On 23 November 2026, the Chinese AI company Z.ai, also known as Zhipu AI, released GLM-5.4, its first flagship model built on a Loop Transformer architecture. The release is significant for two reasons. The first is the architecture itself, which takes a different approach to making a model more capable. The second is the timing, because GLM-5.4 arrived three days after Thinking Machines Lab's Inkling 2 Mini, a model that also loops its middle layers, running them three times per token. Two labs, within three days of each other, have now shipped models that reuse layers rather than adding more of them. That is a signal that the field is looking for a new way forward.

The headline numbers are these. GLM-5.4 is built on the GLM-5 base model, at about 750 billion parameters. It runs the same block of 28 layers twice per forward pass, which gives it the effective depth of a much larger network without adding another set of parameters. It has a context window of 1 million tokens, and it can generate responses up to 128,000 tokens long. It has native vision, which means it can read screenshots and images, a capability aimed squarely at visual coding, where a developer shows the model a screenshot of a user interface and asks it to reproduce or fix it. Z.ai says the model reaches intelligence levels comparable to models with 2 to 3 trillion parameters, a claim that, if true, would mean a model with a quarter of the parameters performing at the level of a model several times its size.

That claim is the centre of the story, and it is also the part that needs the most care. Z.ai published no flagship benchmark table for GLM-5.4. The only quantitative table in the release compares two 30-billion-parameter variants, showing that the looped version improved on mathematics, scientific reasoning and long-context tasks with about 10 percent more training compute. That is a meaningful result in its own right, and it is evidence that looping helps at smaller scale. But it is not a benchmark of the flagship model, and it does not support a direct comparison between GLM-5.4 and a 2-to-3-trillion-parameter model. Until Z.ai publishes benchmark scores for the full model, or independent evaluators test it, the 2-to-3-trillion equivalence claim should be treated as a vendor claim, not as a verified fact.

The model is available now, but only through Z.ai's own products. It is live for GLM Coding Plan subscribers in ZCode, the company's development environment, and in Z.ai Chat. In Claude Code, the model appears under the name glm-5.4[1m], and in other tools it appears as glm-5.4. The GLM Coding Plan starts at 18 dollars per month for the Lite tier, with Pro at 80 dollars and Max at 168 dollars, and Z.ai says GLM-5.4 uses 33 percent fewer Coding Plan credits than GLM-5.3, which is a practical benefit for subscribers who use the model heavily. The pay-as-you-go API is listed as "coming soon" and will follow a safety evaluation. Open weights are planned after safety hardening, with no date given for either. For now, hosted access through the Coding Plan is the only route to the model.

How a Loop Transformer Works

To understand GLM-5.4, it helps to start with how a standard Transformer works. A Transformer is built from layers, stacked one on top of another, and information passes through each layer once during a forward pass. Each layer transforms the information a little, and the stack as a whole turns an input, such as a piece of text, into an output, such as a continuation of that text or an answer to a question. The more layers a model has, the deeper it is, and depth is generally associated with capability, because each layer can perform a more refined transformation than the one before it.

The problem is that adding layers means adding parameters. Each layer has its own set of weights, the numerical values that determine what the layer does, and those weights have to be stored in memory and trained. A model with twice as many layers has roughly twice as many parameters, which means roughly twice the memory, twice the training cost, and twice the cost of serving the model to users. That is why the largest models have grown so expensive to build and to run, and why the industry has been looking for ways to get more capability without simply adding more parameters.

A Loop Transformer takes a different approach. Instead of stacking more layers, it reuses the layers it already has. The model sends information through the same block of layers more than once, so that each pass refines the representations produced by the previous pass. In GLM-5.4, the block is 28 layers from the GLM-5 base model, and the block is run for two iterations per forward pass. The same weights are used twice, so the parameter count does not grow, but the effective depth does. The information gets two chances to be transformed by the same 28 layers, and the second pass can correct, refine or deepen what the first pass produced.

There is a useful way to think about this. A standard Transformer is like a factory with a long production line, where each station does one job and the product moves on. A Loop Transformer is like a factory where the product goes through the same section of the line twice, so that the workers there get a second chance to improve it. The second pass is not a repetition of the first. It is a refinement, because the information entering the second pass is different from the information that entered the first. The layers see a more processed input the second time, and they can do more with it.

Z.ai did not build GLM-5.4 from scratch. The company converted its existing pretrained GLM-5 base model through continued training, adapting it to the looped design rather than training a new model from the ground up. That is an important detail, because it means the Loop Transformer is not only an architecture for future models. It is a technique that can be applied to models that already exist, which makes it cheaper and faster to adopt than a design that requires starting over.

The design also includes three engineering mechanisms to keep the extra computation manageable. Gated updates are token-level controls that regulate how much each processing pass changes the model's internal state, so that the second pass does not overwrite or destabilise what the first pass produced. A hybrid KV cache means the second pass reuses previously selected context information while storing only additional local information, which reduces the memory cost of running the layers twice. Sparse attention reuse means the model carries forward attention indices from the first pass, avoiding another indexing operation. These are the kinds of details that matter in practice, because looping saves weight memory but not compute. Running the same layers twice takes roughly twice the computation of running them once, and the engineering challenge is to make that extra computation affordable.

One account of the design gives a more precise picture of the layer layout, describing a 26-layer prelude, looped layers 27 to 54, and a 24-layer coda, which together turn 78 stored layers into 106 layer passes. That account comes from secondary reporting rather than from Z.ai's own announcement, so it should be read with that qualification, but it illustrates the point clearly enough. The model stores 78 layers' worth of weights and gets 106 layers' worth of processing out of them, because 28 of those layers do double duty.

Why Looping, and Why Now

The Loop Transformer arrives at a moment when the AI industry is asking a hard question about scale. For several years, the dominant strategy was simple: build bigger models, train them on more data, and expect capability to follow. That strategy worked, and it produced the frontier models of today. But it is running into limits. Larger models cost more to train, more to run, and more to serve, and the returns on each additional increment of scale are diminishing. The industry is looking for ways to get more capability out of the parameters it already has, rather than simply adding more of them.

Looping is one answer to that question. It trades compute for memory. A looped model uses more computation per token, because it runs its layers twice, but it uses less memory, because it stores fewer unique weights. That trade-off makes sense in a world where memory is expensive and compute is relatively cheap, or where a model needs to run on hardware with limited memory. It also makes sense for tasks that benefit more from additional reasoning than from additional stored knowledge. A coding task, for example, often requires careful step-by-step reasoning about a problem, rather than recalling a fact from a vast store of memorised information. A model that can think twice about the same problem, using the same layers, may do better on such a task than a model that has more layers but thinks about the problem only once.

The timing is also significant. GLM-5.4 arrived three days after Thinking Machines Lab's Inkling 2 Mini, which runs its middle layers three times per token. Two labs reaching a similar design at almost the same time suggests that the idea is in the air, and that the field is converging on looping as a serious direction. It also suggests that the next round of models from several labs may use similar techniques, and that the question of how many times to loop, and which layers to loop, will become a standard design choice, like the number of layers or the size of the context window.

There is also a competitive dimension. Z.ai is a Chinese laboratory, and GLM-5.4 is a flagship model from a company that competes directly with the American labs. The release shows that Chinese labs are not only matching the scale of Western models but are also innovating on architecture. That matters for the competitive landscape, because it means the race is not only about who can build the biggest model, but about who can find the most efficient way to build a capable one. A model that achieves the performance of a 2-to-3-trillion-parameter system with 750 billion parameters, if the claim holds up, would be a significant efficiency gain, and it would change the economics of serving frontier models.

Speed, Cost and the Coding Plan

Z.ai reports streaming speeds of up to 200 tokens per second off-peak, and 70 to 80 tokens per second at peak load. Those are vendor-reported figures, and they should be read as such, but they are plausible for a model of this size, and they matter for the practical experience of using GLM-5.4. Speed is one of the most noticeable qualities of a coding model, because a developer waiting for code to be generated is waiting in real time. A model that produces 200 tokens per second can generate a substantial block of code in a few seconds, while a model that produces 70 tokens per second will take noticeably longer. The gap between off-peak and peak speeds is also worth noting, because it suggests that the model's speed depends on how many people are using it at once, which is a common characteristic of hosted models.

The cost picture is clearer. Z.ai says GLM-5.4 uses 33 percent fewer Coding Plan credits than GLM-5.3, which means subscribers get more use out of the same plan. The Coding Plan starts at 18 dollars per month for Lite, 80 dollars for Pro, and 168 dollars for Max, and the company says the plan now includes 50 percent more weekly quota alongside the launch, a self-reported figure that, like the speed numbers, comes from the vendor. For a developer choosing a coding model, the combination of a lower credit cost and a higher quota is a tangible benefit, and it is one of the reasons the launch is aimed squarely at the Coding Plan rather than at the general API.

The focus on coding is deliberate. GLM-5.4 is described as a coding model, and its features are chosen for that use: a 1-million-token context window, which allows the model to hold a large codebase in memory, native vision for visual coding, and a 128,000-token output limit, which allows it to generate long stretches of code in a single response. The 1-million-token context window is particularly significant, because it means the model can work with very large projects without losing track of the code it has already seen. That is a capability that matters for real development work, where a change in one file can affect files elsewhere in the project, and where the model needs to understand the whole codebase to make a correct suggestion.

For readers who want to compare GLM-5.4 with the latest models from other labs, our coverage of Google's Gemini 4 Hydrogen pricing and benchmarks, and of Anthropic's Claude Fable 5.2, gives a sense of what the competition looks like. Those models take a more conventional approach to scale, and the contrast with GLM-5.4's looping design is instructive. The field is, in effect, running two experiments at once: one that adds parameters, and one that reuses them.

The Marathon Thinking Problem

Z.ai is candid about one limitation of the Loop Transformer, and that candour is worth noting. The company says that GLM-5.4 "tends to get caught in overly long 'marathon thinking' loops". That is a drawback that follows directly from the design. A model that loops its layers is a model that has been built to think twice, and sometimes it thinks more than twice, continuing to refine and re-refine its reasoning long after it should have produced an answer. The result is a model that can be slow to respond, or that spends its computation on reasoning that does not improve the final output.

Z.ai's position is that the extra self-correction still lifts accuracy, even when the thinking runs long. That may be true, and it is consistent with the broader finding in the field that giving a model more time to think generally improves its answers. But it is also a trade-off, and it is one that users will notice. A coding assistant that takes a long time to answer is a coding assistant that interrupts the flow of work, and a model that sometimes produces very long chains of thought is a model that can be expensive to run, because every token of thinking is a token that has to be computed.

The marathon thinking problem also raises a question about control. A model that can get caught in a loop of its own reasoning is a model that is, in a small way, doing something its builders did not intend. That is a familiar problem in AI, and it is one that the industry has encountered before with models that produce excessively long outputs or that repeat themselves. The difference here is that the loop is built into the architecture, which means the tendency to keep thinking is not an accident but a feature of the design. Whether Z.ai can tune the model to think for the right amount of time, and to stop when further thinking stops helping, will be one of the practical questions that determines how useful GLM-5.4 is in daily work.

Access, Open Weights and the Ecosystem Gap

The most important practical fact about GLM-5.4 is also the simplest: you cannot download it. There are no open weights yet, and no pay-as-you-go API. Access today is through the GLM Coding Plan subscription, in ZCode and in Z.ai Chat, and that is the only route. Z.ai says it plans to release the weights after completing necessary safety hardening, and that the API will follow a safety evaluation, but it has given no date for either. As of 24 November, Z.ai's organisation on Hugging Face lists no GLM-5.4 model, and the newest model there is GLM-5.3. The official GLM-5 repository, which lists GLM-5.3 as its newest model, does not mention GLM-5.4.

That gap matters for several reasons. First, it means that independent researchers cannot test GLM-5.4 themselves. They cannot run it on their own hardware, they cannot benchmark it against other models on their own terms, and they cannot inspect its weights. The vendor's claims about the model's capabilities, including the 2-to-3-trillion-parameter equivalence, cannot be independently verified until the weights are available or until Z.ai provides API access that allows third-party evaluation. That is why this article treats those claims as unverified.

Second, it means that developers who want to use GLM-5.4 must do so through Z.ai's hosted service, which is operated by a Beijing company. That has implications for data handling, because any code or data sent to the hosted service goes to servers operated by Z.ai, and is subject to Chinese law, including the National Intelligence Law, the Cybersecurity Law and the Data Security Law. For public or non-sensitive work, that may not be a concern. For proprietary code, or for work in regulated industries, it is a factor that should be considered, and it is a reason to prefer a model whose operator and jurisdiction can be verified, or to wait for open weights that can be run on the developer's own hardware.

Third, it means that the ecosystem around GLM-5.4 is, for now, limited to Z.ai's own tools. The model is available in ZCode and in Z.ai Chat, and it works in Claude Code under the name glm-5.4[1m], which is a useful integration, but it is not yet available through the broader set of tools and platforms that support open models. That will change if and when the weights are released, but until then, the model's reach is constrained by the distribution of Z.ai's own products.

The history of Z.ai's releases offers some guidance on timing. The company released GLM-5.3's weights about two weeks after that model's launch on 14 August, but no such timetable has been given for GLM-5.4, and the company has said that the weights will be released "responsibly" after safety hardening. That wording suggests a more cautious approach this time, which may reflect the model's greater capability, or the sensitivity of the architecture, or both. Either way, the absence of a date is itself informative. It says that Z.ai is not yet ready to commit to a timeline, and that users should not plan on the basis of one.

What Happens Next

Several things are worth watching in the weeks ahead.

The first is the benchmark question. Z.ai has said that benchmark scores will come later, and the credibility of the 2-to-3-trillion-parameter claim depends on them. If the company publishes a flagship benchmark table showing GLM-5.4 performing at the level of much larger models, the Loop Transformer will be taken seriously as a new direction for the field. If it does not, or if the benchmarks show a more modest gain, the claim will be read as marketing. Either way, the publication of benchmarks, or their continued absence, will be informative.

The second is the API and the open weights. The pay-as-you-go API is listed as "coming soon", and the open weights are planned after safety hardening, but neither has a date. When they arrive, they will change who can use the model and how it can be tested. The API will allow third-party developers to build on GLM-5.4 without a Coding Plan subscription. The open weights will allow independent researchers to benchmark the model, to inspect its behaviour, and to run it on their own hardware. Until then, the model exists in a kind of half-light, available to subscribers but not to the wider community.

The third is the response from other labs. If looping proves to be a genuine efficiency gain, other labs will adopt it, and the question of how many times to loop, and which layers to loop, will become a standard part of model design. Thinking Machines Lab has already shipped a model that loops its middle layers three times per token, and it would not be surprising to see other labs follow. The field may be at the beginning of a shift from "bigger is better" to "smarter reuse is better", and GLM-5.4 is one of the first data points in that shift.

The fourth is the practical experience of developers using the model. The Coding Plan subscribers who have access to GLM-5.4 now will form a view quickly about whether it is better than GLM-5.3, whether the marathon thinking problem is a nuisance or a deal-breaker, and whether the speed and cost figures hold up in practice. Their experience, shared in forums and in public discussion, will be the first independent evidence about the model, and it will be worth following.

For now, the honest summary is this. GLM-5.4 is a real engineering step, a 750-billion-parameter model that runs 28 of its layers twice to achieve the depth of a much larger system, with a 1-million-token context window and native vision for coding. Its headline claim, that it matches models with 2 to 3 trillion parameters, is unverified, because no flagship benchmark has been published. Its most important limitation, the tendency to get caught in long thinking loops, is disclosed by its own maker. And its availability is limited to a subscription, with no API and no open weights, and no date for either. That is a model worth watching, and a claim worth testing, but not yet a proven breakthrough.

What We Could Not Verify

  • Whether GLM-5.4's intelligence is comparable to that of models with 2 to 3 trillion parameters. That claim is vendor-reported, and Z.ai published no flagship benchmark table for GLM-5.4. The only quantitative table in the release compares two 30-billion-parameter variants, which does not support a comparison at flagship scale.
  • Any benchmark score for the full GLM-5.4 model. No flagship benchmark scores have been published by Z.ai or by an independent evaluator, so no numerical performance claim about the model can be stated.
  • The speed figures of up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load. Those figures are vendor-reported and have not been independently measured.
  • The claim that GLM-5.4 uses 33 percent fewer Coding Plan credits than GLM-5.3. That figure comes from Z.ai and has not been independently verified.
  • The precise layer layout of the model, including the account that describes a 26-layer prelude, looped layers 27 to 54, and a 24-layer coda, turning 78 stored layers into 106 layer passes. That account comes from secondary reporting, not from Z.ai's own announcement, and it is presented here with that qualification.
  • The conflicting details in one secondary Dev.to piece, which gives four iterations rather than two, a 12 November webcast, a 15 November beta API, an ASIC and prices. Those details contradict the consensus account from Z.ai's announcement and from other reporting, and they are not used in this article.
  • Any release date for the pay-as-you-go API or for the open weights. Z.ai has said the API is "coming soon" after a safety evaluation and that the weights are planned after safety hardening, with no date for either, so no date can be stated.
  • Whether the marathon thinking loops affect the model's accuracy in practice, and by how much. Z.ai says the extra self-correction lifts accuracy, but no measurement of that effect has been published.

Similar Posts