Inkling · Thinking Machines

Inkling-Small

Inkling-Small from Thinking Machines has 263,655,199,274 parameters in its language model, of which about 12B are used for each token (a mixture of experts). Its weights take 527 GB in BF16 and about 132 GB at 4-bit, and each token of context adds 172.0 KB of KV cache (5.6 GB at 32K tokens). The checkpoint also carries 69.3M-parameter image and audio encoders.

264Bparameters
12Bactive per token
527 GBBF16 weights
132 GB4-bit weights
172.0 KBKV per token

Part of the Inkling family: 264B · 947B

Architecture · VRAM · KV cache · Tensor shapes · Parameter count · FLOPs

Architecture

ArchitectureInklingForConditionalGeneration
Layers (L)42
Hidden size (d)4,096
AttentionGQA (4 query heads share each KV head)
Heads32 query, 8 key/value, 128 each
Feed-forward256 experts of 2,048, 6 per token, plus 2 shared (SwiGLU); 2 dense layers (layers 0–1) with FFN 16,384
Vocabulary (V)201,024
Tied embeddingsno: separate output head
Biasesnone
Extra normsRMSNorm on q and k (per head)
Max context1,048,576 tokens; 35 of 42 layers use a 512-token sliding window
Positionlearned relative-position scores: 16 features per head (d_rel), a score for each of the last 1,024 distances; the config sets no RoPE base
Short convolutionsdepthwise, over the last 4 tokens: on the block's input before attention and before the FFN, and on the keys and values
Embedding norman RMSNorm on the embedding before the first block
Encodersimage (hierarchical patch MLP) and audio, 69.3M parameters together, used only for those inputs
Weights in the releasebfloat16

How much memory the weights need

Each parameter takes 4 bytes in FP32, 2 in BF16, 1 at 8 bits and half a byte at 4 bits, so the weights of the language model alone need:

PrecisionBytes per parameterWeights
FP3241.05 TB982.19 GiB
BF16 / FP162527 GB491.10 GiB
INT8 / FP81264 GB245.55 GiB
INT40.5132 GB122.77 GiB

GB here is 109 bytes; GiB (230) is what tools like nvidia-smi show. Real 4-bit files are a little larger: they also store scales, and some layers are often kept at higher precision. The image and audio encoders add 139 MB in BF16 when used. Every expert has to be in memory, not just the active ones: the router picks different experts for each token. A running model also needs its KV cache, activations and the runtime's own buffers.

Memory calculator

On common GPUs

Whether the weights plus a 8K-token KV cache fit in 90% of the card (how this is worked out):

Too big for any single card up to 80 GB, even at 4-bit: it needs 150 GB there. Split across 80 GB GPUs it takes at least 7 at BF16, 4 at 8-bit, 2 at 4-bit (the last row).

GPU memoryBF168-bit4-bit
80 GB529 GBtoo big282 GBtoo big150 GBtoo big
80 GB × n7 cards4 cards2 cards

Each cell is the weights plus the 8K-token KV cache at that precision; ✓ where it fits. The 80 GB × n row divides that evenly over n cards (tensor or pipeline parallel), the best case: real splits duplicate some buffers.

KV cache

What it is: the KV cache, explained.

Every layer keeps a key and a value vector for each of its 8 KV heads, for every token in the context:

2 × L × K × h × 2 bytes = 2 × 42 × 8 × 128 × 2 = 172,032 bytes per token

Grouped-query attention is why this is small: with a KV head for each of the 32 query heads it would be 4 times larger.

ContextKV cache, BF168-bit KVWith the sliding windowWeights + KV, BF16
4K705 MB352 MB191 MB528 GB
32K5.6 GB2.8 GB1.0 GB533 GB
128K22.5 GB11.3 GB3.8 GB550 GB
1024K (max)180 GB90.2 GB30.1 GB708 GB

