deepseek-ai · text

deepseek-coder-1.3b-base

deepseek-ai/deepseek-coder-1.3b-base

deepseek-coder-1.3b-base at Q4_K_M is exactly 873,453,568 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
IQ1_S0.40 GiB424,818,6882.524bartowski
IQ1_M0.41 GiB442,218,4962.627bartowski
IQ2_XXS0.44 GiB471,218,1762.800bartowski
IQ2_XS0.46 GiB497,563,6482.956bartowski
IQ2_S0.49 GiB528,652,2883.141bartowski
IQ2_M0.51 GiB551,852,0323.279bartowski
Q2_K0.52 GiB559,716,3523.325bartowski
Q2_K0.52 GiB559,716,8323.325QuantFactory
IQ3_XXS0.54 GiB580,950,0163.452bartowski
IQ3_XS0.57 GiB613,365,7603.644bartowski
Q2_K0.59 GiB631,705,6323.753TheBloke
Q3_K_S0.60 GiB641,824,7683.813bartowski
IQ3_S0.60 GiB641,824,7683.813bartowski
Q3_K_S0.60 GiB641,825,2483.813QuantFactory
Q3_K_S0.61 GiB658,862,1123.915TheBloke
IQ3_M0.63 GiB672,790,5283.997bartowski
Q3_K_M0.66 GiB704,133,1204.184bartowski
Q3_K_M0.66 GiB704,133,6004.184QuantFactory
Q3_K_M0.66 GiB704,966,6884.189TheBloke
IQ4_XS0.69 GiB744,380,4164.423bartowski
Q3_K_L0.69 GiB744,454,1444.423bartowski
Q3_K_L0.69 GiB744,454,6244.423QuantFactory
Q3_K_L0.69 GiB744,583,2004.424TheBloke
IQ4_NL0.72 GiB775,936,0004.610bartowski
Q4_00.72 GiB775,936,4804.610QuantFactory
Q4_00.72 GiB776,065,0564.611TheBloke
Q4_K_S0.76 GiB813,963,2644.836bartowski
Q4_K_S0.76 GiB813,963,7444.836QuantFactory
Q4_K_S0.76 GiB814,796,8324.841TheBloke
Q4_10.80 GiB855,955,9365.086QuantFactory
Q4_K_M0.81 GiB873,453,5685.190bartowski
Q4_K_M0.81 GiB873,454,0485.190QuantFactory
Q4_K_M0.81 GiB873,582,6245.190TheBloke
Q5_00.87 GiB935,975,3925.561QuantFactory
Q5_00.87 GiB936,103,9685.562TheBloke
Q5_K_S0.89 GiB952,883,2005.662bartowski
Q5_K_S0.89 GiB952,883,6805.662QuantFactory
Q5_K_S0.89 GiB953,012,2565.662TheBloke
Q5_K_M0.93 GiB1,001,838,5925.952bartowski
Q5_K_M0.93 GiB1,001,839,0725.952QuantFactory

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-base need?
Q4_K_M is exactly 873,453,568 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-base'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-base 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.