How much VRAM does Mixtral 8x7B need at Q4_K_M? MoE memory math

By TechCompare · Updated · How we check

Mixtral 8x7B's bottleneck is VRAM capacity because all 8 experts stay loaded. At 32K context the 36.3 GB total makes a 40 GB card the practical minimum. A 32 GB card falls short even at a 4K context (32.2 GB), and a 24 GB card can't hold the 29 GB of weights. When it fits, it generates at about the speed of a 12-13B dense model.

Calculator

Estimated VRAM required

36.3 GB

47B params at Q4_K_M, 32,768 token context, batch 1, inference.

Weights
28.7 GB
KV cache
4.3 GB
Overhead
3.3 GB

Estimate accuracy: Weights within ~3% of most GGUF files from Q4_K_M up, ~7% for Q3_K_M and Q2_K. KV cache within ~5% for standard GQA models, ~10% for MLA or hybrid state estimates. Real VRAM may vary with framework (vLLM vs llama.cpp vs Transformers), Flash Attention, and driver overhead.

Hardware that fits

Unified memory machines show a model budget, not their installed memory. We hold back 8 GB for the system, or use the vendor's GPU limit when that's lower. It's a planning estimate, not a hard limit.

A100 40GB
Datacenter
40 GB
91% used
RTX PRO 5000 48GB
Pro
48 GB
76% used
Apple M5 Pro 64GB
Unified
~56 GB
65% of estimate

Multi-GPU setups

2× RTX 3090
Consumer · 18.7 GB per card
48 GB
78% used

Pooled cards show up once a model outgrows the biggest single card of that kind. Each card past the first keeps about 1 GB for its own buffers, and that's counted here. Your inference engine has to support the split, and speed also depends on how the cards connect.

Just barely too small

RTX 5090
Consumer
32 GB
short by 4.3 GB

Mixtral 8x7B at Q4_K_M with 32K context needs about 37 GB of VRAM. Mixture-of-experts is the wrinkle here: even though only 2 of the 8 experts activate per token, all 8 must be in memory at all times. That makes Mixtral 8x7B effectively a 47B-parameter model from a memory standpoint, even though it computes like a 12B.

How this is calculated

MoE is a compute optimization, not a memory one. The 8 expert FFN blocks plus the shared attention give Mixtral roughly 47B total parameters that must all be loaded in VRAM.

At Q4_K_M that's about 29 GB of weights, plus ~4.3 GB of KV cache at 32K context. The benefit is throughput: inference runs at the speed of a 12B dense model, so you get 12B-class generation speed as long as the whole 47B pool fits.

Verdict

Budget VRAM for all 47B parameters even though only 12B compute each token, because the router can hit any expert on any forward pass.

Add 3.3 GB of overhead to the weights and the cache, and the total at 32K context comes to about 37 GB. A 40 GB card holds it at 32K. The payoff is throughput that matches a 12-13B dense model because only 2 experts compute per token, which is the structural MoE win that justifies the memory cost.

More Mistral scenarios

Kimi K3.1 Pro at Q4_K_M
A 2.78T expert pool with 24 latent attention layers and fixed state in the other 69.
View details
Mistral Large 4 at Q4_K_M
A 1T expert pool with 63 latent cache owners and 44 layers that also store an index key.
View details
Muse Spark Open at Q4_K_M
Only 16 of its 62 layers grow with context, and the other 46 hold a 2,048 token window.
View details

Frequently asked questions

Why does Mixtral 8x7B use so much memory if only 2 experts run?
Because all 8 experts must be in memory at all times. The router selects which 2 to activate per token, but switching is per-token, so swapping experts in and out of VRAM would be far slower than just keeping them all loaded.
How fast is Mixtral 8x7B compared to a dense 47B model?
Significantly faster. Generation throughput approximates a dense 12-13B model since only 2 of 8 experts compute per token, even though total memory is the full 47B at the chosen quant.
Why does a Mixture-of-Experts model still need all parameters in memory?
Because any expert might be picked for the next token. The router only activates two experts per forward pass, but the identity of those experts changes token to token, so the full 47B pool has to be loadable at inference time even though only 13B's worth does math each cycle. Memory holds the whole team, but compute only pays for the players on the field.