# Local LLM VRAM Requirements: A Complete Guide to GPU Memory Configuration

    Local deployment of large language models often runs into a gap between the VRAM numbers vendors publish and the actual hardware threshold needed to get a model running. This guide explains what VRAM consumption is made of (model weights, KV cache, and runtime overhead), shows how to estimate weight memory by hand with a simple params × bytes-per-param formula, and lays out model selection by parameter scale and hardware tier — from 6GB entry-level GPUs to 24GB+ high-end cards, plus unified-memory devices where memory bandwidth rather than dedicated VRAM is the limiting factor. You will also learn why quantized sizes matter more than full-precision theory, why MoE models must be budgeted by total rather than active parameters, and how to avoid OOM and slow decode speeds by accounting for context length, memory bandwidth, and safe headroom.

    Introduction: Why “how much VRAM does this model need” is a real question

    Whenever a new generation of open-source LLM is released, the first obstacle for local deployment enthusiasts is almost always the same: the VRAM figure in the official documentation rarely matches the hardware threshold at which you can actually get the model running.

    The reason is simple. What vendors document is usually the theoretical footprint of the raw BF16/FP16 weights — the model’s size in its “full-fat” state. But for anyone planning to run these models on consumer hardware, what actually gets deployed is a quantized build (INT8, INT4, or lower), so those theoretical numbers are useful only as an upper bound, not as a selection criterion.

    This article tackles that pain point by covering where VRAM demand comes from, what the real footprint looks like after quantization, and how to reason about model selection at each hardware tier. The models discussed here are described by parameter scale (lightweight, mid-sized mixture-of-experts, large dense) rather than by any specific product, so you can apply the same logic to any open-source model in the corresponding range.

    First, understand where the VRAM actually goes

    Before making a selection, you need to understand that VRAM usage is not a single variable. It is made up of three parts:

    1. VRAM usage ≈ model weights + KV cache + runtime overhead
    • Model weights: determined jointly by parameter count and precision; the largest component.
    • KV cache: cached key-value pairs for historical tokens during inference; grows with context length and concurrency.
    • Runtime overhead: the framework, the CUDA context, temporary buffers, and so on; reserving 1–2GB is a safe default.

    Many people watch only the weights and ignore the other two — which is exactly why “the parameter count is fine but it still blows up VRAM.”

    A VRAM estimation formula you can do by hand

    Weight memory usage can be estimated roughly as “parameter count × bytes per parameter”:

    1. def estimate_weight_gb(params_billion: float, bits: int) -> float:
    2. """
    3. Estimate model weight VRAM usage (GB).
    4. params_billion: parameter count in billions (e.g. 31 means 31B)
    5. bits: quantization precision (FP16=16, INT8=8, INT4=4)
    6. """
    7. bytes_per_param = bits / 8
    8. return params_billion * bytes_per_param
    9. # Example: a large dense model of roughly 31B parameters
    10. for bits in (16, 8, 4):
    11. print(f"{bits}bit weights: {estimate_weight_gb(31, bits):.1f} GB")
    12. # Output:
    13. # 16bit weights: 62.0 GB
    14. # 8bit weights: 31.0 GB
    15. # 4bit weights: 15.5 GB

    The same 31B model needs about 62GB at FP16, but drops to roughly 15.5GB of weights once quantized to INT4. Add the KV cache and runtime overhead on top of that, and real-world deployment typically lands in the 20–24GB range — which matches the empirical numbers from quantized deployments closely. This formula gives you a quantified expectation before you commit, instead of blindly trial-and-erroring your way through.

    Quick reference table: parameter scale, VRAM, and hardware tier

    The table below lists quantized VRAM usage and a recommended hardware tier by parameter scale. Use it as an initial screening reference:

    Model scale VRAM after quantization Recommended hardware tier Who it suits
    Lightweight (billions of params) ~2–6GB 6GB VRAM to start Validating a minimal runnable path
    Mid-sized MoE (~26B total / ~4B active per token) ~12–16GB 16GB tier for more headroom Wanting stronger inference without the heaviest model
    Large dense (~31B) ~20–24GB 24GB and above Prioritizing quality, code, and long context

    One point about mid-sized mixture-of-experts (MoE) architectures needs special mention: such models have a large “total parameter count” (26B, for example), but each token activates only a small subset of experts (4B, for example). The benefit is that compute demand is close to that of a much smaller model, but the price is that the weights of every expert must still stay resident in VRAM. So its VRAM footprint should be estimated from the total parameter count, not the active parameter count — this is the most common trap in model selection.

    How to choose by VRAM tier

    Around 6GB VRAM (entry-level discrete GPU)
    Start honestly with lightweight models in the 2–6GB range. Mid-sized or large models are not impossible to attempt, but treating them as your default starting point makes it very easy to blow up VRAM the moment you launch.

    8–12GB VRAM (mainstream)
    Lightweight models run with more stability, and you can also evaluate lower-bit quantized versions of mid-sized models. The key reminder at this tier: leave room for context length and runtime overhead. Do not pick a model right up against the theoretical limit, or a longer conversation will trigger OOM.

    12–16GB VRAM (upper-mid-range)
    This is where mid-sized MoE models become worth taking seriously. But “loads successfully” is not the same as “runs smoothly” — at this tier you should care more about real inference speed (especially MoE expert-routing overhead) than about the numbers on paper.

    24GB VRAM and above (high-end)
    Large dense models are more worth a try, with noticeably better experience for long context and code generation. Keep in mind, though: the VRAM table is a reference, not a guarantee. Once you stretch the context out long enough, the KV cache grows linearly and VRAM pressure can end up exceeding the weights themselves.

    How to read unified memory devices

    For devices with a unified memory architecture (CPU and GPU sharing the same pool of memory), the selection logic differs from discrete GPUs: what matters is not “dedicated VRAM” but “total unified memory,” and inference speed is primarily constrained by memory bandwidth.

    Unified memory capacity Recommended model scale Notes
    16GB Lightweight to start; mid-sized is barely runnable and slow Enough for everyday conversation; large models are mainly bandwidth-limited
    32GB Lightweight runs smoothly; mid-sized worth trying A clear improvement over 16GB
    64GB Both mid-sized and large models are runnable For users who value quality without adding a discrete GPU

    The advantage of the unified memory architecture is that “memory is VRAM,” so available capacity is usually far larger than a comparably priced discrete GPU; the disadvantage is relatively limited bandwidth, so large-model decode speed often falls short of a high-end discrete GPU. On such devices, make sure the model loads completely first, then judge whether the speed is acceptable.

    Beyond VRAM: two factors that are more easily overlooked

    1. Memory bandwidth determines decode speed. When a large model generates token by token, every token requires reading the entire set of weights from VRAM or memory, so bandwidth is the core bottleneck in the decode phase. With the same sufficient VRAM, a device with higher bandwidth generates noticeably faster.

    2. Context length is a hidden cost. The KV cache grows approximately linearly with context length. A model that runs easily at short context may directly double or multiply its VRAM usage several times over at 32K or 64K. Be sure to stress-test at the context length you will actually use, rather than drawing conclusions from the shortest input.

    Practical selection checklist

    Before you start, walk through these steps:

    1. Estimate the weights first: use the formula above to compute weight VRAM at your target quantization precision.
    2. Reserve headroom: add 2–4GB on top of the weights for the KV cache and runtime.
    3. Match the tier: compare against your VRAM or unified memory capacity, and pick a model that stays under roughly 80% of available capacity.
    4. Stress-test the real scenario: run an actual test at the context length you plan to use, watching peak VRAM and decode speed.
    5. Runnable ≠ usable: confirm that speed is acceptable and long conversations do not crash, then lock it in as your long-term setup.

    Conclusion

    “Exactly how much VRAM a model needs” has never had a single answer — it depends on the combination of parameter scale, quantization precision, context length, and runtime environment. Rather than memorizing the theoretical figure printed by the vendor, understand the logic of what VRAM is made of: estimate the weights with the formula first, then reserve headroom for the KV cache and runtime, and finally match against your hardware tier.

    Once you have this method, whether you are doing lightweight validation or pursuing high-quality local inference, you can make more rational model-selection decisions with fewer pitfalls under limited hardware resources.