Qwen · 3B to 9B

Qwen2.5 Coder 7B Instruct

7.62 billion parameters across 28 layers. At four-bit precision the weights alone come to 4.28 GB, before any conversation is loaded. It uses grouped-query attention with 4 KV heads for 28 query heads, which cuts the cache to 14% of what full attention would need.

Coding
Parameters7.62B
Layers28
KV heads4 / 28
Native context32k
Vocabulary152k

About Qwen2.5 Coder 7B Instruct

Qwen2.5 Coder 7B Instruct is a dense model with 7.62B parameters, built from 28 layers with a hidden size of 3584. Its repository was published on 2024-09-17. The license listed on Hugging Face is apache-2.0. It uses grouped-query attention with 4 KV heads for 28 query heads, which cuts the cache to 14% of what full attention would need.

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 7.54 GB 0.44 GB 7.83 GB 99% Lossless in practice. Use it when the memory is there.
Q6_K 5.82 GB 0.44 GB 6.23 GB 98% Very close to Q8 for two thirds of the size.
Q5_K_M 5.05 GB 0.44 GB 5.51 GB 96% The quality-first choice when Q6 will not fit.
Q4_K_M 4.28 GB 0.44 GB 4.81 GB 93% The default. Best size-to-quality ratio for local use.
IQ4_XS 3.77 GB 0.44 GB 4.33 GB 91% Importance-matrix 4-bit. Q4_K_S quality, smaller file.
Q3_K_M 3.47 GB 0.44 GB 4.05 GB 86% Degradation starts to show. A way to fit one size up.
IQ3_XXS 2.71 GB 0.44 GB 3.35 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 0.22 GB 4.59 GB yes yes yes
8k 0.44 GB 4.81 GB yes yes yes
16k 0.88 GB 5.24 GB yes yes yes
32k 1.75 GB 6.12 GB yes yes yes

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

Which hardware runs Qwen2.5 Coder 7B Instruct

