How Local LLM VRAM Is Actually Calculated (Weights + GQA KV Cache)

Most naive calculators simply multiply parameter count by quantization bits and ignore KV-Cache memory. Modern models like Llama 4, DeepSeek-R1, and Qwen 3 use Grouped-Query Attention (GQA), which reduces KV-cache size dramatically—and enabling Q8_0 KV-cache quantization in Ollama or llama.cpp cuts context VRAM in half with virtually zero quality loss.

MoE Speed Advantage (Why Llama 4 & Qwen 3 235B Run Fast)

Mixture-of-Experts (MoE) models require VRAM for all parameters, but token generation speed depends only on active parameters per token divided by GPU memory bandwidth (e.g., 1,792 GB/s on RTX 5090 vs. 546 GB/s on Apple M4 Max).