Inkling2Mini.wiki Size My Hardware

Architecture / lab notebook

Inkling 2 Mini Size & Looped MoE Architecture

How Inkling 2 Mini turns 24 stored layers into 48 layer passes, where its 26.4B parameters live, why only four layers see the full context, and what the bundled DSpark drafter reads. Every value below comes from the published config.json.

Advertisement

24-to-48 Layer Loop Core & Effort Simulator

Change effort, prompt and output length, batch size and DSpark settings. The diagram shows the order in which layers run for one token; the numbers show where the compute goes.

noneminimallowmediumhighxhighmax

Effort is injected as a system line by the chat template. config.json sets is_varloop: false, so every token runs the same 48 layer passes at every effort level.

Prelude x1
Core pass 1
Core pass 2
Core pass 3
Coda x1
Sliding window (1,024)Full attention
GFLOPs per token (matmul + attention)0
Share spent in loop core0%
Request total compute0 TFLOPs
Distinct experts read per layer per step8 / 128
Tokens per target step with DSpark1.00
Estimated decode speedup1.00x
Effort changes the reasoning budget, not depth

Calculating.

Prelude, loop core, coda

The decoder has 24 physical layers. Layers 0 to 5 form the prelude and run once. Layers 6 to 17 form the loop core and run three times with shared weights. Layers 18 to 23 form the coda and run once. A token therefore passes through 6 + 12 x 3 + 6 = 48 layers, from 24 layers of stored weights.

The passes are not a plain repeat. The vLLM recipe explains that every pass starts from the prelude's output, and from the second pass on, each core sublayer input (the attention query, key and value inputs and the MLP input) reads a message from the previous pass's two attention-residual blocks. A gated controller of rank 64 merges that message in, which is the gate_rank: 64 entry in the config.

Each pass keeps its own memory. Every core layer has a KV cache and a convolution-state cache per pass, 48 of each in total. That is why the loop multiplies cache size for the two full-attention layers inside the core, and why the VRAM calculator counts 8 full-length cache layers rather than 4.

What one layer contains

Each layer reuses the components of the larger Inkling 2 Small at a hidden size of 2,304: block attention residuals, relative-bias attention with a gate and an attention sink, four short convolutions with a kernel size of 4, and a sparse MoE feed-forward block.

Attention uses 24 query heads and 8 KV heads of 128 dimensions. The config's local_layer_ids lists 20 layers that use a 1,024-token sliding window, and the missing four, layers 5, 11, 17 and 23, attend over the full context. Those four positions close every block of six layers, so long-range information is gathered at regular intervals while most layers keep a fixed, small cache.

The MoE block has 128 routed experts with an intermediate size of 1,152, top-8 routing, a route scale of 8.0 and no shared experts. Roughly 8 million parameters per expert across 128 experts and 24 layers accounts for about 24.5B of the 26.4B total.

config.json reference

KeyValueMeaning
num_hidden_layers24Physical decoder layers
loop_config.core_start / core_end6 / 18Loop core is layers 6 to 17
loop_config.num_passes3Core runs three times per token
loop_config.gate_rank64Rank of the gated cross-pass controller
loop_config.is_varloopfalseFixed pass count for every token
hidden_size2,304Residual stream width
num_attention_heads / num_key_value_heads24 / 8Grouped-query attention, head_dim 128
sliding_window_size1,024Window for the 20 local layers
n_routed_experts / num_experts_per_tok128 / 8Top-8 routing, n_shared_experts 0
intermediate_size1,152Per-expert MLP width
sconv_kernel_size4Short convolution kernel
vocab_size201,024Padded; 200,058 unpadded
final_logit_softcapping30.0Logit soft cap
model_max_length1,048,576Maximum context

Size on disk

Upstream checkpoint
19.53 GB (NVFP4 + MXFP8)
DSpark drafter
0.64 GB mtp.safetensors
BF16 GGUF
52.23 GB
Q8_0 GGUF
27.82 GB
4-bit GGUF
15.73 to 17.63 GB
Vision projector
0.35 to 1.27 GB

The upstream file stores routed experts of layers 0 to 19 in NVFP4 and those of layers 20 to 23 in MXFP8, which is why it is about 20 GB rather than the roughly 53 GB a BF16 copy needs.

Advertisement

Vision encoder

Images are encoded by a 23-layer vision transformer with a hidden size of 1,024, 16 attention heads, a native patch size of 20 pixels and a temporal patch size of 2. An adapter merges 2 x 2 patches and a projector with a 4,096 hidden dimension maps them into the 2,304-wide text stream, where image and text tokens are processed together by the decoder.

The model card recommends each image side between 40 and 4,096 pixels. In the chat template an image becomes a <|content_image|> part, and only user and tool messages may carry images.

DSpark drafter and effort

The drafter in mtp.safetensors is configured in mtp_config: 3 layers, a block size of 8, a Markov head of rank 256, and target_layer_ids of 5, 23, 41 and 48. Those indices run past 24, which fits Unsloth's note that the drafter taps the looped layers, and is why it needs a runtime with looped-layer support.

Reasoning effort is separate from all of this. The chat template maps names to numbers (none 0.0, minimal 0.1, low 0.2, medium 0.7, high 0.9, xhigh and max 0.99) and writes the number into a system line. The model card adds that minimum effort does not fully switch reasoning off, and that compute per token is higher than the active parameter count suggests because the middle layers run three times.

Thinking Machines Lab also studied whether looping hurts monitorability, since a looped model can do more computation without writing visible reasoning tokens. The card reports very little control over its chain of thought and no success at covert side tasks in its tests.

Inkling 2 Mini Architecture FAQ

Answers cross-checked against the Inkling 2 Mini model card, config.json, chat_template.jinja and the published GGUF repositories.

What size is Inkling 2 Mini?

It has 26.4B total parameters with 3.4B active per token, or 5.4B effective active parameters once the loop core's three passes are counted. The upstream checkpoint is 19.53 GB in mixed NVFP4 and MXFP8, the BF16 GGUF is 52.23 GB and 4-bit GGUF files are 15.73 to 17.63 GB.

Which layers loop in Inkling 2 Mini?

Layers 6 to 17, the loop core. config.json sets core_start 6, core_end 18 and num_passes 3. Layers 0 to 5 (the prelude) and 18 to 23 (the coda) run once.

Does a higher reasoning_effort add more loop passes?

No. config.json sets is_varloop to false, so every token takes exactly three passes through the core. The effort value is written into the prompt as a system line, Thinking effort level, and steers how much the model reasons in tokens.

Which layers use full attention?

Layers 5, 11, 17 and 23. The other 20 layers are listed in local_layer_ids and use a 1,024-token sliding window. One full-attention layer closes each 6-layer block.