Qwen 2.5 Coder 32B Instruct
Qwen 2.5 Coder 32B Instruct needs roughly 24.6 GB VRAM at Q4_K_M quantization (75.2 GB at FP16). 70 GPUs we track can run it fully in VRAM at 8k context.
70 GPUs run this natively · 31 with CPU offload
- Q4_K_M total
- 24.6 GB
- at 8k context
- Smallest GPU
- 32 GB
- NVIDIA RTX 5090, at Q4_K_M
- KV cache, full context
- 34.4 GB
- 64 of 64 layers cache
- Inputs
- Text
- Apache 2.0, released November 2024
- Aider (whole-edit)
- 73.7%
- vs GPT-4o's 74.4%, same table
- Context default
- 32,768 tokens
- 131,072 needs manual YaRN setup
Qwen 2.5 Coder 32B Instruct is a 32.5B parameter dense model developed by Alibaba. Released November 12, 2024 as a dense 32.5B-parameter fine-tune of the Qwen2.5 architecture: grouped-query attention (GQA) with 8 KV heads over 64 layers, trained on more than 5.5 trillion tokens weighted heavily toward code. Licensed Apache 2.0 with no usage restrictions; the only sibling size under a different license is the 3B, which ships non-commercial. Context ships at 32,768 tokens by default; the model supports up to 131,072 via YaRN, but that needs a rope_scaling block manually added to config.json, and Qwen's own docs recommend enabling it only when long context is actually needed, since static YaRN trades away a little short-context quality.
To run Qwen 2.5 Coder 32B Instruct locally: Q4_K_M's real total at this site's 8k-token baseline is 24.6GB, against a 24GB card's usable ceiling of roughly 22.8GB, so an RTX 4090 or RTX 3090 needs either a short context window (roughly 2,000 tokens or less) or a small CPU offload to run it. Q3_K_M (19.9GB) is the quant that actually fits a 24GB card cleanly with room to spare; a 32GB+ card (RTX 5090, RTX 5000 Ada) is what runs Q4_K_M comfortably at a full working context.
Qwen's own technical report puts HumanEval at 92.7 and MBPP at 90.2, and Aider's harder "whole-file edit" pass rate at 73.7, voluntarily compared by Qwen to GPT-4o-2024-08-06's 74.4 on the same table, a genuinely close result. MMLU-Pro is 62.3, respectable general reasoning for a model this narrowly specialized on code. These are vendor-measured figures from Qwen's own arXiv paper, not an independent leaderboard.
VRAM at each quantization
Figures below assume 8k context; KV cache grows linearly as context length increases.
| Quant | Weights | KV cache | Total |
|---|---|---|---|
| FP32 | 130.0 GB | 2.15 GB | 148.0 GB |
| BF16 | 65.0 GB | 2.15 GB | 75.2 GB |
| FP16 | 65.0 GB | 2.15 GB | 75.2 GB |
| Q8_0 | 34.5 GB | 2.15 GB | 41.1 GB |
| Q6_K | 26.7 GB | 2.15 GB | 32.3 GB |
| Q5_K_M | 23.1 GB | 2.15 GB | 28.3 GB |
| Q4_K_Mrec | 19.8 GB | 2.15 GB | 24.6 GB |
| Q3_K_M | 15.6 GB | 2.15 GB | 19.9 GB |
| Q2_K | 12.4 GB | 2.15 GB | 16.3 GB |
| NVFP4cuda | 16.3 GB | 2.15 GB | 20.6 GB |
Shown at 8k context with FP16 KV cache. NVFP4 needs a CUDA GPU to run. Toggle TurboQuant in the calculator to view compressed KV cache numbers.
Quantization × context: what the YaRN-extended window actually costs
The table above holds context at 8k. Add context as a second axis and the real shape of this model's context story becomes visible: from the 32,768-token default it ships with, up to the full 131,072-token window that only exists once YaRN is manually enabled in config.json. Pick the row you can download, then the column that matches how you've actually configured it.
| Quant | 8k ctx | 32k ctx | 128k ctx |
|---|---|---|---|
| Q8_0 | 41.1 GB48 GB card | 48.3 GB80 GB card | 77.2 GB80 GB card |
| Q6_K | 32.3 GB48 GB card | 39.5 GB48 GB card | 68.4 GB80 GB card |
| Q5_K_M | 28.3 GB32 GB card | 35.5 GB48 GB card | 64.4 GB80 GB card |
| Q4_K_Mrec | 24.6 GB32 GB card | 31.8 GB32 GB card | 60.6 GB80 GB card |
| Q3_K_M | 19.9 GB24 GB card | 27.1 GB32 GB card | 56.0 GB80 GB card |
Benchmarks
LiveCodeBench: a late-2024 coding specialist against a newer field
LiveCodeBench is deliberately a moving target: it rotates in new, previously-unseen problems over time so models can't have trained on the test set. Qwen's reported score here, 31.4, comes from a contamination-controlled slice of problems from July-November 2024, chosen specifically because they postdate this model's training cutoff, not the full accumulated problem set some other entries here may report against. Plotted by size against every other tracked model that reports this benchmark, it lands toward the lower end: most of its neighbors are newer models evaluated on a LiveCodeBench that has grown harder as frontier models caught up to earlier versions of it. Read this chart as "a coding specialist from late 2024," not a same-day comparison against newer generalist flagships.
GPUs that run Qwen 2.5 Coder 32B Instruct natively (70)
- NVIDIA RTX 5090NVFP4 · 63.3 t/s
- NVIDIA RTX 4090Q3_K_M · 36.9 t/s
- NVIDIA RTX 3090Q3_K_M · 34.2 t/s
- NVIDIA RTX 3090 TiQ3_K_M · 36.9 t/s
- NVIDIA B300 288GBBF16 · 77.4 t/s
Show 65 more
- NVIDIA B200 180GBBF16 · 77.4 t/s
- NVIDIA H200 141GBBF16 · 46.5 t/s
- NVIDIA H100 80GBBF16 · 32.4 t/s
- NVIDIA A100 80GBBF16 · 19.7 t/s
- NVIDIA A100 40GBQ6_K · 35.1 t/s
- NVIDIA L40SQ8_0 · 15.3 t/s
- NVIDIA RTX A6000Q8_0 · 13.6 t/s
- NVIDIA RTX 4000 AdaQ2_K · 14.3 t/s
- NVIDIA RTX 4500 AdaQ3_K_M · 15.8 t/s
- NVIDIA RTX 5000 AdaQ5_K_M · 14.8 t/s
- NVIDIA RTX 6000 AdaQ8_0 · 17 t/s
- NVIDIA RTX Pro 6000BF16 · 13 t/s
- NVIDIA DGX Spark (128GB)BF16 · 2.6 t/s
- AMD Radeon RX 7900 XTXQ3_K_M · 35.1 t/s
- AMD Radeon RX 7900 XTQ2_K · 35.8 t/s
- AMD Radeon PRO W7800Q5_K_M · 14.8 t/s
- AMD Radeon PRO W7900Q8_0 · 15.3 t/s
- AMD Instinct MI300XBF16 · 51.3 t/s
- AMD Radeon AI PRO R9700 32GBQ5_K_M · 16.5 t/s
- AMD Strix Halo (128GB)BF16 · 2.5 t/s
- AMD Strix Halo (96GB)BF16 · 2.5 t/s
- AMD Strix Halo (64GB)Q8_0 · 4.5 t/s
- AMD Strix Halo (32GB)Q3_K_M · 9.4 t/s
- Apple M5 Ultra (512GB)BF16 · 14.3 t/s
- Apple M5 Ultra (256GB)BF16 · 14.3 t/s
- Apple M5 Ultra (96GB)BF16 · 14.3 t/s
- Apple M5 Max (128GB)BF16 · 7.3 t/s
- Apple M5 Max (64GB)Q8_0 · 13.4 t/s
- Apple M5 Max (48GB)Q6_K · 17 t/s
- Apple M5 Max (36GB)Q4_K_M · 16.8 t/s
- Apple M5 Pro (64GB)Q8_0 · 6.7 t/s
- Apple M5 Pro (48GB)Q6_K · 8.5 t/s
- Apple M5 (32GB)Q3_K_M · 6.9 t/s
- Apple M6 (32GB)Q3_K_M · 7.6 t/s
- Apple M4 Max (128GB)BF16 · 6.5 t/s
- Apple M4 Max (64GB)Q8_0 · 11.9 t/s
- Apple M4 Max (48GB)Q6_K · 15.2 t/s
- Apple M4 Max (36GB)Q4_K_M · 14.9 t/s
- Apple M4 Pro (48GB)Q6_K · 7.6 t/s
- Apple M4 (32GB)Q3_K_M · 5.4 t/s
- Apple M3 Ultra (512GB)BF16 · 9.8 t/s
- Apple M3 Ultra (256GB)BF16 · 9.8 t/s
- Apple M3 Ultra (96GB)BF16 · 9.8 t/s
- Apple M3 Max (128GB)BF16 · 4.8 t/s
- Apple M3 Max (96GB)BF16 · 3.6 t/s
- Apple M3 Max (64GB)Q8_0 · 8.7 t/s
- Apple M3 Max (48GB)Q6_K · 11.1 t/s
- Apple M3 Max (36GB)Q4_K_M · 10.9 t/s
- Apple M3 Pro (36GB)Q4_K_M · 5.5 t/s
- Apple M2 Ultra (192GB)BF16 · 9.5 t/s
- Apple M2 Ultra (64GB)Q8_0 · 17.4 t/s
- Apple M2 Max (96GB)BF16 · 4.8 t/s
- Apple M2 Max (64GB)Q8_0 · 8.7 t/s
- Apple M2 Max (32GB)Q3_K_M · 18 t/s
- Apple M2 Pro (32GB)Q3_K_M · 9 t/s
- Apple M1 Ultra (128GB)BF16 · 9.5 t/s
- Apple M1 Ultra (64GB)Q8_0 · 17.4 t/s
- Apple M1 Max (64GB)Q8_0 · 8.7 t/s
- Apple M1 Max (32GB)Q3_K_M · 18 t/s
- Apple M1 Pro (32GB)Q3_K_M · 9 t/s
- Intel Arc Pro B70 32GBQ5_K_M · 15.6 t/s
- Intel Arc Pro B60 24GBQ3_K_M · 13.9 t/s
- Intel Data Center GPU Max 1550BF16 · 31.7 t/s
- Intel Data Center GPU Max 1100Q8_0 · 21.8 t/s
- Intel Arc 140V (32GB)Q3_K_M · 5 t/s
Plus 31 GPUs that run it with CPU offload (slower)
- NVIDIA RTX 5080NVFP4 · 6.6 t/s
- NVIDIA RTX 5070 TiNVFP4 · 6.5 t/s
- NVIDIA RTX 5070NVFP4 · 3.3 t/s
- NVIDIA RTX 5060 Ti 16GBNVFP4 · 5.6 t/s
- NVIDIA RTX 5060 Ti 8GBNVFP4 · 2.2 t/s
- NVIDIA RTX 5060NVFP4 · 2.2 t/s
- NVIDIA RTX 5050NVFP4 · 2.1 t/s
- NVIDIA RTX 4080Q8_0 · 1.1 t/s
- NVIDIA RTX 4070 Ti SUPERQ8_0 · 1.1 t/s
- NVIDIA RTX 4070 TiQ6_K · 1.4 t/s
- NVIDIA RTX 4070 SUPERQ6_K · 1.4 t/s
- NVIDIA RTX 4070Q6_K · 1.4 t/s
- NVIDIA RTX 4060 Ti 16GBQ8_0 · 1.1 t/s
- NVIDIA RTX 4060Q6_K · 1.1 t/s
- NVIDIA RTX 3080 10GBQ6_K · 1.3 t/s
- NVIDIA RTX 3060 12GBQ6_K · 1.3 t/s
- AMD Radeon RX 7900 GREQ8_0 · 1.1 t/s
- AMD Radeon RX 6800 XTQ8_0 · 1.1 t/s
- Intel Arc B580 12GBQ6_K · 1.4 t/s
- Intel Arc B570 10GBQ6_K · 1.2 t/s
- Intel Arc Pro B50 16GBQ8_0 · 1 t/s
- Intel Arc A770 16GBQ8_0 · 1.1 t/s
- Intel Arc A770 8GBQ6_K · 1.1 t/s
- Intel Arc A750 8GBQ6_K · 1.1 t/s
- Intel Arc A580 8GBQ6_K · 1.1 t/s
- Intel Arc A380 6GBQ5_K_M · 1.2 t/s
- Intel Arc A310 4GBQ5_K_M · 1.1 t/s
- Intel Arc Pro A60 12GBQ6_K · 1.3 t/s
- Intel Arc Pro A50 6GBQ5_K_M · 1.2 t/s
- Intel Arc Pro A40 6GBQ5_K_M · 1.2 t/s
- CPU only (system RAM)Q4_K_M · 1.8 t/s
Notes
Best open-weight coding model at this size.
Compare Qwen 2.5 Coder 32B Instruct with other models
How to run Qwen 2.5 Coder 32B Instruct locally
Q4_K_M needs 24.6 GB: needs a workstation or datacenter GPU (48–80 GB).
Ollama
ollama run qwen2.5-coder:32bllama.cpp
./llama-cli -m qwen2.5-coder-32b-instruct.Q4_K_M.gguf -c 8192 -ngl 99LM Studio: Search for 'Qwen 2.5 Coder 32B' in LM Studio. Q4_K_M needs about 24.6 GB at a full 8k context, just over what a 24 GB card (RTX 4090, RTX 3090) has usable, so expect a small CPU offload or a shorter context window unless you step up to 32 GB. Q3_K_M (19.9 GB) is the quant that actually fits a 24 GB card cleanly.
Why this quantization? At 32.5B dense parameters, Q4_K_M keeps enough precision for accurate code synthesis while staying close to a single high-end consumer GPU's ceiling, though its real total at 8k context (24.6 GB) runs just over a 24 GB card's usable ~22.8 GB, so a 24 GB card wants a shorter context window or a small offload, and a 32 GB card (RTX 5090, RTX 5000 Ada) is what runs it fully in VRAM with real headroom. This model was specifically trained for code generation, so its performance is disproportionately strong for its size relative to general-purpose models at the same quant.
Who is Qwen 2.5 Coder 32B Instruct for?
Software developers who want the best local coding assistant that fits on a single high-end consumer GPU. Ideal for programmers who want to pair it with VS Code or a terminal-based workflow, and who value the Apache 2.0 license for integrating AI-assisted coding into commercial projects.
Best for
- Code generation, completion, and refactoring across popular languages
- Explaining and documenting existing codebases
- Unit test generation and bug detection
- Technical writing and API documentation
- Pair programming with local privacy -- your code never leaves your machine
Not ideal for
- General-purpose chat or creative writing -- this model is specialized for code
- Users with less than 20 GB of VRAM -- consider Qwen 2.5 7B Coder or DeepSeek R1 Distill 8B
- Tasks requiring strong multilingual natural-language understanding outside of code
So should you run it?
On a 32GB+ card (RTX 5090, RTX 5000 Ada, or similar) this is a straightforward pick for local coding work: Q4_K_M runs fully in VRAM with real context headroom, and Aider and HumanEval scores that Qwen puts within a point of GPT-4o are hard to match at this parameter count. On a 24GB card (RTX 4090, RTX 3090) the honest recommendation is Q3_K_M, not Q4_K_M: Q4's real total edges just past a 24GB card's usable ceiling once KV cache and activation overhead are counted, so either drop one quant tier or keep the context window short. Whichever GPU you have, remember the 131,072-token context is opt-in: the model defaults to 32,768, and reaching the full window means manually adding a YaRN config block, not just requesting a bigger number from your inference server.
Continue reading
Frequently asked questions
- What are the VRAM requirements for Qwen 2.5 Coder 32B Instruct?
- Qwen 2.5 Coder 32B Instruct requires approximately 24.6 GB of VRAM at Q4_K_M quantization, 41.1 GB at Q8, and 75.2 GB at FP16. These numbers assume 8k context window; VRAM scales linearly with context length due to the KV cache.
- How many parameters does Qwen 2.5 Coder 32B Instruct have?
- Qwen 2.5 Coder 32B Instruct has 32.5 billion parameters.
- Is Qwen 2.5 Coder 32B Instruct good for coding?
- Yes. Qwen 2.5 Coder 32B Instruct scores 31.4 on LiveCodeBench, demonstrating strong code generation and completion capabilities.
- Can Qwen 2.5 Coder 32B Instruct run on a 16 GB GPU?
- No. At Q4_K_M, Qwen 2.5 Coder 32B Instruct needs 24.6 GB of VRAM, more than 16 GB. You will need a 32 GB GPU like the RTX 5090.
- Can Qwen 2.5 Coder 32B Instruct run on a 24 GB GPU?
- No. Even at Q4_K_M, Qwen 2.5 Coder 32B Instruct needs 24.6 GB. Consider a 32 GB card like the RTX 5090.
- What is the smallest quantization for Qwen 2.5 Coder 32B Instruct that fits in 24 GB of VRAM?
- At NVFP4, Qwen 2.5 Coder 32B Instruct needs 20.6 GB, the highest-quality quantization that fits in 24 GB of VRAM.
- What GPU do I need to run Qwen 2.5 Coder 32B Instruct locally?
- A 32 GB GPU is the minimum. At Q4_K_M, Qwen 2.5 Coder 32B Instruct needs 24.6 GB VRAM. Good option: RTX 5090 (32 GB).
- Does Qwen2.5-Coder-32B really support 128K (131,072-token) context?
- Yes, but not out of the box. The model's default config.json caps out at 32,768 tokens; YaRN scaling to the full 131,072-token window has to be added manually as a rope_scaling block, which Qwen's own documentation recommends enabling only when you actually need long context, since static YaRN trades away a little quality on shorter prompts. Most default deployments (a fresh Ollama pull, an unmodified vLLM config) run at the 32,768-token default unless you make that change yourself.
- Does Qwen2.5-Coder-32B fit on a 24GB GPU like the RTX 4090?
- At Q3_K_M, yes, cleanly: about 19.9GB at this site's 8k-token baseline. Q4_K_M, the quant this model recommends by default, does not: its real total is about 24.6GB, just over a 24GB card's usable ~22.8GB, so an RTX 4090 or RTX 3090 needs either a short context window (roughly 2,000 tokens or less) or a small CPU offload to run Q4_K_M. A 32GB card runs Q4_K_M fully in VRAM with real headroom.
- How does Qwen2.5-Coder-32B compare to GPT-4o for coding?
- Close, on Qwen's own numbers: 92.7 vs GPT-4o-2024-08-06's 92.1 on HumanEval, and 73.7 vs 74.4 on Aider's harder whole-file-edit benchmark, a comparison Qwen highlights directly in its own technical report, not an independent leaderboard result. Where the two diverge more is on newer, harder suites: GPT-4o edges ahead on LiveCodeBench and BigCodeBench in the same report. Treat "comparable to GPT-4o" as true for the specific benchmarks Qwen chose to lead with, not a blanket claim.