Questions about Qwen2.5 32B memory
How much GPU memory does Qwen2.5 32B need for inference?
The weights alone take about 65.5 GB in FP16, 32.8 GB in FP8 or INT8, and 18.4 GB in 4-bit group quantisation. Adding a 10% runtime allowance and the KV cache for one 8,192-token sequence (FP16 cache), the total comes to about 74.4 GB in FP16, 38.4 GB in FP8 and 22.6 GB in 4-bit.
How many H100s do I need to run Qwen2.5 32B?
By capacity alone, at least 1 H100 (80 GB each) for FP16, 1 for FP8 and 1 for 4-bit, at an 8,192-token context and one sequence. Tensor-parallel setups usually use a power of two, which makes the practical counts 1, 1 and 1. This counts memory only; speed depends on bandwidth and interconnect.
Can Qwen2.5 32B run on a single RTX 4090 or RTX 5090?
Yes on either (24 GB and 32 GB): up to INT4 (about 4.5-bit), needing about 22.6 GB at an 8,192-token context. A longer context or more concurrent requests raises the total. Offloading to system RAM can make a larger model load, but at a large cost in speed.
How much memory does the Qwen2.5 32B KV cache use?
262.1 KB per token with an FP16 cache (131.1 KB with FP8). One 131,072-token sequence therefore takes about 34.4 GB in FP16 (17.2 GB in FP8), and every extra concurrent 8,192-token sequence adds about 2.1 GB.
Things to know
- Estimate only. This is a capacity calculation. It does not model bandwidth, interconnect or software overhead.
Other models
- Llama 3.1 8B memory requirements
- Mistral 7B memory requirements
- Llama 3.1 70B memory requirements
- Qwen2.5 72B memory requirements
- Mixtral 8x7B memory requirements
- Llama 3.1 405B memory requirements
- DeepSeek-V3 memory requirements
All model memory requirements ยท Open Qwen2.5 32B in the calculator