In the config, 35 of 42 layers use a 512-token sliding window. Runtimes that honour it never cache more than 512 tokens for those layers; the column shows what that saves.

For one sequence. Batching multiplies the KV cache by the number of sequences, not the weights.

Every tensor shape

The names are those in the Hugging Face checkpoint; shapes are [out, in] for weight matrices, as PyTorch stores them. One block is shown: the model repeats it 42 times (in two kinds).

TensorShapeParameters
Embedding
model.llm.embed.weight[201,024, 4,096]823,394,304
model.llm.embed_norm.weightRMSNorm on the embedding, before the first block[4,096]4,096
Dense blocks, local attention (layers 0–1): model.layers.N.…
attn.wq_du.weight[4,096, 4,096]16,777,216
attn.wk_dv.weight[1,024, 4,096]4,194,304
attn.wv_dv.weight[1,024, 4,096]4,194,304
attn.wo_ud.weight[4,096, 4,096]16,777,216
attn.q_norm.weightRMSNorm on each query head[128]128
attn.k_norm.weight[128]128
attn.k_sconv.weighta depthwise convolution over the last 4 tokens' keys[1,024, 1, 4]4,096
attn.v_sconv.weight[1,024, 1, 4]4,096
attn.wr_du.weightper-head features for the relative-position score[512, 4,096]2,097,152
attn.rel_logits_proj.proja score for each of the last 512 distances[16, 512]8,192
mlp.w13_dn.weightgate and up in one matrix[32,768, 4,096]134,217,728
mlp.w2_md.weight[4,096, 16,384]67,108,864
mlp.global_scaleone learned scale[1]1
attn_norm.weight[4,096]4,096
mlp_norm.weight[4,096]4,096
attn_sconv.weightdepthwise convolution before attention[4,096, 1, 4]16,384
mlp_sconv.weightand before the FFN[4,096, 1, 4]16,384
MoE blocks, local attention (33 layers): model.layers.N.…
attn.wq_du.weight[4,096, 4,096]16,777,216
attn.wk_dv.weight[1,024, 4,096]4,194,304
attn.wv_dv.weight[1,024, 4,096]4,194,304
attn.wo_ud.weight[4,096, 4,096]16,777,216
attn.q_norm.weightRMSNorm on each query head[128]128
attn.k_norm.weight[128]128
attn.k_sconv.weighta depthwise convolution over the last 4 tokens' keys[1,024, 1, 4]4,096
attn.v_sconv.weight[1,024, 1, 4]4,096
attn.wr_du.weightper-head features for the relative-position score[512, 4,096]2,097,152
attn.rel_logits_proj.proja score for each of the last 512 distances[16, 512]8,192
mlp.gate.weightthe router: a score for each of the 256 experts, and a row for each of the 2 shared experts[258, 4,096]1,056,768
mlp.gate.biasFP32[256]256
mlp.gate.global_scaleFP32[1]1
mlp.experts.w13_weightevery expert's gate and up, one tensor256 × [4,096, 4,096]4,294,967,296
mlp.experts.w2_weight256 × [4,096, 2,048]2,147,483,648
mlp.shared_experts.shared_w13_weightshared experts: run for every token[2, 4,096, 4,096]33,554,432
mlp.shared_experts.shared_w2_weight[2, 4,096, 2,048]16,777,216
attn_norm.weight[4,096]4,096
mlp_norm.weight[4,096]4,096
attn_sconv.weightdepthwise convolution before attention[4,096, 1, 4]16,384
mlp_sconv.weightand before the FFN[4,096, 1, 4]16,384
MoE blocks, global attention (every 6th: layers 5, 11, …, 41): model.layers.N.…
attn.wq_du.weight[4,096, 4,096]16,777,216
attn.wk_dv.weight[1,024, 4,096]4,194,304
attn.wv_dv.weight[1,024, 4,096]4,194,304
attn.wo_ud.weight[4,096, 4,096]16,777,216
attn.q_norm.weightRMSNorm on each query head[128]128
attn.k_norm.weight[128]128
attn.k_sconv.weighta depthwise convolution over the last 4 tokens' keys[1,024, 1, 4]4,096
attn.v_sconv.weight[1,024, 1, 4]4,096
attn.wr_du.weightper-head features for the relative-position score[512, 4,096]2,097,152
attn.rel_logits_proj.proja score for each of the last 1,024 distances[16, 1,024]16,384
mlp.gate.weightthe router: a score for each of the 256 experts, and a row for each of the 2 shared experts[258, 4,096]1,056,768
mlp.gate.biasFP32[256]256
mlp.gate.global_scaleFP32[1]1
mlp.experts.w13_weightevery expert's gate and up, one tensor256 × [4,096, 4,096]4,294,967,296
mlp.experts.w2_weight256 × [4,096, 2,048]2,147,483,648
mlp.shared_experts.shared_w13_weightshared experts: run for every token[2, 4,096, 4,096]33,554,432
mlp.shared_experts.shared_w2_weight[2, 4,096, 2,048]16,777,216
attn_norm.weight[4,096]4,096
mlp_norm.weight[4,096]4,096
attn_sconv.weightdepthwise convolution before attention[4,096, 1, 4]16,384
mlp_sconv.weightand before the FFN[4,096, 1, 4]16,384
After the last block
model.llm.norm.weightfinal norm[4,096]4,096
model.llm.unembed.weightthe output head[201,024, 4,096]823,394,304
Image encoder (hierarchical patch MLP)
model.visual.layers.linear_0.weight[128, 75]9,600
model.visual.layers.norm_0.weight[128]128
model.visual.layers.linear_1.weight[320, 512]163,840
model.visual.layers.norm_1.weight[320]320
model.visual.layers.linear_2.weight[4,800, 5,120]24,576,000
model.visual.layers.norm_2.weight[4,800]4,800
model.visual.layers.linear_3.weight[4,096, 9,600]39,321,600
model.visual.final_norm.weight[4,096]4,096
Audio encoder
model.audio.encoder.weight[1,280, 4,096]5,242,880
model.audio.final_norm.weight[4,096]4,096

