Questions about Mixtral 8x7B memory
How much GPU memory does Mixtral 8x7B need for inference?
The weights alone take about 93.4 GB in FP16, 46.7 GB in FP8 or INT8, and 26.3 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 104 GB in FP16, 52.6 GB in FP8 and 30.1 GB in 4-bit.
How many H100s do I need to run Mixtral 8x7B?
By capacity alone, at least 2 H100s (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 2, 1 and 1. This counts memory only; speed depends on bandwidth and interconnect.
Can Mixtral 8x7B run on a single RTX 4090 or RTX 5090?
RTX 4090 (24 GB): no, even 4-bit needs about 30.1 GB at an 8,192-token context. RTX 5090 (32 GB): yes, up to INT4 (about 4.5-bit), needing about 30.1 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 Mixtral 8x7B KV cache use?
131.1 KB per token with an FP16 cache (65.5 KB with FP8). One 131,072-token sequence therefore takes about 17.2 GB in FP16 (8.6 GB in FP8), and every extra concurrent 8,192-token sequence adds about 1.1 GB.
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 46.7 billion parameters.
- 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
- Llama 3.1 405B memory requirements
- DeepSeek-V3 memory requirements
All model memory requirements ยท Open Mixtral 8x7B in the calculator