Qwen2.5-1.5B-Instruct VRAM requirements
Qwen2.5-1.5B-Instruct needs about 1.8 GiB of GPU memory at Q4_K_M with an 8K context. 8 GB GPUs like the RTX 4060 are enough. At 32K context it needs about 2.5 GiB, which fits 8 GB cards.
These are estimates from the model's config and file sizes, not measurements. How we calculate
VRAM by quantization
| Quant | File size | Total at 8K | Total at 32K |
|---|---|---|---|
| BF16 safetensors | 3.1 GB | 3.7 GiB–5.6 GiB | 4.4 GiB–6.3 GiB |
| GGUF Q8_0 (Qwen) | 1.9 GB | 2.1 GiB–2.5 GiB | 2.8 GiB–3.2 GiB |
| GGUF Q6_K (Qwen) | 1.5 GB | 1.7 GiB–2.1 GiB | 2.4 GiB–2.8 GiB |
| GGUF Q5_K_M (Qwen) | 1.3 GB | 1.5 GiB–2.0 GiB | 2.2 GiB–2.7 GiB |
| GGUF Q4_K_M (Qwen) | 1.1 GB | 1.4 GiB–1.8 GiB | 2.0 GiB–2.5 GiB |
Names like Q4_K_M and Q8_0 are quantization levels: fewer bits per weight means a smaller file and a small loss of quality. Totals add the KV cache (memory that grows with context length) and runtime buffers, for one chat at a time. Download files
Which GPUs can run it
| Memory | Usable | Examples | At 8K | At 32K |
|---|---|---|---|---|
| 8 GB | 7.0 GiB | RTX 4060, RTX 3060, RTX 5060 Ti +1 more | Runs comfortably | Runs comfortably |
| 10 GB | 9.0 GiB | RTX 3080 | Runs comfortably | Runs comfortably |
| 12 GB | 11.0 GiB | RTX 4070, RTX 3060, RTX 5070 +2 more | Runs comfortably | Runs comfortably |
| 16 GB | 14.0 GiB | RTX 4080 SUPER, RTX 5080, RX 7800 XT +5 more | Runs comfortably | Runs comfortably |
| 16 GB | 15.0 GiB | RTX 4060 Ti, RTX 4070 Ti SUPER | Runs comfortably | Runs comfortably |
| 20 GB | 18.0 GiB | RX 7900 XT | Runs comfortably | Runs comfortably |
| 24 GB | 22.0 GiB | RTX 4090, RX 7900 XTX, RTX 3090 | Runs comfortably | Runs comfortably |
| 32 GB | 30.0 GiB | RTX 5090 | Runs comfortably | Runs comfortably |
| 48 GB | 46.0 GiB | L40S | Runs comfortably | Runs comfortably |
| 80 GB | 78.0 GiB | A100, H100 | Runs comfortably | Runs comfortably |
| 64 GB · unified | 54.0 GiB | Apple M2 Max | Runs comfortably | Runs comfortably |
| 128 GB · unified | 96.0 GiB | Ryzen AI Max+ 395 | Runs comfortably | Runs comfortably |
| 128 GB · unified | 112.0 GiB | DGX Spark (GB10) | Runs comfortably | Runs comfortably |
| 128 GB · unified | 116.0 GiB | Apple M4 Max | Runs comfortably | Runs comfortably |
GGUF Q4_K_M (Qwen), one chat at a time. Usable memory is the total minus a default reserve for the OS and display.
Architecture
- PublisherQwen
- Hugging Face
Qwen/Qwen2.5-1.5B-Instruct - Total parameters1,543,714,304
- Layers28
- Query heads12
- KV heads2 (gqa)
- Head dimension128
- Context window32,768
The KV cache grows with context: about 0.2 GiB at 8K and 0.9 GiB at 32K in FP16. The model has 2 KV heads for 12 query heads (grouped-query attention), which keeps that cache small.
FAQ
Is the download size the same as VRAM use?
No. The Q4_K_M file is about 1 GiB, but with an 8K context the total is about 1.8 GiB, because the KV cache and runtime buffers sit on top of the weights.
How much memory does a longer context add?
For Qwen2.5-1.5B-Instruct the KV cache is about 0.2 GiB at 8K tokens and 0.9 GiB at 32K in FP16. The weights stay the same size.
Which quantization should I use?
Start with Q4_K_M (about 1.8 GiB at 8K). If you have the memory, BF16 needs about 5.6 GiB and stays closer to the original weights.
Download files
| Quant | Files | File size | Engine |
|---|---|---|---|
| BF16 safetensors | model.safetensors | 3.09 GB 3,087,467,144 bytes | vllm |
| GGUF Q8_0 (Qwen) | qwen2.5-1.5b-instruct-q8_0.gguf | 1.89 GB 1,894,532,128 bytes | llama.cpp, ollama |
| GGUF Q6_K (Qwen) | qwen2.5-1.5b-instruct-q6_k.gguf | 1.46 GB 1,464,178,720 bytes | llama.cpp, ollama |
| GGUF Q5_K_M (Qwen) | qwen2.5-1.5b-instruct-q5_k_m.gguf | 1.29 GB 1,285,494,304 bytes | llama.cpp, ollama |
| GGUF Q4_K_M (Qwen) | qwen2.5-1.5b-instruct-q4_k_m.gguf | 1.12 GB 1,117,320,736 bytes | llama.cpp, ollama |
How this number is calculated
Total = weight file + KV cache + runtime buffers. The range spans low to high runtime overhead for the engine shown.
GGUF Q4_K_M (Qwen) · 8,192 tokens · llama.cpp
- Weights (file)
- 1.04 GiB (1,117,320,736 bytes)
- KV cache
- 0.22 GiB (234,881,024 bytes)
- Runtime buffers
- 0.13 GiB–0.54 GiB
- Total
- 1.38 GiB–1.80 GiB
- Requested context is within the recorded native window of 32768 tokens.
- Full-resident weight estimates use total parameters, including inactive MoE experts.
- Weight bytes come from the selected weight files only, not from every file in the repository.
- Download file size is not peak GPU memory. Runtime layout, allocator padding, and KV are extra.
- Counted files: qwen2.5-1.5b-instruct-q4_k_m.gguf.
- Context budget is the number of cached tokens per sequence (prompt plus reserved generation).
- Concurrent sequences share one model replica; weights are not multiplied by sequence count.
- KV dtype is independent of weight quantization unless you change it.
Related pages
Sources
- Qwen2.5-1.5B-Instruct model card
- config.json — revision 989aa7980e4cf806f80c7fef2b1adb7bc71aa306
- Artifact repo Qwen/Qwen2.5-1.5B-Instruct-GGUF
Calculator
Loading catalog snapshot…
Pick a model to see how much memory it needs.