The parameter count, step by step

Each line gives the formula, the numbers from config.json, and the subtotal. The symbols:

V
vocabulary 201,024
d
hidden size 4,096
L
layers 42
H
query heads 32
K
key/value heads 8
h
head size 128
f
FFN hidden size 16,384
E
routed experts 256
k
experts per token 6
f_e
expert FFN size 2,048

1. Embedding

One row of d numbers for each of the V tokens in the vocabulary.

Embedding
V × d
201,024 × 4,096
= 823,394,304
Embedding norm
d
4,096
= 4,096

2. Dense blocks, local attention (layers 0–1), ×2

Attention (local, sliding window)
H_s·h × d + 2 × (K_s·h × d) + d × H_s·h + 2 × h + 2 × (K_s·h × 1 × k) + H·d_rel × d + d_rel × W
4,096 × 4,096 + 2 × (1,024 × 4,096) + 4,096 × 4,096 + 2 × 128 + 2 × (1,024 × 1 × 4) + 512 × 4,096 + 16 × 512
= 44,056,832
Feed-forward (SwiGLU)
2f × d + d × f + 1
32,768 × 4,096 + 4,096 × 16,384 + 1
= 201,326,593
Norms and short convolutions
2 × d + 2 × (d × 1 × k)
2 × 4,096 + 2 × (4,096 × 1 × 4)
= 40,960
One block
attention + feed-forward + norms and short convolutions
44,056,832 + 201,326,593 + 40,960
= 245,424,385
2 blocks
2 × block
2 × 245,424,385
= 490,848,770

3. MoE blocks, local attention (33 layers), ×33

