DeepSeek · 3B to 9B

DeepSeek Coder 6.7B Instruct

6.74 billion parameters across 32 layers. At four-bit precision the weights alone come to 3.79 GB, before any conversation is loaded. This one is cache-hungry: a 32k window adds 16.0 GB on top, so context length matters more here than the model size suggests.

Coding
Parameters6.74B
Layers32
KV heads32 / 32
Native context16k
Vocabulary32k

About DeepSeek Coder 6.7B Instruct

A 6.7B code model from DeepSeek, older now, with a permissive license for most uses. It keeps all its attention heads, so its cache is much larger than newer models of the same size.

DeepSeek Coder 6.7B Instruct is a dense model with 6.74B parameters, built from 32 layers with a hidden size of 4096. Its repository was published on 2023-10-29. The license listed on Hugging Face is other. It keeps one KV pair for every attention head, so its cache is large for its size.

Memory needed, by quantization

At an 8k context window. Quality is our rough ranking of how much the compression costs you: anything at or above Q5 is hard to tell apart from the original in normal use.

Quantization File size KV cache Total VRAM Quality What it costs you
Q8_0 6.67 GB 4 GB 10.94 GB 99% Lossless in practice. Use it when the memory is there.
Q6_K 5.15 GB 4 GB 9.45 GB 98% Very close to Q8 for two thirds of the size.
Q5_K_M 4.46 GB 4 GB 8.78 GB 96% The quality-first choice when Q6 will not fit.
Q4_K_M 3.79 GB 4 GB 8.12 GB 93% The default. Best size-to-quality ratio for local use.
IQ4_XS 3.33 GB 4 GB 7.67 GB 91% Importance-matrix 4-bit. Q4_K_S quality, smaller file.
Q3_K_M 3.07 GB 4 GB 7.41 GB 86% Degradation starts to show. A way to fit one size up.
IQ3_XXS 2.4 GB 4 GB 6.76 GB 79% Aggressive. Only worth it on very large models.

What a longer conversation costs

Same model at Q4_K_M, only the context window changes. The cache grows in a straight line with every token in the window.

ContextKV cacheTotal VRAMFits in 8 GBFits in 12 GBFits in 24 GB
4k 2 GB 6.12 GB yes yes yes
8k 4 GB 8.12 GB no yes yes
16k 8 GB 12.12 GB no no yes

The "fits" columns allow for the roughly 0.8 GB Windows keeps for the desktop.

Which hardware runs DeepSeek Coder 6.7B Instruct

95 of 118 consumer devices run it at a quantization worth using, at an 8k context window. Another 11 can load it only by compressing the weights far enough to damage the model, marked with a warning below.