114 of 118 consumer devices run it at a quantization worth using, at an 8k context window. Another 1 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 7.83 GB 177.2 t/s
RTX PRO 6000 Blackwell
NVIDIA
96 GB Runs great Q8_0 7.83 GB 177.2 t/s
GeForce RTX 4090
NVIDIA
24 GB Runs great Q8_0 7.83 GB 99.7 t/s
GeForce RTX 3090 Ti
NVIDIA
24 GB Runs great Q8_0 7.83 GB 99.7 t/s
GeForce RTX 5080
NVIDIA
16 GB Runs great Q8_0 7.83 GB 95 t/s
RTX 6000 Ada Generation
NVIDIA
48 GB Runs great Q8_0 7.83 GB 95 t/s
GeForce RTX 3090
NVIDIA
24 GB Runs great Q8_0 7.83 GB 92.6 t/s
GeForce RTX 3080 Ti
NVIDIA
12 GB Runs great Q8_0 7.83 GB 90.2 t/s
GeForce RTX 3080 12GB
NVIDIA
12 GB Runs great Q8_0 7.83 GB 90.2 t/s
GeForce RTX 5070 Ti
NVIDIA
16 GB Runs great Q8_0 7.83 GB 88.6 t/s
GeForce RTX 5090 Laptop
NVIDIA
24 GB Runs great Q8_0 7.83 GB 88.6 t/s
Radeon RX 7900 XTX
AMD
24 GB Runs great Q8_0 7.83 GB 80.5 t/s
GeForce RTX 5080 Laptop
NVIDIA
16 GB Runs great Q8_0 7.83 GB 76 t/s
RTX A6000
NVIDIA
48 GB Runs great Q8_0 7.83 GB 76 t/s
RTX A5000
NVIDIA
24 GB Runs great Q8_0 7.83 GB 76 t/s
GeForce RTX 3080 10GB
NVIDIA
10 GB Runs great Q8_0 7.83 GB 75.2 t/s
Apple M3 Ultra 96GB
Apple
96 GB Runs great Q8_0 8.34 GB 74.9 t/s
Apple M3 Ultra 256GB
Apple
256 GB Runs great Q8_0 8.34 GB 74.9 t/s
Apple M3 Ultra 512GB
Apple
512 GB Runs great Q8_0 8.34 GB 74.9 t/s
Apple M1 Ultra 64GB
Apple
64 GB Runs great Q8_0 8.34 GB 73.1 t/s
Apple M1 Ultra 128GB
Apple
128 GB Runs great Q8_0 8.34 GB 73.1 t/s
Apple M2 Ultra 64GB
Apple
64 GB Runs great Q8_0 8.34 GB 73.1 t/s
Apple M2 Ultra 128GB
Apple
128 GB Runs great Q8_0 8.34 GB 73.1 t/s
Apple M2 Ultra 192GB
Apple
192 GB Runs great Q8_0 8.34 GB 73.1 t/s
GeForce RTX 4080 SUPER
NVIDIA
16 GB Runs great Q8_0 7.83 GB 72.8 t/s
Show 35 more devices
Radeon PRO W7900
AMD
48 GB Runs great Q8_0 7.83 GB 72.5 t/s
GeForce RTX 4080
NVIDIA
16 GB Runs great Q8_0 7.83 GB 70.9 t/s
Radeon RX 7900 XT
AMD
20 GB Runs great Q8_0 7.83 GB 67.1 t/s
GeForce RTX 5070
NVIDIA
12 GB Runs great Q8_0 7.83 GB 66.5 t/s
GeForce RTX 4070 Ti SUPER
NVIDIA
16 GB Runs great Q8_0 7.83 GB 66.5 t/s
GeForce RTX 2080 Ti
NVIDIA
11 GB Runs great Q8_0 7.83 GB 60.9 t/s
GeForce RTX 4090 Laptop
NVIDIA
16 GB Runs great Q8_0 7.83 GB 57 t/s
Radeon RX 9070 XT
AMD
16 GB Runs great Q8_0 7.83 GB 54.1 t/s
Radeon RX 9070
AMD
16 GB Runs great Q8_0 7.83 GB 54.1 t/s
Radeon RX 7800 XT
AMD
16 GB Runs great Q8_0 7.83 GB 52.3 t/s
GeForce RTX 4070 Ti
NVIDIA
12 GB Runs great Q8_0 7.83 GB 49.9 t/s
GeForce RTX 4070 SUPER
NVIDIA
12 GB Runs great Q8_0 7.83 GB 49.9 t/s
GeForce RTX 4070
NVIDIA
12 GB Runs great Q8_0 7.83 GB 49.9 t/s
Apple M4 Max 36GB
Apple
36 GB Runs great Q8_0 8.34 GB 49.9 t/s
Apple M4 Max 48GB
Apple
48 GB Runs great Q8_0 8.34 GB 49.9 t/s
Apple M4 Max 64GB
Apple
64 GB Runs great Q8_0 8.34 GB 49.9 t/s
Apple M4 Max 128GB
Apple
128 GB Runs great Q8_0 8.34 GB 49.9 t/s
Radeon RX 7900 GRE
AMD
16 GB Runs great Q8_0 7.83 GB 48.3 t/s
GeForce GTX 1080 Ti
NVIDIA
11 GB Runs great Q8_0 7.83 GB 47.9 t/s
GeForce RTX 5060 Ti 16GB
NVIDIA
16 GB Runs great Q8_0 7.83 GB 44.3 t/s
RTX A4000
NVIDIA
16 GB Runs great Q8_0 7.83 GB 44.3 t/s
Radeon RX 6900 XT
AMD
16 GB Runs great Q8_0 7.83 GB 43 t/s
Radeon RX 6800
AMD
16 GB Runs great Q8_0 7.83 GB 43 t/s
Arc A770 16GB
Intel
16 GB Runs great Q8_0 7.83 GB 42.8 t/s
GeForce RTX 4080 Laptop
NVIDIA
12 GB Runs great Q8_0 7.83 GB 42.7 t/s
Apple M1 Max 32GB
Apple
32 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M1 Max 64GB
Apple
64 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M2 Max 32GB
Apple
32 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M2 Max 64GB
Apple
64 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M2 Max 96GB
Apple
96 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M3 Max 36GB
Apple
36 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M3 Max 48GB
Apple
48 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M3 Max 64GB
Apple
64 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M3 Max 96GB
Apple
96 GB Runs great Q8_0 8.34 GB 36.6 t/s
Apple M3 Max 128GB
Apple
128 GB Runs great Q8_0 8.34 GB 36.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
Qwen2.5 Coder 7B Instruct 4.3 GB 35.6 t/s at Q8_099.7 t/s at Q8_0
Qwen2.5 7B Instruct 4.3 GB 35.6 t/s at Q8_099.7 t/s at Q8_0
Qwen3 8B 4.6 GB 30.8 t/s at Q8_086.1 t/s at Q8_0
Qwen2.5 VL 7B Instruct 4.7 GB 32.7 t/s at Q8_091.5 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 Qwen2.5 Coder 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 1660 SUPER
NVIDIA
$110 used 6 GB Q4_K_M 56 t/s Check price
GeForce GTX 1080 Ti
NVIDIA
$150 used 11 GB Q8_0 47.9 t/s Check price
GeForce RTX 2060 12GB
NVIDIA
$160 used 12 GB Q8_0 33.2 t/s Check price
GeForce RTX 3060 Ti
NVIDIA
$230 used 8 GB Q6_K 56.4 t/s Check price
GeForce RTX 2080 Ti
NVIDIA
$250 used 11 GB Q8_0 60.9 t/s Check price
Arc A770 16GB
Intel
$280 used 16 GB Q8_0 42.8 t/s Check price
GeForce RTX 3070 Ti
NVIDIA
$300 used 8 GB Q6_K 76.6 t/s Check price
GeForce RTX 3080 12GB
NVIDIA
$400 used 12 GB Q8_0 90.2 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.