Attention (local, sliding window)
H_s·h × d + 2 × (K_s·h × d) + d × H_s·h + 2 × h + 2 × (K_s·h × 1 × k) + H·d_rel × d + d_rel × W
4,096 × 4,096 + 2 × (1,024 × 4,096) + 4,096 × 4,096 + 2 × 128 + 2 × (1,024 × 1 × 4) + 512 × 4,096 + 16 × 512
= 44,056,832
Mixture of experts (256 experts, 6 per token)
(E+S) × d + E + 1 + E × (2f_e × d) + E × (d × f_e) + S × 2f_e × d + S × d × f_e
258 × 4,096 + 256 + 1 + 256 × (4,096 × 4,096) + 256 × (4,096 × 2,048) + 2 × 4,096 × 4,096 + 2 × 4,096 × 2,048
= 6,493,839,617
Norms and short convolutions
2 × d + 2 × (d × 1 × k)
2 × 4,096 + 2 × (4,096 × 1 × 4)
= 40,960
One block
attention + mixture of experts + norms and short convolutions
44,056,832 + 6,493,839,617 + 40,960
= 6,537,937,409
33 blocks
33 × block
33 × 6,537,937,409
= 215,751,934,497

4. MoE blocks, global attention (every 6th: layers 5, 11, …, 41), ×7

Attention (global)
H·h × d + 2 × (K·h × d) + d × H·h + 2 × h + 2 × (K·h × 1 × k) + H·d_rel × d + d_rel × R
4,096 × 4,096 + 2 × (1,024 × 4,096) + 4,096 × 4,096 + 2 × 128 + 2 × (1,024 × 1 × 4) + 512 × 4,096 + 16 × 1,024
= 44,065,024
Mixture of experts (256 experts, 6 per token)
(E+S) × d + E + 1 + E × (2f_e × d) + E × (d × f_e) + S × 2f_e × d + S × d × f_e
258 × 4,096 + 256 + 1 + 256 × (4,096 × 4,096) + 256 × (4,096 × 2,048) + 2 × 4,096 × 4,096 + 2 × 4,096 × 2,048
= 6,493,839,617
Norms and short convolutions
2 × d + 2 × (d × 1 × k)
2 × 4,096 + 2 × (4,096 × 1 × 4)
= 40,960
One block
attention + mixture of experts + norms and short convolutions
44,065,024 + 6,493,839,617 + 40,960
= 6,537,945,601
7 blocks
7 × block
7 × 6,537,945,601
= 45,765,619,207

5. Final norm and output head

Final norm + head
d + V × d
4,096 + 201,024 × 4,096
= 823,398,400

6. Total

Language model
embedding + norm + blocks + final
823,394,304 + 4,096 + 490,848,770 + 215,751,934,497 + 45,765,619,207 + 823,398,400
= 263,655,199,274

7. Active parameters per token

The router sends each token to 6 of the 256 experts in each MoE block, so only those experts' weights are used, plus the shared expert, which every token uses. One routed expert is 25,165,824 parameters.

Active
total − MoE blocks × (E − k) × expert
263,655,199,274 − 40 × 250 × 25,165,824
= 11,996,959,274

8. Multi-token prediction

The checkpoint also ships 8 multi-token-prediction modules, trained to guess tokens further ahead. It is not used for ordinary decoding (it can drive speculative decoding), so it is left out of the total above but is in the files.

