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.
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.
Multi-GPU setups
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
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
Related guides
Frequently asked questions
Why does Mixtral 8x7B use so much memory if only 2 experts run?
How fast is Mixtral 8x7B compared to a dense 47B model?
Why does a Mixture-of-Experts model still need all parameters in memory?
Related tools
RAM Latency Calculator
Convert DDR3/DDR4/DDR5 timings (CL, tRCD, tRP, tRAS) into true latency in nanoseconds.
Use toolPower Cost Estimator
Estimate annual electricity costs for your PC, Server, or TV.
Use toolData Transfer Calculator
Calculate file transfer time or the speed you need over USB, Wi-Fi or Ethernet, with latency.
Use toolMemory and Storage Throughput Visualizer
Visualize the large speed gap between CPU cache, RAM, and storage.
Use tool