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.

947Bparameters
41.1Bactive per token
1.89 TBBF16 weights
474 GB4-bit weights
495.6 KBKV per token

Part of the Inkling family: 264B · 947B

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

Architecture

ArchitectureInklingForConditionalGeneration
Layers (L)66
Hidden size (d)6,144
AttentionGQA (8 query heads share each KV head)
Heads64 query, 8 key/value, 128 each
Feed-forward256 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 embeddingsno: separate output head
Biasesnone
Extra normsRMSNorm on q and k (per head)
Max context1,048,576 tokens; 55 of 66 layers use a 512-token sliding window
Local layers64 query and 16 key/value heads of 128 (the global layers have 8 KV heads)
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, 91.6M 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
FP3243.79 TB3527.95 GiB
BF16 / FP1621.89 TB1763.97 GiB
INT8 / FP81947 GB881.99 GiB
INT40.5474 GB440.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.

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 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 memoryBF168-bit4-bit
80 GB1.9 TBtoo big1.01 TBtoo big537 GBtoo big
80 GB × n25 cards14 cards7 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

ContextKV cache, BF168-bit KVWith the sliding windowWeights + KV, BF16
4K2.0 GB1.0 GB415 MB1.9 TB
32K16.2 GB8.1 GB1.7 GB1.91 TB
128K65.0 GB32.5 GB6.1 GB1.96 TB
1024K (max)520 GB260 GB47.5 GB2.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).

TensorShapeParameters
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 tensor256 × [6,144, 6,144]9,663,676,416
mlp.experts.w2_weight256 × [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 tensor256 × [6,144, 6,144]9,663,676,416
mlp.experts.w2_weight256 × [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.

Embedding
V × d
201,024 × 6,144
= 1,235,091,456
Embedding norm
d
6,144
= 6,144

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
8,192 × 6,144 + 2 × (2,048 × 6,144) + 6,144 × 8,192 + 2 × 128 + 2 × (2,048 × 1 × 4) + 1,024 × 6,144 + 16 × 512
= 132,145,408
Feed-forward (SwiGLU)
2f × d + d × f + 1
49,152 × 6,144 + 6,144 × 24,576 + 1
= 452,984,833
Norms and short convolutions
2 × d + 2 × (d × 1 × k)
2 × 6,144 + 2 × (6,144 × 1 × 4)
= 61,440
One block
attention + feed-forward + norms and short convolutions
132,145,408 + 452,984,833 + 61,440
= 585,191,681
2 blocks
2 × block
2 × 585,191,681
= 1,170,383,362

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

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
8,192 × 6,144 + 2 × (2,048 × 6,144) + 6,144 × 8,192 + 2 × 128 + 2 × (2,048 × 1 × 4) + 1,024 × 6,144 + 16 × 512
= 132,145,408
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 × 6,144 + 256 + 1 + 256 × (6,144 × 6,144) + 256 × (6,144 × 3,072) + 2 × 6,144 × 6,144 + 2 × 6,144 × 3,072
= 14,610,346,241
Norms and short convolutions
2 × d + 2 × (d × 1 × k)
2 × 6,144 + 2 × (6,144 × 1 × 4)
= 61,440
One block
attention + mixture of experts + norms and short convolutions
132,145,408 + 14,610,346,241 + 61,440
= 14,742,553,089
53 blocks
53 × block
53 × 14,742,553,089
= 781,355,313,717

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

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
8,192 × 6,144 + 2 × (1,024 × 6,144) + 6,144 × 8,192 + 2 × 128 + 2 × (1,024 × 1 × 4) + 1,024 × 6,144 + 16 × 1,024
= 119,562,496
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 × 6,144 + 256 + 1 + 256 × (6,144 × 6,144) + 256 × (6,144 × 3,072) + 2 × 6,144 × 6,144 + 2 × 6,144 × 3,072
= 14,610,346,241
Norms and short convolutions
2 × d + 2 × (d × 1 × k)
2 × 6,144 + 2 × (6,144 × 1 × 4)
= 61,440
One block
attention + mixture of experts + norms and short convolutions
119,562,496 + 14,610,346,241 + 61,440
= 14,729,970,177
11 blocks
11 × block
11 × 14,729,970,177
= 162,029,671,947

5. Final norm and output head

Final norm + head
d + V × d
6,144 + 201,024 × 6,144
= 1,235,097,600

6. Total

Language model
embedding + norm + blocks + final
1,235,091,456 + 6,144 + 1,170,383,362 + 781,355,313,717 + 162,029,671,947 + 1,235,097,600
= 947,025,564,226

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.

Active
total − MoE blocks × (E − k) × expert
947,025,564,226 − 64 × 250 × 56,623,104
= 41,055,900,226

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 × 6,144 + 6,144 × 12,288
= 75,509,760
× 8
8 × the line above
8 × 75,509,760
= 604,078,080
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)
8,192 × 6,144 + 2 × (2,048 × 6,144) + 6,144 × 8,192 + 2 × 128 + 2 × (2,048 × 1 × 4) + 1,024 × 6,144 + 16 × 512 + 49,152 × 6,144 + 6,144 × 24,576 + 1 + 2 × 6,144 + 2 × (6,144 × 1 × 4)
= 585,191,681
× 6
6 × the line above
6 × 585,191,681
= 3,511,150,086
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)
8,192 × 6,144 + 2 × (1,024 × 6,144) + 6,144 × 8,192 + 2 × 128 + 2 × (1,024 × 1 × 4) + 1,024 × 6,144 + 16 × 1,024 + 49,152 × 6,144 + 6,144 × 24,576 + 1 + 2 × 6,144 + 2 × (6,144 × 1 × 4)
= 572,608,769
× 2
2 × the line above
2 × 572,608,769
= 1,145,217,538

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 + 6,144 × 9,600 + 6,144
128 × 75 + 128 + 320 × 512 + 320 + 4,800 × 5,120 + 4,800 + 6,144 × 9,600 + 6,144
= 83,743,232

Audio encoder

Audio encoder
1,280 × 6,144 + 6,144
1,280 × 6,144 + 6,144
= 7,870,464
Encoders
the parts above
83,743,232 + 7,870,464
= 91,613,696
In the checkpoint
language model + MTP + encoders
947,025,564,226 + 5,260,445,704 + 91,613,696
= 952,377,623,626

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 T2NAttentionTotal per token
4K82.1 GFLOPs2.4 GFLOPs84.5 GFLOPs
32K82.1 GFLOPs12.7 GFLOPs94.8 GFLOPs
128K82.1 GFLOPs48.2 GFLOPs130.3 GFLOPs
1024K82.1 GFLOPs378.9 GFLOPs461.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.