Questions about DeepSeek-V3 memory
How much GPU memory does DeepSeek-V3 need for inference?
The weights alone take about 1,342 GB in FP16, 671 GB in FP8 or INT8, and 377 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 1,477 GB in FP16, 739 GB in FP8 and 416 GB in 4-bit.
How many H100s do I need to run DeepSeek-V3?
By capacity alone, at least 19 H100s (80 GB each) for FP16, 10 for FP8 and 6 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 32, 16 and 8. This counts memory only; speed depends on bandwidth and interconnect.
Can DeepSeek-V3 run on a single RTX 4090 or RTX 5090?
No. Even 4-bit needs about 416 GB at an 8,192-token context, more than the 24 GB of an RTX 4090 or the 32 GB of an RTX 5090. 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 DeepSeek-V3 KV cache use?
DeepSeek-V3 uses multi-head latent attention, which stores a compressed latent per layer. That is 70.3 KB per token with an FP16 cache, so one 131,072-token sequence takes about 9.2 GB, far less than a standard-attention model of this size.
Things to know
- Mixture-of-experts. Only part of the model is active for each token, but every expert has to sit in memory, so the figures use the full 671 billion parameters.
- 671B is the main model. The Hugging Face repo totals about 684.5B because it also carries the multi-token-prediction module. Latent dim = kv_lora_rank 512 + rope dim 64.
- 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
- Qwen2.5 32B memory requirements
- Llama 3.1 70B memory requirements
- Qwen2.5 72B memory requirements
- Mixtral 8x7B memory requirements
- Llama 3.1 405B memory requirements
All model memory requirements ยท Open DeepSeek-V3 in the calculator