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.
Part of the Inkling family: 264B · 947B
Architecture · VRAM · KV cache · Tensor shapes · Parameter count · FLOPs
Architecture
| Architecture | InklingForConditionalGeneration |
|---|---|
| Layers (L) | 42 |
| Hidden size (d) | 4,096 |
| Attention | GQA (4 query heads share each KV head) |
| Heads | 32 query, 8 key/value, 128 each |
| Feed-forward | 256 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 embeddings | no: separate output head |
| Biases | none |
| Extra norms | RMSNorm on q and k (per head) |
| Max context | 1,048,576 tokens; 35 of 42 layers use a 512-token sliding window |
| Position | learned 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 convolutions | depthwise, over the last 4 tokens: on the block's input before attention and before the FFN, and on the keys and values |
| Embedding norm | an RMSNorm on the embedding before the first block |
| Encoders | image (hierarchical patch MLP) and audio, 69.3M parameters together, used only for those inputs |
| Weights in the release | bfloat16 |
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:
| Precision | Bytes per parameter | Weights | |
|---|---|---|---|
| FP32 | 4 | 1.05 TB | 982.19 GiB |
| BF16 / FP16 | 2 | 527 GB | 491.10 GiB |
| INT8 / FP8 | 1 | 264 GB | 245.55 GiB |
| INT4 | 0.5 | 132 GB | 122.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.
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 memory | BF16 | 8-bit | 4-bit |
|---|---|---|---|
| 80 GB | 529 GBtoo big | 282 GBtoo big | 150 GBtoo big |
| 80 GB × n | 7 cards | 4 cards | 2 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.
| Context | KV cache, BF16 | 8-bit KV | With the sliding window | Weights + KV, BF16 |
|---|---|---|---|---|
| 4K | 705 MB | 352 MB | 191 MB | 528 GB |
| 32K | 5.6 GB | 2.8 GB | 1.0 GB | 533 GB |
| 128K | 22.5 GB | 11.3 GB | 3.8 GB | 550 GB |
| 1024K (max) | 180 GB | 90.2 GB | 30.1 GB | 708 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).
| Tensor | Shape | Parameters |
|---|---|---|
| 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 tensor | 256 × [4,096, 4,096] | 4,294,967,296 |
mlp.experts.w2_weight | 256 × [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 tensor | 256 × [4,096, 4,096] | 4,294,967,296 |
mlp.experts.w2_weight | 256 × [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.
2. Dense blocks, local attention (layers 0–1), ×2
3. MoE blocks, local attention (33 layers), ×33
4. MoE blocks, global attention (every 6th: layers 5, 11, …, 41), ×7
5. Final norm and output head
6. Total
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.
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.
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)
Audio encoder
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 T | 2N | Attention | Total per token |
|---|---|---|---|
| 4K | 24.0 GFLOPs | 763.4 MFLOPs | 24.8 GFLOPs |
| 32K | 24.0 GFLOPs | 4.1 GFLOPs | 28.0 GFLOPs |
| 128K | 24.0 GFLOPs | 15.3 GFLOPs | 39.3 GFLOPs |
| 1024K | 24.0 GFLOPs | 120.6 GFLOPs | 144.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.