Free tools / LLM memory calculator / Qwen 2.5 32B
Qwen 2.5 32B VRAM and RAM requirements
Qwen 2.5 32B needs about 22 GB of VRAM in Q4_K_M, the quantization Ollama downloads by default, at a 4K context, and about 29 GB at its full 32K context. The weights take about 20 GB and the rest is the context cache plus about 1 GB for the GPU runtime. On a CPU server without a GPU it needs about 22 GB of RAM at 4K.
Qwen 2.5 32B is Alibaba's largest Apache 2.0 model in the 2.5 series. DeepSeek R1 32B and Qwen3 32B have the same parameter count and context cache size, so at the same context they all need the same memory.
Qwen 2.5 32B memory by quantization and context
Memory Qwen 2.5 32B needs for each quantization at 4K, 32K tokens of context. VRAM total adds about 1 GB for the GPU runtime, RAM total about 1.5 GB for the system and Ollama on a CPU server.
| Quantization | Context | Weights | KV cache | VRAM total | RAM total (CPU) |
|---|---|---|---|---|---|
| Q4_K_M | 4K | 20 GB | 1.1 GB | 22 GB | 22 GB |
| 32K | 20 GB | 8.6 GB | 29 GB | 30 GB | |
| Q5_K_M | 4K | 23 GB | 1.1 GB | 25 GB | 26 GB |
| 32K | 23 GB | 8.6 GB | 33 GB | 33 GB | |
| Q6_K | 4K | 27 GB | 1.1 GB | 29 GB | 29 GB |
| 32K | 27 GB | 8.6 GB | 36 GB | 37 GB | |
| Q8_0 | 4K | 35 GB | 1.1 GB | 37 GB | 37 GB |
| 32K | 35 GB | 8.6 GB | 44 GB | 45 GB | |
| FP16 | 4K | 66 GB | 1.1 GB | 68 GB | 68 GB |
| 32K | 66 GB | 8.6 GB | 75 GB | 76 GB |
Weights are the parameter count times the bits per weight of each quantization, the KV cache comes from the layer and attention head counts in the model config at FP16, as Ollama stores it by default. The sizes match Ollama downloads within a few percent.
GPUs that fit Qwen 2.5 32B
In Q4_K_M at 4K, the cheapest GPU server that holds Qwen 2.5 32B is the L4 (24 GB) at about $1.16 an hour, generating about 13 tokens per second. A 24 GB card such as the L4 or A10 holds it in Q4_K_M up to about 8K tokens of context. Unquantized FP16 needs about 68 GB, which starts at the 4× RTX 4000 Ada (80 GB).
| Qwen 2.5 32B setup | VRAM needed | Cheapest GPU servers that fit |
|---|---|---|
| Q4_K_M at 4K | 22 GB |
|
| Q4_K_M at 32K | 29 GB |
|
| Q8_0 at 4K | 37 GB |
|
| FP16 at 4K | 68 GB |
|
Prices are for the cheapest city of each card, billed by the hour. Speed is generation with Ollama, estimated from memory bandwidth and our runs on the LLM speed benchmark. All cards are on the GPU servers page.
Running Qwen 2.5 32B on a CPU server
Yes, a CPU-only server with 24 GB of RAM holds Qwen 2.5 32B in Q4_K_M at 4K, since it needs about 22.4 GB. On 16 shared vCPU expect about 1.5 tokens per second, suited to batch jobs that can wait. At the full 32K context the RAM need grows to about 30 GB.
| CPU server | RAM | Tokens/s in Q4_K_M | Price |
|---|---|---|---|
| 16 shared vCPUHetzner | 32 GB | about 1.5 | $120/mo$0.164/hr |
| 2 dedicated vCPULinode | 24 GB | under 1 | $93/mo$0.127/hr |
Qwen 2.5 32B in Ollama
ollama run qwen2.5:32b downloads the Q4_K_M build. Every quantization in the table has its own tag, listed next to its row.
- Q4_K_M
ollama run qwen2.5:32b - Q5_K_M
ollama run qwen2.5:32b-instruct-q5_K_M - Q6_K
ollama run qwen2.5:32b-instruct-q6_K - Q8_0
ollama run qwen2.5:32b-instruct-q8_0 - FP16
ollama run qwen2.5:32b-instruct-fp16
What to know about Qwen 2.5 32B
- Qwen 2.5 32B holds up to 32K tokens, so the table stops at 32K.
- At 32K the context cache adds about 8.6 GB on top of about 20 GB of Q4_K_M weights.
Frequently asked questions
How much VRAM does Qwen 2.5 32B need?
About 22 GB in Q4_K_M at a 4K context, about 37 GB in Q8_0 and about 68 GB in FP16. The cheapest GPU that holds it in Q4_K_M is the L4 (24 GB). A longer context adds more: about 29 GB in Q4_K_M at 32K.
Can Qwen 2.5 32B run on a CPU without a GPU?
Yes, a CPU-only server with 24 GB of RAM holds Qwen 2.5 32B in Q4_K_M at 4K, since it needs about 22.4 GB. On 16 shared vCPU expect about 1.5 tokens per second, suited to batch jobs that can wait. At the full 32K context the RAM need grows to about 30 GB.
How much memory does Qwen 2.5 32B need for a 32K context?
About 29 GB of VRAM or 30 GB of RAM in Q4_K_M. The context cache alone takes about 8.6 GB at 32K tokens, next to about 20 GB of weights. Ollama uses a 4K context unless you raise num_ctx, so the cache stays small by default.
Similar models
Further reading
VRAM and RAM for other models
- Llama 3.2 3B
- Qwen 2.5 7B
- DeepSeek R1 7B
- Llama 3.1 8B
- Qwen3 8B
- Qwen 2.5 14B
- DeepSeek R1 14B
- Phi-4 14B
- Qwen3 14B
- Mistral Small 3 24B
- DeepSeek R1 32B
- Qwen3 32B
- Llama 3.3 70B
- DeepSeek R1 70B
Another model, quantization or context? Use the LLM VRAM and RAM calculator