deepseek-ai · text · mixture of experts

DeepSeek-V3.1-Terminus

deepseek-ai/DeepSeek-V3.1-Terminus

DeepSeek-V3.1-Terminus at Q4_K_M is exactly 404,494,158,624 bytes (376.71 GiB / 404.49 GB) — an effective 4.727 bits per weight, not the nominal 4. Its KV cache at 32K is 2.14 GiB.

From the file· summed from 31 file(s)From the file· KV per layer
Parameters
685B
total, not active
Architecture
deepseek2
61 layers
Context
163,840
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_M4 shards137.32 GiB147,448,002,3681.723bartowski
IQ1_M12 shards138.82 GiB149,058,761,4721.742DevQuasar
UD-TQ1_0151.97 GiB163,172,466,5601.907unsloth
IQ2_XXS5 shards152.79 GiB164,057,003,9681.917bartowski
IQ2_XXS13 shards162.59 GiB174,584,078,6562.040DevQuasar
UD-IQ1_S4 shards173.84 GiB186,660,569,4082.182unsloth
IQ2_XS5 shards175.47 GiB188,407,101,3762.202bartowski
IQ2_S5 shards176.61 GiB189,630,566,3362.216bartowski
IQ2_XS15 shards181.82 GiB195,228,203,6162.282DevQuasar
UD-IQ1_M5 shards187.19 GiB200,990,474,6882.349unsloth
IQ2_M6 shards200.27 GiB215,037,628,4802.513bartowski
UD-IQ2_XXS5 shards202.23 GiB217,141,510,6242.538unsloth
UD-IQ2_M5 shards213.17 GiB228,885,561,7922.675unsloth
Q2_K7 shards221.50 GiB237,834,514,5922.780bartowski
Q2_K_L7 shards222.34 GiB238,739,474,5602.790bartowski
Q2_K20 shards227.38 GiB244,148,281,5362.853DevQuasar
Q2_K5 shards228.82 GiB245,696,582,1122.871unsloth
Q2_K_L5 shards229.03 GiB245,913,772,5122.874unsloth
IQ3_XXS7 shards249.25 GiB267,630,858,4323.128bartowski
UD-IQ3_XXS6 shards254.71 GiB273,496,801,8883.196unsloth
IQ3_XS8 shards258.11 GiB277,146,192,1923.239bartowski
Q3_K_S6 shards270.50 GiB290,448,357,8883.394unsloth
Q3_K_S8 shards273.21 GiB293,352,982,8163.428bartowski
IQ3_M8 shards286.74 GiB307,880,167,7443.598bartowski
Q3_K_M8 shards286.78 GiB307,929,712,9603.599bartowski
Q3_K_M25 shards297.34 GiB319,266,363,8723.731DevQuasar
Q3_K_L9 shards297.75 GiB319,705,876,9603.736bartowski
Q3_K_M7 shards298.44 GiB320,451,082,9443.745unsloth
IQ4_XS8 shards333.74 GiB358,347,326,2084.188unsloth
IQ4_XS10 shards335.26 GiB359,980,474,9124.207bartowski
IQ4_NL8 shards353.10 GiB379,135,951,6484.431unsloth
Q4_08 shards354.00 GiB380,100,248,3524.442unsloth
IQ4_NL10 shards354.35 GiB380,481,241,6004.447bartowski
Q4_K_S8 shards354.89 GiB381,064,545,0564.453unsloth
Q4_010 shards359.88 GiB386,422,080,0004.516bartowski
Q4_K_S11 shards367.08 GiB394,153,886,4004.606bartowski
Q4_K_M31 shards376.71 GiB404,494,158,6244.727DevQuasar
Q4_K_M9 shards377.56 GiB405,398,012,8644.738unsloth
Q4_K_M11 shards381.12 GiB409,227,727,5204.783bartowski
Q4_19 shards391.87 GiB420,771,120,0644.918unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.27 GiB19.06 GiB71.11×61 / 0 / 0
8,1920.54 GiB38.13 GiB71.11×61 / 0 / 0
16,3841.07 GiB76.25 GiB71.11×61 / 0 / 0
32,7682.14 GiB152.50 GiB71.11×61 / 0 / 0
65,5364.29 GiB305.00 GiB71.11×61 / 0 / 0
131,0728.58 GiB610.00 GiB71.11×61 / 0 / 0

This model uses multi-head latent attention. No V cache is allocated at all, and the K cache stores a 512-wide latent plus 64 rope dimensions — so reading num_key_value_heads from config.json and multiplying, as every calculator does, overstates the cache by well over an order of magnitude.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 358.60 GiB. The real file is 376.71 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: this model allocates no value cache at all, so any formula reading num_key_value_heads overstates it by more than an order of magnitude.

Architecture

from config.json
Layers
61
Attention heads
128
KV heads
128
Head dim
192
Hidden size
7168
Vocab
129,280
Sliding window
none
SWA period
MLA
yes
Experts
256
Experts per token
8
use_sliding_window

Questions people ask

How much VRAM does DeepSeek-V3.1-Terminus need?
Q4_K_M is exactly 404,494,158,624 bytes (376.71 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is DeepSeek-V3.1-Terminus's KV cache?
2.14 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Is DeepSeek-V3.1-Terminus a mixture-of-experts model?
Yes — 256 experts, 8 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of DeepSeek-V3.1-Terminus should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.