Inkling · Thinking Machines
Inkling
Inkling from Thinking Machines has 947,025,564,226 parameters in its language model, of which about 41.1B are used for each token (a mixture of experts). Its weights take 1.89 TB in BF16 and about 474 GB at 4-bit, and each token of context adds 495.6 KB of KV cache (16.2 GB at 32K tokens). The checkpoint also carries 91.6M-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) | 66 |
| Hidden size (d) | 6,144 |
| Attention | GQA (8 query heads share each KV head) |
| Heads | 64 query, 8 key/value, 128 each |
| Feed-forward | 256 experts of 3,072, 6 per token, plus 2 shared (SwiGLU); 2 dense layers (layers 0–1) with FFN 24,576 |
| 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; 55 of 66 layers use a 512-token sliding window |
| Local layers | 64 query and 16 key/value heads of 128 (the global layers have 8 KV heads) |
| 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, 91.6M 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 | 3.79 TB | 3527.95 GiB |
| BF16 / FP16 | 2 | 1.89 TB | 1763.97 GiB |
| INT8 / FP8 | 1 | 947 GB | 881.99 GiB |
| INT4 | 0.5 | 474 GB | 440.99 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 183 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 537 GB there. Split across 80 GB GPUs it takes at least 25 at BF16, 14 at 8-bit, 7 at 4-bit (the last row).
| GPU memory | BF16 | 8-bit | 4-bit |
|---|---|---|---|
| 80 GB | 1.9 TBtoo big | 1.01 TBtoo big | 537 GBtoo big |
| 80 GB × n | 25 cards | 14 cards | 7 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.
Only some layers keep keys and values, and not all of the same size:
11 global layers × 2 × 8 × 128 + 55 sliding-window layers × 2 × 16 × 128 × 2 bytes = 495,616 bytes per token
| Context | KV cache, BF16 | 8-bit KV | With the sliding window | Weights + KV, BF16 |
|---|---|---|---|---|
| 4K | 2.0 GB | 1.0 GB | 415 MB | 1.9 TB |
| 32K | 16.2 GB | 8.1 GB | 1.7 GB | 1.91 TB |
| 128K | 65.0 GB | 32.5 GB | 6.1 GB | 1.96 TB |
| 1024K (max) | 520 GB | 260 GB | 47.5 GB | 2.41 TB |
In the config, 55 of 66 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 66 times (in two kinds).
| Tensor | Shape | Parameters |
|---|---|---|
| Embedding | ||
model.llm.embed.weight | [201,024, 6,144] | 1,235,091,456 |
model.llm.embed_norm.weightRMSNorm on the embedding, before the first block | [6,144] | 6,144 |
| Dense blocks, local attention (layers 0–1): model.layers.N.… | ||
attn.wq_du.weight | [8,192, 6,144] | 50,331,648 |
attn.wk_dv.weight | [2,048, 6,144] | 12,582,912 |
attn.wv_dv.weight | [2,048, 6,144] | 12,582,912 |
attn.wo_ud.weight | [6,144, 8,192] | 50,331,648 |
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 | [2,048, 1, 4] | 8,192 |
attn.v_sconv.weight | [2,048, 1, 4] | 8,192 |
attn.wr_du.weightper-head features for the relative-position score | [1,024, 6,144] | 6,291,456 |
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 | [49,152, 6,144] | 301,989,888 |
mlp.w2_md.weight | [6,144, 24,576] | 150,994,944 |
mlp.global_scaleone learned scale | [1] | 1 |
attn_norm.weight | [6,144] | 6,144 |
mlp_norm.weight | [6,144] | 6,144 |
attn_sconv.weightdepthwise convolution before attention | [6,144, 1, 4] | 24,576 |
mlp_sconv.weightand before the FFN | [6,144, 1, 4] | 24,576 |
| MoE blocks, local attention (53 layers): model.layers.N.… | ||
attn.wq_du.weight | [8,192, 6,144] | 50,331,648 |
attn.wk_dv.weight | [2,048, 6,144] | 12,582,912 |
attn.wv_dv.weight | [2,048, 6,144] | 12,582,912 |
attn.wo_ud.weight | [6,144, 8,192] | 50,331,648 |
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 | [2,048, 1, 4] | 8,192 |
attn.v_sconv.weight | [2,048, 1, 4] | 8,192 |
attn.wr_du.weightper-head features for the relative-position score | [1,024, 6,144] | 6,291,456 |
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, 6,144] | 1,585,152 |
mlp.gate.biasFP32 | [256] | 256 |
mlp.gate.global_scaleFP32 | [1] | 1 |
mlp.experts.w13_weightevery expert's gate and up, one tensor | 256 × [6,144, 6,144] | 9,663,676,416 |
mlp.experts.w2_weight | 256 × [6,144, 3,072] | 4,831,838,208 |
mlp.shared_experts.shared_w13_weightshared experts: run for every token | [2, 6,144, 6,144] | 75,497,472 |
mlp.shared_experts.shared_w2_weight | [2, 6,144, 3,072] | 37,748,736 |
attn_norm.weight | [6,144] | 6,144 |
mlp_norm.weight | [6,144] | 6,144 |
attn_sconv.weightdepthwise convolution before attention | [6,144, 1, 4] | 24,576 |
mlp_sconv.weightand before the FFN | [6,144, 1, 4] | 24,576 |
| MoE blocks, global attention (every 6th: layers 5, 11, …, 65): model.layers.N.… | ||
attn.wq_du.weight | [8,192, 6,144] | 50,331,648 |
attn.wk_dv.weight | [1,024, 6,144] | 6,291,456 |
attn.wv_dv.weight | [1,024, 6,144] | 6,291,456 |
attn.wo_ud.weight | [6,144, 8,192] | 50,331,648 |
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 | [1,024, 6,144] | 6,291,456 |
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, 6,144] | 1,585,152 |
mlp.gate.biasFP32 | [256] | 256 |
mlp.gate.global_scaleFP32 | [1] | 1 |
mlp.experts.w13_weightevery expert's gate and up, one tensor | 256 × [6,144, 6,144] | 9,663,676,416 |
mlp.experts.w2_weight | 256 × [6,144, 3,072] | 4,831,838,208 |
mlp.shared_experts.shared_w13_weightshared experts: run for every token | [2, 6,144, 6,144] | 75,497,472 |
mlp.shared_experts.shared_w2_weight | [2, 6,144, 3,072] | 37,748,736 |
attn_norm.weight | [6,144] | 6,144 |
mlp_norm.weight | [6,144] | 6,144 |
attn_sconv.weightdepthwise convolution before attention | [6,144, 1, 4] | 24,576 |
mlp_sconv.weightand before the FFN | [6,144, 1, 4] | 24,576 |
| After the last block | ||
model.llm.norm.weightfinal norm | [6,144] | 6,144 |
model.llm.unembed.weightthe output head | [201,024, 6,144] | 1,235,091,456 |
| 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 | [6,144, 9,600] | 58,982,400 |
model.visual.final_norm.weight | [6,144] | 6,144 |
| Audio encoder | ||
model.audio.encoder.weight | [1,280, 6,144] | 7,864,320 |
model.audio.final_norm.weight | [6,144] | 6,144 |
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 6,144
- L
- layers 66
- H
- query heads 64
- K
- key/value heads 8
- h
- head size 128
- f
- FFN hidden size 24,576
- E
- routed experts 256
- k
- experts per token 6
- f_e
- expert FFN size 3,072
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 (53 layers), ×53
4. MoE blocks, global attention (every 6th: layers 5, 11, …, 65), ×11
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 56,623,104 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 952,377,623,626 parameters in the thinkingmachines/Inkling 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 × 41,055,900,226 = 82.1 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 | 82.1 GFLOPs | 2.4 GFLOPs | 84.5 GFLOPs |
| 32K | 82.1 GFLOPs | 12.7 GFLOPs | 94.8 GFLOPs |
| 128K | 82.1 GFLOPs | 48.2 GFLOPs | 130.3 GFLOPs |
| 1024K | 82.1 GFLOPs | 378.9 GFLOPs | 461.0 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 vs DeepSeek-V3.2 · Inkling vs Kimi K2 · Inkling vs GLM-5.2 · Compare with any model →
Close in size: Ling-1T 1000B · Kimi K2 1.03T · GLM-5.2 743B · DeepSeek-V3.2 672B · DeepSeek-V3 671B
Source
Read from thinkingmachines/Inkling, fetched 2026-12-03. The model card gives 975B total and 41B active; the safetensors files hold 952.4B (language model, MTP layers and encoders), which is what the arithmetic here reproduces. The card does not say what its figure counts.