deepseek-ai · text

deepseek-coder-7b-instruct-v1.5

deepseek-ai/deepseek-coder-7b-instruct-v1.5

deepseek-coder-7b-instruct-v1.5 at Q4_K_M is exactly 4,223,359,872 bytes (3.93 GiB / 4.22 GB) — an effective 4.889 bits per weight, not the nominal 4. Its KV cache at 32K is 15.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
6.9B
Architecture
llama
30 layers
Context
4,096
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S1.61 GiB1,733,033,0882.006mradermacher
I1-IQ1_M1.72 GiB1,848,564,8642.140mradermacher
I1-IQ2_XXS1.90 GiB2,041,117,8242.363mradermacher
I1-IQ2_XS2.06 GiB2,210,888,8322.559mradermacher
I1-IQ2_S2.23 GiB2,389,122,1762.766mradermacher
I1-IQ2_M2.37 GiB2,543,164,5442.944mradermacher
Q2_K2.53 GiB2,718,423,9363.147Edmon02
Q2_K2.53 GiB2,718,423,9363.147mradermacher
I1-Q2_K2.53 GiB2,718,424,1923.147mradermacher
I1-IQ3_XXS2.57 GiB2,758,401,1523.193mradermacher
IQ3_XS2.79 GiB2,993,609,6003.466mradermacher
IQ3_XS2.79 GiB2,993,609,6003.466Edmon02
I1-IQ3_XS2.79 GiB2,993,609,8563.466mradermacher
Q3_K_S2.92 GiB3,138,018,1763.633Edmon02
IQ3_S2.92 GiB3,138,018,1763.633mradermacher
Q3_K_S2.92 GiB3,138,018,1763.633mradermacher
IQ3_S2.92 GiB3,138,018,1763.633Edmon02
I1-Q3_K_S2.92 GiB3,138,018,4323.633mradermacher
I1-IQ3_S2.92 GiB3,138,018,4323.633mradermacher
IQ3_M3.06 GiB3,289,676,6723.808mradermacher
IQ3_M3.06 GiB3,289,676,6723.808Edmon02
I1-IQ3_M3.06 GiB3,289,676,9283.808mradermacher
Q3_K_M3.22 GiB3,461,192,5764.007mradermacher
Q3_K_M3.22 GiB3,461,192,5764.007Edmon02
I1-Q3_K_M3.22 GiB3,461,192,8324.007mradermacher
Q3_K_L3.49 GiB3,746,274,1764.337mradermacher
Q3_K_L3.49 GiB3,746,274,1764.337Edmon02
I1-Q3_K_L3.49 GiB3,746,274,4324.337mradermacher
I1-IQ4_XS3.54 GiB3,797,228,6724.396mradermacher
IQ4_XS3.56 GiB3,818,363,7764.420Edmon02
IQ4_XS3.56 GiB3,818,363,7764.420mradermacher
I1-Q4_03.73 GiB4,008,516,7364.641mradermacher
Q4_K_S3.75 GiB4,025,359,2324.660mradermacher
Q4_K_S3.75 GiB4,025,359,2324.660Edmon02
I1-Q4_K_S3.75 GiB4,025,359,4884.660mradermacher
Q4_K_M3.93 GiB4,223,359,8724.889Edmon02
Q4_K_M3.93 GiB4,223,359,8724.889mradermacher
I1-Q4_K_M3.93 GiB4,223,360,1284.889mradermacher
Q5_K_S4.48 GiB4,811,398,0165.570mradermacher
Q5_K_S4.48 GiB4,811,398,0165.570Edmon02

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0961.88 GiB1.88 GiB30 / 0 / 0
8,1923.75 GiB3.75 GiB30 / 0 / 0
16,3847.50 GiB7.50 GiB30 / 0 / 0
32,76815.00 GiB15.00 GiB30 / 0 / 0
65,53630.00 GiB30.00 GiB30 / 0 / 0
131,07260.00 GiB60.00 GiB30 / 0 / 0

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 3.62 GiB. The real file is 3.93 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
30
Attention heads
32
KV heads
32
Head dim
128
Hidden size
4096
Vocab
102,400
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does deepseek-coder-7b-instruct-v1.5 need?
Q4_K_M is exactly 4,223,359,872 bytes (3.93 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-coder-7b-instruct-v1.5's KV cache?
15.00 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.
Which quantization of deepseek-coder-7b-instruct-v1.5 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.