AI & Innovation

GLM-5.4: Z.ai's Loop Transformer runs 28 layers twice to think deeper

By Anika SharmaAI & Innovations Editor, Peepals Tech
· Updated
WhatsAppX
Representative image: computer circuit board

Representative image: papazachariasa / Pixabay

Z.ai's GLM-5.4, launched on 23 November 2026, runs 28 of its 78 layers twice per token, aiming to match models four times its 750-billion-parameter size.

GLM-5.4: what happened

Chinese AI company Z.ai on Monday, 23 November 2026 introduced GLM-5.4, a new flagship large language model built on what it calls a Loop Transformer design: instead of making the model bigger, it runs part of the model twice for every piece of text it processes. GLM-5.4 has about 750 billion parameters and, according to Z.ai, a stack of 78 layers in which the 28 middle layers, numbers 27 to 54, are passed through a second time. Z.ai says this lets the model reason more deeply and aims to match models up to four times its size. The model is available now inside Z.ai Chat, its ZCode tool and the GLM Coding Plan subscription; access through the developer API is to follow after a security review.

GLM-5.4: key facts

  • Launch: Monday, 23 November 2026, by Z.ai, the company behind the GLM family of models.
  • Size: about 750 billion parameters, with a context window of up to one million tokens on the coding plan, according to launch coverage.
  • Design: layers 1 to 26 run once, layers 27 to 54 run twice, then layers 55 to 78 run once.
  • Origin: built by continued training of the existing GLM-5 base model, not trained from scratch.
  • Efficiency steps: a gate decides how much each loop contributes for each token, and the second pass reuses the attention choices of the first.
  • Evidence so far: Z.ai says it tested looping at 1 billion, 4 billion, 30 billion and 750 billion parameters, but published comparison numbers only for the 30-billion model.
  • Availability: Z.ai Chat, ZCode and the GLM Coding Plan now; API later; open weights planned, with no date given.

GLM-5.4: why it matters

For several years the main way to make AI models smarter has been to make them bigger and train them on more data, which needs ever larger amounts of computing power. Z.ai's bet is different. A transformer model processes text in layers, each one refining the model's internal picture of what it is reading. By sending the text through the same middle layers twice, the model gets more steps of thinking without storing more parameters. In simple terms, it is like reading the hard middle section of a chapter twice rather than buying a thicker book.

If it works as Z.ai claims, it could let companies get more reasoning out of a model of a given size, which matters for cost, because memory to hold parameters is one of the most expensive parts of running AI. There is a catch: running layers twice means more computation for each word, which can make responses slower, and early testers have described the model as slow.

The claims still need independent checks. Z.ai's published numbers come from the smaller 30-billion-parameter test, where it says looping improved results with roughly 10% more training compute; it has not yet published full benchmark scores for GLM-5.4 itself. Developers who have tried it report mixed results, with one placing it seventh in a coding comparison. Developers will also be watching for the model's weights, which Z.ai plans to release but has given no date for.

Peepals calculation: in the layer plan Z.ai describes, a piece of text passes through 26 + (28 × 2) + 24 = 106 layer steps instead of 78, about 36% more computation per token (106 / 78 ≈ 1.36) for the same number of stored parameters. Z.ai's target of matching models up to four times its size would mean rivalling models of about 3 trillion parameters (750 billion × 4). Our calculation from the reported figures.

Part of modelLayersPasses
Opening layers1 to 26once
Middle (looped) layers27 to 54twice
Final layers55 to 78once

GLM-5.4: impact

Short-term: Subscribers to Z.ai's coding plan can use GLM-5.4 now, while developers who build on the API have to wait for the security review to finish.

Long-term: If looped designs prove themselves in independent tests, AI labs may shift some effort from building ever larger models to reusing layers more cleverly, which could lower the memory cost of strong models.

Who is affected: Developers and companies that use GLM models for coding; AI researchers comparing ways to scale models; and businesses, including in India, weighing the cost of running large models.

What to watch next: API access after Z.ai's security review, and full benchmark results for GLM-5.4.

GLM-5.4: key takeaway

Treat GLM-5.4's claims as promising but unproven until independent benchmark results for the full model are published.

GLM-5.4: questions and answers

What is a Loop Transformer in GLM-5.4?

It is a model design in which some layers are used more than once. In GLM-5.4, the middle 28 of 78 layers run twice for each token, giving the model extra processing steps without adding parameters.

Can developers use GLM-5.4 through an API?

Not yet. Z.ai has made it available in Z.ai Chat, ZCode and its GLM Coding Plan, and says API access will follow after a security review.

Is GLM-5.4 open source?

Not at present. Z.ai plans to release the model's weights but has not given a date.

Is GLM-5.4 better than bigger models?

That is Z.ai's aim, but the company has published comparison numbers only for a smaller 30-billion-parameter test model, and early developer tests are mixed.

Disclaimer: Prepared by the Peepals newsroom from publicly available sources with AI assistance. Information is accurate to the best of our knowledge at the time of publication and may change. Images may be representative. Not professional advice. Report an error via our contact page.

#GLM-5.4#Z.ai#Loop Transformer#large language model#GLM Coding Plan

By Anika Sharma, AI & Innovations EditorCovers AI & Innovation and more for Peepals Tech. All stories by Anika Sharma

Your week ahead, every Sunday. Free.

Exam and result dates, IPOs opening, scheme deadlines, government holidays and the RBI decision for the next 7 days, plus the week's top stories. One email a week, unsubscribe in one click.

Anika Sharma is a pen name of the Peepals Global Editorial Team, which researches, fact-checks and publishes every story. The portrait is an illustration.

Responsible for this story: the Peepals Global Editorial Team. How we report

More from Peepals Tech

Your week ahead, every Sunday. Free.

Exam and result dates, IPOs opening, scheme deadlines, government holidays and the RBI decision for the next 7 days, plus the week's top stories. One email a week, unsubscribe in one click.