DeviceMemoryVerdictQuantizationUsedSpeed
GeForce RTX 5090
NVIDIA
32 GB Runs great Q8_0 10.94 GB 125.1 t/s
RTX PRO 6000 Blackwell
NVIDIA
96 GB Runs great Q8_0 10.94 GB 125.1 t/s
GeForce RTX 4090
NVIDIA
24 GB Runs great Q8_0 10.94 GB 70.4 t/s
GeForce RTX 3090 Ti
NVIDIA
24 GB Runs great Q8_0 10.94 GB 70.4 t/s
GeForce RTX 5080
NVIDIA
16 GB Runs great Q8_0 10.94 GB 67 t/s
RTX 6000 Ada Generation
NVIDIA
48 GB Runs great Q8_0 10.94 GB 67 t/s
GeForce RTX 3090
NVIDIA
24 GB Runs great Q8_0 10.94 GB 65.3 t/s
GeForce RTX 3080 Ti
NVIDIA
12 GB Just fits Q8_0 10.94 GB 63.7 t/s
GeForce RTX 3080 12GB
NVIDIA
12 GB Just fits Q8_0 10.94 GB 63.7 t/s
GeForce RTX 5070 Ti
NVIDIA
16 GB Runs great Q8_0 10.94 GB 62.6 t/s
GeForce RTX 5090 Laptop
NVIDIA
24 GB Runs great Q8_0 10.94 GB 62.6 t/s
Radeon RX 7900 XTX
AMD
24 GB Runs great Q8_0 10.94 GB 56.8 t/s
GeForce RTX 5080 Laptop
NVIDIA
16 GB Runs great Q8_0 10.94 GB 53.6 t/s
RTX A6000
NVIDIA
48 GB Runs great Q8_0 10.94 GB 53.6 t/s
RTX A5000
NVIDIA
24 GB Runs great Q8_0 10.94 GB 53.6 t/s
Apple M3 Ultra 96GB
Apple
96 GB Runs great Q8_0 11.04 GB 52.8 t/s
Apple M3 Ultra 256GB
Apple
256 GB Runs great Q8_0 11.04 GB 52.8 t/s
Apple M3 Ultra 512GB
Apple
512 GB Runs great Q8_0 11.04 GB 52.8 t/s
Apple M1 Ultra 64GB
Apple
64 GB Runs great Q8_0 11.04 GB 51.6 t/s
Apple M1 Ultra 128GB
Apple
128 GB Runs great Q8_0 11.04 GB 51.6 t/s
Apple M2 Ultra 64GB
Apple
64 GB Runs great Q8_0 11.04 GB 51.6 t/s
Apple M2 Ultra 128GB
Apple
128 GB Runs great Q8_0 11.04 GB 51.6 t/s
Apple M2 Ultra 192GB
Apple
192 GB Runs great Q8_0 11.04 GB 51.6 t/s
GeForce RTX 4080 SUPER
NVIDIA
16 GB Runs great Q8_0 10.94 GB 51.4 t/s
Radeon PRO W7900
AMD
48 GB Runs great Q8_0 10.94 GB 51.2 t/s
Show 35 more devices
GeForce RTX 4080
NVIDIA
16 GB Runs great Q8_0 10.94 GB 50.1 t/s
Radeon RX 7900 XT
AMD
20 GB Runs great Q8_0 10.94 GB 47.4 t/s
GeForce RTX 5070
NVIDIA
12 GB Just fits Q8_0 10.94 GB 46.9 t/s
GeForce RTX 4070 Ti SUPER
NVIDIA
16 GB Runs great Q8_0 10.94 GB 46.9 t/s
GeForce RTX 4090 Laptop
NVIDIA
16 GB Runs great Q8_0 10.94 GB 40.2 t/s
Radeon RX 9070 XT
AMD
16 GB Runs great Q8_0 10.94 GB 38.2 t/s
Radeon RX 9070
AMD
16 GB Runs great Q8_0 10.94 GB 38.2 t/s
Radeon RX 7800 XT
AMD
16 GB Runs great Q8_0 10.94 GB 36.9 t/s
GeForce RTX 4070 Ti
NVIDIA
12 GB Just fits Q8_0 10.94 GB 35.2 t/s
GeForce RTX 4070 SUPER
NVIDIA
12 GB Just fits Q8_0 10.94 GB 35.2 t/s
GeForce RTX 4070
NVIDIA
12 GB Just fits Q8_0 10.94 GB 35.2 t/s
Apple M4 Max 36GB
Apple
36 GB Runs great Q8_0 11.04 GB 35.2 t/s
Apple M4 Max 48GB
Apple
48 GB Runs great Q8_0 11.04 GB 35.2 t/s
Apple M4 Max 64GB
Apple
64 GB Runs great Q8_0 11.04 GB 35.2 t/s
Apple M4 Max 128GB
Apple
128 GB Runs great Q8_0 11.04 GB 35.2 t/s
Radeon RX 7900 GRE
AMD
16 GB Runs great Q8_0 10.94 GB 34.1 t/s
GeForce RTX 5060 Ti 16GB
NVIDIA
16 GB Runs great Q8_0 10.94 GB 31.3 t/s
RTX A4000
NVIDIA
16 GB Runs great Q8_0 10.94 GB 31.3 t/s
Radeon RX 6900 XT
AMD
16 GB Runs great Q8_0 10.94 GB 30.3 t/s
Radeon RX 6800
AMD
16 GB Runs great Q8_0 10.94 GB 30.3 t/s
GeForce RTX 4080 Laptop
NVIDIA
12 GB Just fits Q8_0 10.94 GB 30.2 t/s
Arc A770 16GB
Intel
16 GB Runs great Q8_0 10.94 GB 30.2 t/s
Apple M1 Max 32GB
Apple
32 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M1 Max 64GB
Apple
64 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M2 Max 32GB
Apple
32 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M2 Max 64GB
Apple
64 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M2 Max 96GB
Apple
96 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M3 Max 36GB
Apple
36 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M3 Max 48GB
Apple
48 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M3 Max 64GB
Apple
64 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M3 Max 96GB
Apple
96 GB Runs great Q8_0 11.04 GB 25.8 t/s
Apple M3 Max 128GB
Apple
128 GB Runs great Q8_0 11.04 GB 25.8 t/s
Radeon RX 7700 XT
AMD
12 GB Just fits Q8_0 10.94 GB 25.6 t/s
GeForce RTX 3060 12GB
NVIDIA
12 GB Just fits Q8_0 10.94 GB 25.1 t/s
Arc B580
Intel
12 GB Just fits Q8_0 10.94 GB 24.6 t/s

