Qwen2.5-Coder-32B VRAM & GPU Requirements Calculator
Qwen2.5-Coder-32B requires 61.1 GiB in FP16, 30.5 GiB in FP8, and 18.6 GiB in GGUF Q4_K_M for GPU weights alone (64 layers · GQA (40Q / 8KV = 5× KV savings)). At 8K context (batch=1, FP16 KV), KV-cache adds 2.00 GiB (5.0× smaller than MHA).
Can Your GPU or Mac Run Qwen2.5-Coder 32B? (8K Context, Batch=1)
Pre-computed fit verdict and estimated decode speed across RTX 4090, Apple Silicon Unified Memory, and NVIDIA H100/H200 clusters. Column headers show 1× GPU baseline (incl. 1.0 GiB runtime; multi-GPU rows add per-GPU NCCL overhead). Apple Silicon runs Q8_0 (Metal/llama.cpp) instead of datacenter FP8.
| Hardware Rig | Q4_K_M (22.1 GiB) | FP8 / Q8_0* (33.0 GiB FP8) | FP16 (64.6 GiB) |
|---|---|---|---|
| 1× RTX 4090 (23.9 GiB usable) | FIT · ~34 tok/s | OOM (-9G) | OOM (-41G) |
| 2× RTX 4090 (47.8 GiB usable) | FIT · ~41 tok/s | FIT · ~30 tok/s | OOM (-19G) |
| Apple M4 Max (128 GiB Unified · 96 GiB GPU) | FIT · ~17 tok/s | Q8_0 FIT · ~10 tok/s | FIT · ~6 tok/s |
| Apple M3 Ultra (256 GiB Unified · 192 GiB GPU) | FIT · ~26 tok/s | Q8_0 FIT · ~16 tok/s | FIT · ~9 tok/s |
| 1× H100 SXM (79.6 GiB usable) | FIT · ~101 tok/s | FIT · ~70 tok/s | FIT · ~37 tok/s |
| 4× H100 SXM (318.4 GiB usable) | FIT · ~118 tok/s | FIT · ~103 tok/s | FIT · ~75 tok/s |
| 8× H100 SXM (636.8 GiB usable) | FIT · ~104 tok/s | FIT · ~97 tok/s | FIT · ~81 tok/s |
| 8× H200 SXM (1,123.2 GiB usable) | FIT · ~108 tok/s | FIT · ~103 tok/s | FIT · ~90 tok/s |
Ready-to-run deployment commands for Qwen2.5-Coder 32B
vllm serve Qwen/Qwen2.5-Coder-32B-Instruct --tensor-parallel-size 1 --max-model-len 8192 --gpu-memory-utilization 0.90Sized at 64.6 GiB total BF16 VRAM (including CUDA/NCCL overhead) out of 79.6 GiB usable.
llama-server -m /path/to/qwen2-5-coder-32b-Q4_K_M.gguf -c 8192 -ngl 999 -fa onFits on a single RTX 4090 (23.9 GiB usable) at ~34 tok/s.
Interactive Qwen2.5-Coder 32B VRAM & Roofline Simulator
1. Model & Workload
2. Target GPU / Mac Silicon
VRAM Allocation vs. Hardware Capacity
Decode Arithmetic Intensity Roofline
Compare Other LLM VRAM Requirements
All 37 Models →Frequently Asked Questions
Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run Qwen2.5-Coder-32B?
At 8K context (batch=1) in GGUF Q4_K_M, Qwen2.5-Coder-32B needs 22.1 GiB single-GPU VRAM (18.6 GiB weights). Single 23.9 GiB usable RTX 4090: Fits at ~34 tok/s. Dual 47.8 GiB usable (2× RTX 4090): Fits Q4_K_M cleanly (~41 tok/s TP).
Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run Qwen2.5-Coder-32B?
An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (22.1 GiB GPU wired at 8K), it fits on M4 Max 128 GiB at ~17.3 tok/s.
How much KV-cache does Qwen2.5-Coder-32B use at 32K context?
Qwen2.5-Coder-32B uses GQA, giving a 5.0× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 8.00 GiB.