deepseek-ai · text

deepseek-coder-1.3b-instruct

deepseek-ai/deepseek-coder-1.3b-instruct

deepseek-coder-1.3b-instruct at Q4_K_M is exactly 873,455,136 bytes (0.81 GiB / 0.87 GB) — an effective 5.190 bits per weight, not the nominal 4. Its KV cache at 32K is 6.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
1.3B
Architecture
llama
24 layers
Context
16,384
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S0.40 GiB424,820,5122.524mradermacher
I1-IQ1_M0.41 GiB442,220,3202.627mradermacher
I1-IQ2_XXS0.44 GiB471,220,0002.800mradermacher
I1-IQ2_XS0.46 GiB497,565,4722.956mradermacher
I1-IQ2_S0.49 GiB528,654,1123.141mradermacher
I1-IQ2_M0.51 GiB551,853,8563.279mradermacher
Q2_K0.52 GiB559,717,9203.325mradermacher
I1-Q2_K0.52 GiB559,718,1763.325mradermacher
I1-IQ3_XXS0.54 GiB580,951,8403.452mradermacher
IQ3_XS0.57 GiB613,367,3283.644mradermacher
I1-IQ3_XS0.57 GiB613,367,5843.644mradermacher
Q2_K0.59 GiB631,705,6323.753TheBloke
IQ3_S0.60 GiB641,826,3363.813mradermacher
Q3_K_S0.60 GiB641,826,3363.813mradermacher
I1-Q3_K_S0.60 GiB641,826,5923.813mradermacher
I1-IQ3_S0.60 GiB641,826,5923.813mradermacher
Q3_K_S0.61 GiB658,862,1123.915TheBloke
IQ3_M0.63 GiB672,792,0963.997mradermacher
I1-IQ3_M0.63 GiB672,792,3523.997mradermacher
Q3_K_M0.66 GiB704,134,6884.184mradermacher
I1-Q3_K_M0.66 GiB704,134,9444.184mradermacher
Q3_K_M0.66 GiB704,966,6884.189TheBloke
I1-IQ4_XS0.69 GiB744,382,2404.423mradermacher
Q3_K_L0.69 GiB744,455,7124.423mradermacher
I1-Q3_K_L0.69 GiB744,455,9684.423mradermacher
Q3_K_L0.69 GiB744,583,2004.424TheBloke
IQ4_XS0.70 GiB750,722,5924.460mradermacher
Q4_00.72 GiB776,065,0564.611TheBloke
I1-Q4_00.72 GiB778,051,3604.623mradermacher
Q4_K_S0.76 GiB813,964,8324.836mradermacher
I1-Q4_K_S0.76 GiB813,965,0884.836mradermacher
Q4_K_S0.76 GiB814,796,8324.841TheBloke
Q4_K_M0.81 GiB873,455,1365.190mradermacher
I1-Q4_K_M0.81 GiB873,455,3925.190mradermacher
Q4_K_M0.81 GiB873,582,6245.190TheBloke
Q5_00.87 GiB936,103,9685.562TheBloke
Q5_K_S0.89 GiB952,884,7685.662mradermacher
I1-Q5_K_S0.89 GiB952,885,0245.662mradermacher
Q5_K_S0.89 GiB953,012,2565.662TheBloke
Q5_K_M0.93 GiB1,001,840,1605.952mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.75 GiB0.75 GiB24 / 0 / 0
8,1921.50 GiB1.50 GiB24 / 0 / 0
16,3843.00 GiB3.00 GiB24 / 0 / 0
32,7686.00 GiB6.00 GiB24 / 0 / 0
65,53612.00 GiB12.00 GiB24 / 0 / 0
131,07224.00 GiB24.00 GiB24 / 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 0.71 GiB. The real file is 0.81 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
24
Attention heads
16
KV heads
16
Head dim
128
Hidden size
2048
Vocab
32,256
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does deepseek-coder-1.3b-instruct need?
Q4_K_M is exactly 873,455,136 bytes (0.81 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-1.3b-instruct's KV cache?
6.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-1.3b-instruct 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.