Models › Qwen

Alibaba Qwen · 32.8B

Can I run Qwen2.5 Coder 32B Instruct locally?

Qwen2.5 Coder 32B Instruct needs about 21.4 GB at Q4_K_M with 8K context, so it fits fully on a 24 GB GPU.

Check it on your rig

Model facts

Parameters32.8B params
Max context32,768 tokens
Attention64 full-attention layers, 8 KV heads (grouped-query)
Good forCoding
SourceQwen/Qwen2.5-Coder-32B-Instruct

Quick answer

Smallest GPU that holds it fully: 24 GB (Q4_K_M, 8K context)

Consumer GPUs that fit it fully: 5 of 39

With partial offload (32 GB RAM): 34 more

Fitting fully is what you want: offloading works, but generation speed drops to what your system RAM can deliver.

Memory needed by quant and context

Total estimate: weights + KV cache (FP16) + runtime buffer. Pick a row whose number is below your VRAM (or about 2/3 of a Mac's memory). To try another quant, context length or KV cache precision, open Qwen2.5 Coder 32B Instruct in the VRAM calculator.

Qwen2.5 Coder 32B Instruct: memory needed at 8K context, by quant
  1. Q8_035.3 GB
  2. Q6_K27.9 GB
  3. Q5_K_M24.6 GB
  4. Q4_K_M21.4 GB
  5. Q3_K_M17.8 GB

Dashed lines mark common card or memory sizes in GB.

Quant4K ctx8K ctx32K ctxQuality
Q8_034.3 GB35.3 GB41.3 GBnear-lossless
Q6_K26.9 GB27.9 GB33.9 GBvery close to full quality
Q5_K_M23.6 GB24.6 GB30.6 GBsmall quality loss
Q4_K_M20.4 GB21.4 GB27.4 GBthe usual sweet spot
Q3_K_M16.8 GB17.8 GB23.8 GBnoticeable quality loss

GPUs that run Qwen2.5 Coder 32B Instruct

At 8K context with 32 GB of DDR5 system RAM for offload. Speeds are estimates.

GPUVRAMVerdictQuantSpeed (est.)
GeForce RTX 509032 GBFits on GPUQ6_K30–50 tok/s
GeForce RTX 508016 GBPartial offloadQ4_K_M5–8 tok/s
GeForce RTX 5070 Ti16 GBPartial offloadQ4_K_M5–8 tok/s
GeForce RTX 507012 GBPartial offloadQ4_K_M3–5 tok/s
GeForce RTX 5060 Ti 16GB16 GBPartial offloadQ4_K_M4–7 tok/s
GeForce RTX 5060 Ti 8GB8 GBPartial offloadQ4_K_M2.3–4 tok/s
GeForce RTX 50608 GBPartial offloadQ4_K_M2.3–4 tok/s
GeForce RTX 409024 GBFits on GPUQ4_K_M25–40 tok/s
GeForce RTX 4080 Super16 GBPartial offloadQ4_K_M4–8 tok/s
GeForce RTX 408016 GBPartial offloadQ4_K_M4–7 tok/s
GeForce RTX 4070 Ti Super16 GBPartial offloadQ4_K_M4–7 tok/s
GeForce RTX 4070 Ti12 GBPartial offloadQ4_K_M2.9–5 tok/s
GeForce RTX 4070 Super12 GBPartial offloadQ4_K_M2.9–5 tok/s
GeForce RTX 407012 GBPartial offloadQ4_K_M2.9–5 tok/s
GeForce RTX 4060 Ti 16GB16 GBPartial offloadQ4_K_M3–6 tok/s
GeForce RTX 4060 Ti 8GB8 GBPartial offloadQ4_K_M2.2–4 tok/s
GeForce RTX 40608 GBPartial offloadQ4_K_M2.2–4 tok/s
GeForce RTX 3090 Ti24 GBFits on GPUQ4_K_M25–40 tok/s
GeForce RTX 309024 GBFits on GPUQ4_K_M20–35 tok/s
GeForce RTX 3080 Ti12 GBPartial offloadQ4_K_M3–5 tok/s
GeForce RTX 3080 10GB10 GBPartial offloadQ4_K_M2.6–5 tok/s
GeForce RTX 30708 GBPartial offloadQ4_K_M2.3–4 tok/s
GeForce RTX 3060 Ti8 GBPartial offloadQ4_K_M2.3–4 tok/s
GeForce RTX 3060 12GB12 GBPartial offloadQ4_K_M2.8–5 tok/s
GeForce RTX 2080 Ti11 GBPartial offloadQ4_K_M2.8–5 tok/s
GeForce RTX 2060 6GB6 GBPartial offloadQ4_K_M2–4 tok/s
Radeon RX 9070 XT16 GBPartial offloadQ4_K_M4–7 tok/s
Radeon RX 907016 GBPartial offloadQ4_K_M4–7 tok/s
Radeon RX 9060 XT 16GB16 GBPartial offloadQ4_K_M3–6 tok/s
Radeon RX 7900 XTX24 GBFits on GPUQ4_K_M18–30 tok/s
Radeon RX 7900 XT20 GBPartial offloadQ4_K_M7–13 tok/s
Radeon RX 7900 GRE16 GBPartial offloadQ4_K_M4–7 tok/s
Radeon RX 7800 XT16 GBPartial offloadQ4_K_M4–7 tok/s
Radeon RX 7700 XT12 GBPartial offloadQ4_K_M2.8–5 tok/s
Radeon RX 76008 GBPartial offloadQ4_K_M2.1–4 tok/s
Radeon RX 6800 XT16 GBPartial offloadQ4_K_M4–7 tok/s
Radeon RX 6700 XT12 GBPartial offloadQ4_K_M2.7–5 tok/s
Arc B58012 GBPartial offloadQ4_K_M2.7–5 tok/s
Arc A770 16GB16 GBPartial offloadQ4_K_M4–7 tok/s

Macs and unified-memory PCs

The smallest memory configuration that holds it fully at 8K context.

ChipMemory neededQuantSpeed (est.)
Apple M1Won't fit——
Apple M1 Pro32 GBQ3_K_M4–9 tok/s
Apple M1 Max32 GBQ3_K_M8–17 tok/s
Apple M1 Ultra64 GBQ8_08–17 tok/s
Apple M2Won't fit——
Apple M2 Pro32 GBQ3_K_M4–9 tok/s
Apple M2 Max32 GBQ3_K_M8–17 tok/s
Apple M2 Ultra64 GBQ8_08–17 tok/s
Apple M3Won't fit——
Apple M3 Pro36 GBQ4_K_M2.5–5 tok/s
Apple M3 Max (40-core GPU)48 GBQ6_K5–11 tok/s
Apple M3 Ultra96 GBQ8_08–17 tok/s
Apple M432 GBQ3_K_M2.5–5 tok/s
Apple M4 Pro48 GBQ6_K3–7 tok/s
Apple M4 Max (16-core CPU)48 GBQ6_K7–15 tok/s
Apple M532 GBQ3_K_M3–7 tok/s
AMD Ryzen AI Max+ 39564 GBQ8_02.8–5 tok/s
NVIDIA DGX Spark128 GBQ8_04–6 tok/s

Parameter count and architecture come from the model's Hugging Face page and config.json. Memory and speed are calculated; see methodology.