How it compares

Other models in the same family or of a similar size, on a 12 GB card and a 24 GB card, each at the best quantization that fits.

ModelWeights at 4 bitsGeForce RTX 3060 12GBGeForce RTX 4090
DeepSeek Coder 6.7B Instruct 3.8 GB 25.1 t/s at Q8_070.4 t/s at Q8_0
DeepSeek Coder 7B Instruct V1.5 3.9 GB 26 t/s at Q8_072.9 t/s at Q8_0
DeepSeek Coder V2 Lite Instruct 8.8 GB 75.7 t/s at Q5_K_M147.7 t/s at Q8_0
DeepSeek R1 384.9 GB does not fit welldoes not fit well
Qwen3 8B 4.6 GB 30.8 t/s at Q8_086.1 t/s at Q8_0
Qwen3.5 9B 5.4 GB 30 t/s at Q8_083.9 t/s at Q8_0

What to buy to run DeepSeek Coder 6.7B Instruct

The cheapest hardware that runs it at a quantization worth using and a speed you would not resent, at an 8k context window.

DevicePriceMemoryRuns it atSpeed
GeForce GTX 1080 Ti
NVIDIA
$150 used 11 GB Q6_K 39.4 t/s Check price
GeForce RTX 2060 12GB
NVIDIA
$160 used 12 GB Q8_0 23.5 t/s Check price
GeForce RTX 2080 Ti
NVIDIA
$250 used 11 GB Q6_K 50.1 t/s Check price
Arc A770 16GB
Intel
$280 used 16 GB Q8_0 30.2 t/s Check price
GeForce RTX 3080 10GB
NVIDIA
$350 used 10 GB Q5_K_M 66.7 t/s Check price
Radeon RX 7900 XT
AMD
$650 20 GB Q8_0 47.4 t/s Check price
GeForce RTX 3090
NVIDIA
$700 used 24 GB Q8_0 65.3 t/s Check price
GeForce RTX 3090 Ti
NVIDIA
$800 used 24 GB Q8_0 70.4 t/s Check price

Indicative prices reviewed 2026-09-01; used prices are marketplace typical. Options that cost more than a cheaper one with no more memory and no more speed are hidden. Price links are Amazon affiliate links. Change the standard, the context window or the budget in the buying tool.

Where it sits in the catalog

Source: deepseek-ai/deepseek-coder-6.7b-instruct on Hugging Face. Downloaded 396k times in the last month. Published 2023-10-29. Architecture figures are read from the repository's own configuration file, so they move when the model does.

Questions people ask about DeepSeek Coder 6.7B Instruct

How much VRAM does DeepSeek Coder 6.7B Instruct need?

At Q4_K_M with an 8k context window, DeepSeek Coder 6.7B Instruct needs about 8.12 GB: 3.72 GB of weights, 4 GB of KV cache and 0.41 GB of overhead. At the highest-quality file it needs about 10.94 GB.

What is the cheapest GPU that runs DeepSeek Coder 6.7B Instruct?

The smallest consumer device in our catalog that fits it is the GeForce RTX 3080 10GB with 10 GB, running it at Q5_K_M at roughly 66.7 tokens per second.

How much does a longer context window add for DeepSeek Coder 6.7B Instruct?

On the memory side, a 32k window adds 16.0 GB of KV cache on top of the weights, and the cache grows in a straight line with every token. The longest window the model supports natively is 16k tokens.