This website uses cookies

Read our Privacy policy and Terms of use for more information.

TL;DR: Z.ai’s GLM-5.4 and Thinking Machines’ Inkling 2 Mini both loop their middle layers – reusing the same weights multiple times per token to pack more thinking into a smaller memory footprint. It boosts reasoning and cuts down on verbose chains of thought, though doing more math per token means shorter answers aren't always faster. Now, labs need to figure out how to let models decide when a second pass is actually worth it.

This week brought us two hot releases. Thinking Machines unveiled Inkling 2 Mini on November 20, and just three days later, Z.ai released GLM-5.4. These could have been just regular model releases that you’d want to explore and test from different angles. But unexpectedly, both of them turned out to be Looped Transformers. Is this a trend or just a coincidence?

Over the past four to six weeks, we’ve seen a massive pile of papers drop on Looped Transformers and the ways researchers are proposing to upgrade them. That inspired us to write an article on how Looped Transformers work and when you should or shouldn't use them.

To see what’s driving this sudden interest, we’ll start by going over what’s new with the latest models, and then we’ll touch on the overall trend and what we might expect down the road. Let’s go!

In today’s episode:

  • GLM-5.4: Z.ai’s first Looped Transformer

    • Exploring depth with GLM models

    • Inside GLM-5.4’s Loop Architecture: be surprised

    • Does a second pass mean less time spent thinking?

    • Where does this model fit?

  • Inkling 2 Mini: Looped Transformer for a laptop

    • How the looping happens

    • Why loop the middle layers?

    • What makes Inkling 2 Mini small enough for a laptop?

    • Do more passes mean less written reasoning?

  • Other looped variants backing up this trend

  • Conclusion: why Looped Transformers, and why now?

  • Sources and further reading

GLM-5.4: Z.ai’s first Looped Transformer

Exploring depth with GLM models

On November 23, Z.ai unveiled a new flagship model called GLM-5.4. As they wrote in their launch write-up: “Over the past three months, we have aggressively scaled both loop depth and model size in parallel.” GLM-5.4 is their first attempt to tap into the potential of a Looped Transformer architecture, but, of course, not the first case when their model went deeper.

More than a year ago we broke down one of Z.ai’s models. Ironically, it was GLM-4.5. It is a Mixture-of-Experts model that went deeper and narrower with 92 layers. The team chose a smaller hidden dimension and 160 routed experts per MoE layer, with eight selected per token. In their design experiments, going deeper helped reasoning.

Then, in February 2026, the team released GLM-5, which went the other way. It is also a MoE Transformer, but it has 78 main decoder layers in the released configuration and 256 routed experts per MoE layer, up from 160. A router “decides” which experts to run, and sparse attention picks which earlier tokens to look back at. Each layer in the main stack runs once. The shallower stack helped reduce the overhead of sending activations between devices that host different experts.

And now the interesting thing is that Z.ai didn’t keep stacking layers. It firstly cut the layer count in GLM-5, then used looping in 5.4 to add more steps of computation without a new set of weights for every step.

Inside GLM-5.4’s Loop Architecture: be surprised

What do you get from a second pass through the same layers? In the full guide, we break down GLM-5.4’s two-pass design, see how Inkling 2 Mini fits on a laptop, and look at what the benchmarks tell us about when another pass is worth it.

With Premium, you also get the full AI 101 archive and new deep dives in your inbox.

Have some extra time during the Thanksgiving break? Watch our most recent video →

FAQ

What is a Looped Transformer?

A Looped Transformer runs part of its layer stack more than once. Each pass updates the model’s hidden state using the same weights. It can do that without generating a new token between passes.

How do GLM-5.4 and Inkling 2 Mini use loops?

GLM-5.4 runs its middle 28 layers twice. Inkling 2 Mini runs its middle 12 layers three times. In both models, the layers before and after the loop run once.

Does looping make a model faster?

Not necessarily. Each pass adds work per token and can add to the attention cache. If the model writes fewer tokens, it may make up some of that cost. You need to measure end-to-end time to know.

Can Inkling 2 Mini run on a laptop?

Yes, on a machine with enough memory. Thinking Machines reports a footprint of about 20 GB and recommends at least 32 GB of RAM for Macs running it through Ollama.

Can a model choose how many times to loop?

Some designs support a variable pass count. NVIDIA’s Dory lets you set it at inference without changing checkpoints. GLM-5.4 and the released Inkling 2 Mini use fixed pass counts. Z.ai’s per-token gates change the size of the update, not the number of passes.

Reply

Avatar

or to participate