These numbers also cover

Fine-tunes share their base model's architecture, so they need exactly the same memory. If you are looking for one of these, the figures above apply unchanged.

  • deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
  • Qwen/Qwen2.5-7B
  • Qwen/Qwen2.5-Coder-7B
  • Qwen/Qwen2-7B-Instruct
  • Qwen/Qwen2-7B
  • unsloth/Qwen2.5-7B-Instruct
  • Qwen/Qwen2.5-7B-Instruct-1M
  • unsloth/Qwen2.5-Coder-7B-Instruct
  • openthaigpt/openthaigpt1.5-7b-instruct

Where it sits in the catalog

Source: Qwen/Qwen2.5-Coder-7B-Instruct on Hugging Face. Downloaded 2.4M times in the last month. Published 2024-09-17. Architecture figures are read from the repository's own configuration file, so they move when the model does.

Questions people ask about Qwen2.5 Coder 7B Instruct

How much VRAM does Qwen2.5 Coder 7B Instruct need?

At Q4_K_M with an 8k context window, Qwen2.5 Coder 7B Instruct needs about 4.81 GB: 3.98 GB of weights, 0.44 GB of KV cache and 0.39 GB of overhead. At the highest-quality file it needs about 7.83 GB.

What is the cheapest GPU that runs Qwen2.5 Coder 7B Instruct?

The smallest consumer device in our catalog that fits it is the GeForce GTX 1660 SUPER with 6 GB, running it at Q4_K_M at roughly 56 tokens per second.

How much does a longer context window add for Qwen2.5 Coder 7B Instruct?

On the memory side, a 32k window adds 1.8 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 32k tokens.