What Is a Loop Transformer? How Inkling 2 Mini Works
How Inkling 2 Mini's loop transformer reruns the same layers three times, and what one to five passes change in reasoning, token use and facts.
For Engineering

What is a loop transformer?
A loop transformer is a language model that sends each token through the same group of layers more than once, instead of adding new layers to get more thinking power. The layers are stored once, so the model stays small in memory, but the work done is much larger. Thinking Machines' Inkling 2 Mini stores 24 layers and runs 12 of them three times. That adds up to 48 layers of work per token.
TL;DR
- A loop transformer gets more thinking from the same stored weights by passing tokens through some layers repeatedly.
- Inkling 2 Mini has 24 layers in four blocks of six. The middle 12 layers loop three times, which equals 48 layers of work.
- Each pass hands a "message" to the next one through a gate that starts closed and opens during training, which Thinking Machines says keeps training stable.
- It is also a mixture of experts model that picks 8 of 128 experts per token, so only 3.4 billion of roughly 26 billion parameters are active.
- Extra passes help reasoning and cut thinking tokens, but they do not help the model remember more facts.
- Looping saves memory on the weights, not compute, and long context still costs memory because each pass keeps its own cache.
Why does Inkling 2 Mini matter?
Looping is not a new idea. What is new is an open weights looped model this competitive that anyone can download under an Apache 2 license, which allows broad commercial use. Earlier looped models were mostly small research previews.
Inkling 2 Mini is the smallest model from Thinking Machines, the startup founded by Mira Murati, formerly OpenAI's CTO. It has about 26 billion parameters in total, takes text and images, and supports up to a million tokens of context. The files come to roughly 20 GB, and a MacBook Pro with 32 GB of memory or more should be able to run it locally. Thinking Machines' own demo used a 48 GB MacBook Pro.
On paper it looks strong. Against Qwen's 27-billion-parameter dense model, Google's Gemma 4 (31 billion) and Nvidia's Nemotron 3.5 Super, it leads on 32 of 48 benchmarks, especially software engineering, agentic search and visual grounding. Qwen still wins on some, such as the automation benchmark. On the independent Artificial Analysis intelligence index it scores 20, second among 14 models in its class.
Calling it a "Qwen killer" goes too far, as the later sections show. It is better for some jobs and worse for others, and the reason comes down to how it is built.
How does a loop transformer work?
A normal transformer is a stack of layers. A token enters the first layer, passes through each layer once, and comes out the other end as a prediction. To make the model more capable, builders add layers (more memory) or have the model write out longer chains of reasoning (more output text).
A loop transformer takes a third route. It sends the token back through some of the same layers again. You can think of it as the model reconsidering before it speaks.
One point matters here. This extra thinking happens in the model's latent space, meaning the internal numerical representations, not in words. None of it shows up as output text. That is efficient, but it is also a common criticism: it is harder to inspect what the model is doing when the reasoning never appears as readable tokens.
How is Inkling 2 Mini's loop laid out?
The 24 layers are split into four equal blocks of six:
| Block | Layers | Passes | Job |
|---|---|---|---|
| 1 | 6 | 1 | Turns incoming text tokens into the model's internal representation |
| 2 and 3 (the loop) | 12 | 3 | Abstract processing, repeated |
| 4 | 6 | 1 | Turns internal representations back into text tokens |
The arithmetic: 6 layers, plus 12 layers three times (36), plus 6 layers is 48 layers of work from 24 stored layers.
Thinking Machines did not guess where to put the loop. They tried it at the end and in the middle, and the middle won on most of their evaluations. The explanation is intuitive. The first and last blocks translate between the outside world (text) and the inside world (representations). The middle layers work on abstract representations, so that is where extra compute pays off.
What is the "message" between passes?
Each pass receives the output of the previous pass, which Thinking Machines calls the message. Pass two builds on what pass one worked out, and pass three builds on pass two.
The connection runs through a gate. The gate starts fully closed and opens gradually during training. According to Thinking Machines, that gradual opening is what keeps training stable. A model that starts with its loops fully wired in can be hard to train, and the gate eases it in.
How does mixture of experts fit in?
Inkling 2 Mini is also a mixture of experts model. Each layer contains many small expert networks, and a router picks only a few for each token. Here it picks 8 out of 128.
This is why the numbers look odd. The model has roughly 26 billion parameters in total, but only 3.4 billion are active per token. Counting the repeated passes, it is about 5.4 billion active parameters per token. A dense 27-billion-parameter model sends every token through all 27 billion. On the same hardware, Inkling 2 Mini can therefore run noticeably faster.
How much do extra passes actually improve the model?
Thinking Machines released a research version where you can set the number of passes from one to five using the same weights. The results fall into three patterns.
Reasoning improves a lot. On agentic coding, where the model fixes real issues in a code base over many steps, one pass solves under 1% of problems. Three passes solve about 47%.
Thinking tokens drop. With five passes, the model can reach the same answer using less than half the thinking tokens it needs at lower pass counts. On GPQA Diamond, a hard science question set, correct answers took about 3,700 thinking tokens at one pass and about 1,700 at three. One reading is that the one-pass model thinks out loud in text to make up for the thinking it cannot do internally.
Facts do not improve. Recalling facts mostly depends on what the model stored in its feed-forward layers during training. If it memorized something, looping does not change that. If it never learned it, looping does not create it. More passes help with reasoning, not knowledge.
Two caveats apply. First, the released checkpoint was mostly trained at three passes, and Thinking Machines itself says other settings probably understate what a model trained for them could do. So the one-pass collapse is partly a training effect. Second, returns generally diminish as passes pile up, so more is not endlessly better.
What are the costs of looping?
Looping saves memory for the weights. It does not save compute. Every token still does 48 layers of work. Each pass also keeps its own KV cache (the memory a model uses to track the conversation so far), so for context memory the model behaves like a 48-layer model. You will notice this most with long documents.
Running it also takes care. The reviewer noted community reports that early llama.cpp builds and some quantized versions (compressed files that trade accuracy for size) had looping problems. Using SGLang or vLLM with the native weights appears to be the safer path.
Who is Inkling 2 Mini good for, and what can you do about it?
In the reviewer's testing, the model seemed less eager to take action than the Qwen model. Qwen is more surface level but calls tools and follows instructions without hesitation. Inkling 2 Mini seems to look for deeper understanding first and is slightly less likely to jump in and change things.
That suggests a practical split, which one community commenter proposed: use Inkling 2 Mini for planning, diagnosing problems and code review, and hand the action-taking to Qwen or a smaller agentic model.
What this means for you:
- If you run models locally on a 32 GB or larger laptop, it is worth trying, using the native weights rather than an early quantized build.
- If you evaluate AI tools at work, ask whether a "reasoning" setting is a pass count, a token budget, or both. A model may do its best work only at the setting it was trained for.
- If your tasks are fact lookups, expect little benefit from extra thinking. Pair the model with search or your documents instead.
- If your tasks are multi-step analysis, extra passes are where the gains show up.
- Test on your own work. Benchmark wins on 32 of 48 tests do not tell you how it behaves on your files.
How could you track which model works for which job?
If you compare several models for different tasks, a spreadsheet gets messy quickly. With Remy, you can describe a small internal tool in plain English, such as a form where teammates log the task, the model and settings used, and a quality rating, with a dashboard that shows which model wins for planning versus action-taking. Remy builds and deploys it as a full-stack app with sign-in and a database, and the code stays yours. It is a way to own a simple evaluation tracker instead of renting another subscription for it.
Frequently Asked Questions
Is a loop transformer the same as a model that "thinks" with longer chains of reasoning?
No. Chain-of-thought reasoning writes out extra tokens you can read. A loop transformer repeats layers internally, in latent space, and none of that appears as text. The two can work together, and the Inkling results suggest more passes reduce how many thinking tokens the model needs.
Does a loop transformer need less memory than a normal model?
It needs less memory for weights, since layers are stored once. It does not need less compute, and its context cache grows like that of a model with the full 48 layers. Long-context use is where you will feel that.
Can you set the number of passes on Inkling 2 Mini?
The main release is mostly trained at three passes. A separate research version lets you set one to five passes with the same weights. Thinking Machines notes that settings away from three probably understate what a model trained for them could do.
Will more passes make the model know more?
No. Extra passes improve reasoning, but fact recall stays about the same, because facts are stored in the weights during training. Looping reuses what the model already knows.
Useful for
How we source, write, and correct our articles. Editorial standards
Related articles

GLM-5.4 Loop Transformer Explained: How It Works

How to Run Hy-MT3 Locally With llama.cpp: VRAM and Sizes

What Is Tencent DFly 2? Speculative Decoding Explained
