Qwen 2.5 Coder 32B VRAM Requirements

Qwen 2.5 Coder 32B needs about 21.4 GB of VRAM at Q4_K_M with an 8K context: 18.5 GB for weights, 2.0 GB for the KV cache and 0.9 GB of runtime overhead. At Q8_0 it needs 35.3 GB and at full FP16 precision 64.0 GB. The smallest GPU that runs it fully is the NVIDIA L4 24GB.

By Alibaba · Updated October 14, 2026 · Values from config.json on Hugging Face

21.4 GB VRAM

Qwen 2.5 Coder 32B at Q4_K_M with 8K context and the KV cache in FP16.

  • Weights 18.5 GB
  • KV cache 2.0 GB
  • Runtime overhead 0.9 GB

Which GPUs can run it

Qwen 2.5 Coder 32B VRAM by quantization

Total memory with an FP16 KV cache. "Smallest tier" is the smallest standard VRAM size with a 6% safety margin at 8K.

QuantizationBits/weightWeightsTotal at 8KTotal at 32KSmallest tier
Q4_K_M4.8518.5 GB21.4 GB27.4 GB24 GB
Q5_K_M5.6921.7 GB24.6 GB30.6 GB32 GB
Q6_K6.5925.2 GB28.0 GB34.0 GB32 GB
Q8_08.5032.5 GB35.3 GB41.3 GB48 GB
FP16 / BF1616.0061.1 GB64.0 GB70.0 GB80 GB
Q3_K_M3.9114.9 GB17.8 GB23.8 GB20 GB
Q2_K3.0011.5 GB14.3 GB20.3 GB16 GB

VRAM by context length

At Q4_K_M. The KV cache grows linearly with context: 0.25 GB per 1,000 tokens in FP16.

ContextKV cache (FP16)KV cache (Q8_0)Total, FP16 cacheTotal, Q8_0 cache
4K tokens1.0 GB0.5 GB20.4 GB19.9 GB
8K tokens2.0 GB1.1 GB21.4 GB20.5 GB
32K tokens8.0 GB4.3 GB27.4 GB23.6 GB

GPUs that can run Qwen 2.5 Coder 32B

At Q4_K_M with 8K context. "Best quant" is the highest-quality format that fits fully; "max context" is at Q4_K_M.

GPUUsable memoryStatusBest quantMax contextSpeed
NVIDIA L4 24GB24.0 GBFitsQ4_K_M12K~9.2 tok/s
Tesla P40 24GB24.0 GBFitsQ4_K_M12K~9.1 tok/s
Apple M4 Max 36GB24.0 GBFitsQ4_K_M12K~13 tok/s
Intel Arc Pro B60 24GB24.0 GBFitsQ4_K_M12K~11 tok/s
RTX 3090 24GB24.0 GBFitsQ4_K_M12K~28 tok/s
Radeon RX 7900 XTX 24GB24.0 GBFitsQ4_K_M12K~25 tok/s
RTX 3090 Ti 24GB24.0 GBFitsQ4_K_M12K~31 tok/s
RTX 4090 24GB24.0 GBFitsQ4_K_M12K~31 tok/s
Radeon AI PRO R9700 32GB32.0 GBFitsQ6_K32K~17 tok/s
RTX 5090 32GB32.0 GBFitsQ6_K32K~54 tok/s
Apple M4 Pro 48GB36.0 GBFitsQ6_K32K~8.4 tok/s
A100 40GB40.0 GBFitsQ8_032K~47 tok/s
Apple M5 Pro 64GB48.0 GBFitsQ8_032K~9.5 tok/s
Apple M1 Max 64GB48.0 GBFitsQ8_032K~12 tok/s
Radeon RX 7900 XT 20GB20.0 GB88% on GPUQ3_K_M–~9.7 tok/s
RTX 4060 Ti 16GB16.0 GB70% on GPUQ2_K–~4.4 tok/s
RTX 4070 Ti Super 16GB16.0 GB70% on GPUQ2_K–~5.5 tok/s
RTX 4080 16GB16.0 GB70% on GPUQ2_K–~5.5 tok/s
RTX 4080 Super 16GB16.0 GB70% on GPUQ2_K–~5.6 tok/s
RTX 5060 Ti 16GB16.0 GB70% on GPUQ2_K–~5.0 tok/s

About Qwen 2.5 Coder 32B

The coding variant of Qwen 2.5 32B, with identical memory needs. Coding agents send long files and repository context, so plan VRAM for 32K tokens rather than 8K: that adds about 8 GB of FP16 cache.

SpecValue
Parameters32.8B
Layers64
Hidden size5120
Attention heads / KV heads40 / 8
Head dimension128
Vocabulary152,064
Max context (used here)32K tokens
KV cache per token (FP16)256 KB
Released2024-11
LicenseApache 2.0

Qwen 2.5 Coder 32B VRAM: common questions

What context length should I plan for with a coding model?

At least 32K for editor and agent use. For Qwen 2.5 Coder 32B that means about 27 GB at Q4_K_M with an FP16 cache, about 23.6 GB with a Q8_0 cache (a tight fit on 24 GB), or about 21.6 GB with a Q4_0 cache.

How much VRAM does Qwen 2.5 Coder 32B need?

About 21.4 GB at Q4_K_M with an 8K context, 35.3 GB at Q8_0 and 64.0 GB at FP16. Longer contexts add 0.25 GB per 1,000 tokens with an FP16 cache.

What is the cheapest GPU that can run Qwen 2.5 Coder 32B?

The smallest listed device that fits it fully at Q4_K_M with 8K context is the NVIDIA L4 24GB (24.0 GB usable).

Related