Gradient LabSign up free

Trending › Open source

Inkling 2 Mini: a transformer that runs its middle layers three times

Thinking Machines’ open-weights Inkling 2 Mini stores 24 layers but runs its middle 12 three times, so each token gets 48 layer passes of thinking without extra parameters. Artificial Analysis reports it matches Qwen3.8 27B on its Intelligence Index (20.1) at about $0.59 per task instead of $3.53.

Watch it move. This is an animated lesson on Gradient Lab.

Start the animated lesson

Step by step

Concept

Depth is thinking time

A transformer reads each token by passing it up a stack of layers, and each layer refines it a little. More layers means more computation per token, but every extra layer is extra weights to store. Inkling 2 Mini has 24 layers, which Thinking Machines groups into four blocks of six.

The yellow token passes through four blocks of six layers, each running once.

Problem

Two usual ways to think harder

To make a model reason more you can make it bigger, which needs more memory, or let it write a long chain of thought, which costs output tokens and waiting time. Thinking Machines wanted a small model that does more of that reasoning internally, so it can run on a laptop and still answer quickly.

Left: a taller stack needs more memory. Right: a long chain of thought means many more output tokens.

Key idea

Loop the middle layers

Inkling 2 Mini runs the first six layers once, then sends the token through the middle 12 layers three times using the same weights each time, then runs the last six once. That is 6 + 36 + 6 = 48 layer passes from only 24 stored layers. The extra depth costs compute, but no extra memory for weights.

Unrolled view: the striped copies are not new layers, they are the same middle weights run again.

Build

Each pass hears from the last one

Every pass also reads the output of the first block, and passes two and three get a gated message from the pass before, built on a method called attention residuals. The gate starts closed in training, so at first each loop behaves like an ordinary model, and the model learns how much to pass along. The number of passes is fixed at three.

Teal lines: every pass reads the first block’s output. Yellow gates: the message handed from one pass to the next.

Build

Small enough for a laptop

Each layer is a mixture of experts: a router sends every token to 8 of 128 expert networks. Thinking Machines reports 26.4B stored parameters, about 3.4B active in one pass and 5.4B counting the loops. Most layers are trained and shipped in 4-bit numbers (NVFP4, last 4 layers in 8-bit), for a reported memory footprint of about 20 GB.

128 experts in one layer; the 8 lit ones handle this token.

Insight

The result: same score, less compute

Artificial Analysis gives Inkling 2 Mini 20.1 on its Intelligence Index, the same as Qwen3.8 27B, with about 5× fewer active parameters. It reports roughly 2.8× less compute per task, $0.59 and 9 minutes per task versus $3.53 and 38 minutes. Thinking Machines says looping made the model over 50% more compute-efficient than a non-looped one of the same scale.

Bar heights to scale: reported cost per task on the Artificial Analysis index.

Quick check: Inkling 2 Mini runs its middle 12 layers three times. What does that add?

Pseudocode

# a normal transformer: every stored layer runs once
for layer in layers:              # 24 layers
    x = layer(x)

# Inkling 2 Mini: loop the middle 12 layers
x = prelude(x)                    # layers 1-6, once
h = x
for p in range(3):                # same weights each pass
    h = middle(h, x, msg=gate * previous_pass)
x = final(h)                      # layers 19-24, once
# 6 + 12*3 + 6 = 48 layer passes from 24 stored layers

# each layer: 8 of 128 experts per token
# 26.4B stored, ~20 GB in memory

Go deeper

Sources

  1. Thinking Machines Lab: Introducing Inkling 2 Mini
  2. Artificial Analysis: Inkling 2 Mini, an open weights looped transformer
  3. VentureBeat: Inkling 2 Mini looped transformer runs locally on laptops
  4. Inkling 2 Mini weights (Hugging Face)