Frontier releases · 6
Inkling 2 Mini
24 layers of weights, 48 layers of computation
Official release: .byhand release:
Inkling 2 Mini stores 24 layers. It computes 48.
Thinking Machines released its first Inkling, 975B parameters, in July, and Inkling 2 Small, 594B, on November 5. Inkling 2 Mini, 26.4B, followed on November 20. It is small enough for a laptop: about 20 GB, for a Mac with 32 GB or more. By its makers' benchmarks it leads open models under 100B on agentic coding tests such as DeepSWE v1.1 (48.2%), and trails Qwen3.8-27B on some others.
Its loop builds on prior work going back to Universal Transformers (2018), and its attention residuals come from the Kimi team's Attention Residuals (March 2026).
This is Inkling by hand: all of its computation, from scratch in .byhand, with no imports. You can read every operation and generate the PyTorch or MLX.
Its two ideas, in turn: a loop, layers 6 to 17, counting from 0, run three times on the same weights, and layers joined in a way you may not expect, by attention residuals.
Double-click a box to open it, or select it and press Enter.
- 1
The loop
A deeper model thinks through more steps per token, but every layer adds weights to store and load. A loop breaks that link: running the same layers again buys depth without a single new parameter. The model does more computation per token before it writes anything down.
Why loop the middle? Think of a coding agent. The first layers translate your prompt into the model's own abstract terms; the last translate the result back out, as code or a tool call. The thinking happens in between, and that is the part worth repeating. Thinking Machines tested it: looping the middle twelve layers beat looping the last twelve on 27 of 28 evaluations.
The price is paid at training, not at use. They also found that a model without the loop cost 7.5% less to train, but needed 140% more compute at inference to match its loss on long agentic traces.
A model that learned to run once has to be taught to run three times without falling apart. That is the gate's job, where each pass's message enters:
kept + sent => gatedIt starts shut, so a looped pass begins as if there were no loop, and opens as training goes on, keeping training stable.
The attention residual
In a standard transformer every layer adds its output to one running sum, each with the same weight. As the model gets deeper, the sum grows, and any one layer's contribution is a smaller part of it. The Kimi team call this dilution.
Their fix: let each layer choose. It looks back over what earlier blocks produced and decides, for each token, how much of each to take:
raw + allowed
| softmax m
=> weightsRead it as attention over depth: where self-attention chooses among tokens, this chooses among blocks. Choosing among blocks rather than every layer keeps what is stored small.
We verified the text decoder's computation against Hugging Face Transformers, in PyTorch and MLX.