deepseek-ai · text

deepseek-coder-6.7b-instruct

deepseek-ai/deepseek-coder-6.7b-instruct

deepseek-coder-6.7b-instruct at Q4_K_M is exactly 4,083,015,904 bytes (3.80 GiB / 4.08 GB) — an effective 4.846 bits per weight, not the nominal 4. Its KV cache at 32K is 16.00 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K2.36 GiB2,534,630,3363.008second-state
Q2_K2.63 GiB2,827,706,5923.356TheBloke
Q2_K2.63 GiB2,827,706,5923.356Dzluck
Q3_K_S2.75 GiB2,950,176,9923.501Dzluck
Q3_K_S2.75 GiB2,950,176,9923.501TheBloke
Q3_K_S2.75 GiB2,950,177,7283.501second-state
Q3_K_M3.07 GiB3,299,877,0883.917TheBloke
Q3_K_M3.07 GiB3,299,877,0883.917Dzluck
Q3_K_M3.07 GiB3,299,877,8243.917second-state
Q3_K_L3.35 GiB3,598,983,3924.271TheBloke
Q3_K_L3.35 GiB3,598,983,3924.271Dzluck
Q3_K_L3.35 GiB3,598,984,1284.271second-state
Q4_03.56 GiB3,827,818,7204.543TheBloke
Q4_03.56 GiB3,827,818,7204.543Dzluck
Q4_03.56 GiB3,827,819,4564.543second-state
Q4_K_S3.59 GiB3,858,751,7124.580Dzluck
Q4_K_S3.59 GiB3,858,751,7124.580TheBloke
Q4_K_S3.59 GiB3,858,752,4484.580second-state
Q4_K_M3.80 GiB4,083,015,9044.846Dzluck
Q4_K_M3.80 GiB4,083,015,9044.846TheBloke
Q4_K_M3.80 GiB4,083,016,6404.846second-state
Q5_04.33 GiB4,653,834,4645.523TheBloke
Q5_K_S4.33 GiB4,653,834,4645.523TheBloke
Q5_04.33 GiB4,653,834,4645.523Dzluck
Q5_K_S4.33 GiB4,653,834,4645.523Dzluck
Q5_K_S4.33 GiB4,653,835,2005.523second-state
Q5_04.33 GiB4,653,835,2005.523second-state
Q5_K_M4.46 GiB4,785,299,6805.679Dzluck
Q5_K_M4.46 GiB4,785,299,6805.679TheBloke
Q5_K_M4.46 GiB4,785,300,4165.679second-state
Q6_K5.15 GiB5,531,476,1926.565Dzluck
Q6_K5.15 GiB5,531,476,1926.565TheBloke
Q6_K5.15 GiB5,531,476,9286.565second-state
Q8_06.67 GiB7,163,879,6488.502TheBloke
Q8_06.67 GiB7,163,879,6488.502Dzluck
Q8_06.67 GiB7,163,880,3848.502second-state

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0962.00 GiB2.00 GiB32 / 0 / 0
8,1924.00 GiB4.00 GiB32 / 0 / 0
16,3848.00 GiB8.00 GiB32 / 0 / 0
32,76816.00 GiB16.00 GiB32 / 0 / 0
65,53632.00 GiB32.00 GiB32 / 0 / 0
131,07264.00 GiB64.00 GiB32 / 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.53 GiB. The real file is 3.80 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
32
KV heads
32
Head dim
128
Hidden size
4096
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-6.7b-instruct need?
Q4_K_M is exactly 4,083,015,904 bytes (3.80 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-6.7b-instruct's KV cache?
16.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-6.7b-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.