Each MTP layer: its own pieces
2 × d + d × 2d
2 × 4,096 + 4,096 × 8,192
= 33,562,624
× 8
8 × the line above
8 × 33,562,624
= 268,500,992
MTP block, local attention (6 of the 8)
H_s·h × d + 2 × (K_s·h × d) + d × H_s·h + 2 × h + 2 × (K_s·h × 1 × k) + H·d_rel × d + d_rel × W + 2f × d + d × f + 1 + 2 × d + 2 × (d × 1 × k)
4,096 × 4,096 + 2 × (1,024 × 4,096) + 4,096 × 4,096 + 2 × 128 + 2 × (1,024 × 1 × 4) + 512 × 4,096 + 16 × 512 + 32,768 × 4,096 + 4,096 × 16,384 + 1 + 2 × 4,096 + 2 × (4,096 × 1 × 4)
= 245,424,385
× 6
6 × the line above
6 × 245,424,385
= 1,472,546,310
MTP block, global attention (2 of the 8)
H·h × d + 2 × (K·h × d) + d × H·h + 2 × h + 2 × (K·h × 1 × k) + H·d_rel × d + d_rel × R + 2f × d + d × f + 1 + 2 × d + 2 × (d × 1 × k)
4,096 × 4,096 + 2 × (1,024 × 4,096) + 4,096 × 4,096 + 2 × 128 + 2 × (1,024 × 1 × 4) + 512 × 4,096 + 16 × 1,024 + 32,768 × 4,096 + 4,096 × 16,384 + 1 + 2 × 4,096 + 2 × (4,096 × 1 × 4)
= 245,432,577
× 2
2 × the line above
2 × 245,432,577
= 490,865,154

9. Image and audio encoders

The checkpoint also holds small encoders that turn image patches and audio into vectors of width d. The config does not give their inner widths, so these shapes were read from the checkpoint's safetensors headers. They run only for images or audio, so they are listed apart from the language model.

Image encoder (hierarchical patch MLP)

Image encoder (hierarchical patch MLP)
128 × 75 + 128 + 320 × 512 + 320 + 4,800 × 5,120 + 4,800 + 4,096 × 9,600 + 4,096
128 × 75 + 128 + 320 × 512 + 320 + 4,800 × 5,120 + 4,800 + 4,096 × 9,600 + 4,096
= 64,080,384

Audio encoder

Audio encoder
1,280 × 4,096 + 4,096
1,280 × 4,096 + 4,096
= 5,246,976
Encoders
the parts above
64,080,384 + 5,246,976
= 69,327,360
In the checkpoint
language model + MTP + encoders
263,655,199,274 + 2,231,912,456 + 69,327,360
= 265,956,439,090

Hugging Face counts 265,956,439,090 parameters in the thinkingmachines/Inkling-Small safetensors files. The arithmetic above matches exactly.

FLOPs per token

A forward pass costs about two floating-point operations (a multiply and an add) for every weight a token passes through: 2 × N, with N the active weights used in matrix multiplies (the embedding lookup is a read, not a multiply; the output head is a multiply). Here that is 2 × 11,996,959,274 = 24.0 GFLOPs per token.

Attention adds the work of comparing the token with every earlier one: 2 × L × T × H × (hqk + hv) for T tokens of context, which grows with the context while 2N does not. Layers with a window see at most 512 tokens, which the table allows for.

That is for one new token at position T, as when generating. Averaged over a whole training sequence of length T, each token sees T/2 earlier ones on average, which halves it.

Context T2NAttentionTotal per token
4K24.0 GFLOPs763.4 MFLOPs24.8 GFLOPs
32K24.0 GFLOPs4.1 GFLOPs28.0 GFLOPs
128K24.0 GFLOPs15.3 GFLOPs39.3 GFLOPs
1024K24.0 GFLOPs120.6 GFLOPs144.5 GFLOPs

Training costs about three times the forward pass per token (6N): the backward pass does roughly twice the forward work.

More in the glossary: FLOPs per token · quantization · parameters.

Compare

Inkling-Small vs Qwen3.5 397B-A17B · Compare with any model →

Close in size: Qwen3 235B-A22B 235B · MiniMax M2 229B · GLM-4.5 353B · Qwen3.5 397B-A17B 396B · Llama 4 Maverick (17B-128E) 401B

Source

Read from thinkingmachines/Inkling-Small, fetched 2026-12-03. The model card gives 276B total and 12B active; the safetensors files hold 266.0B (language model, MTP layers and encoders), which is what the arithmetic here reproduces. The card does not say what its figure counts.