VRAM Selection Guide for Local LLMs: How to Choose Hardware at Each Tier

    This guide explains how to plan VRAM for running large language models locally. It breaks down the three components of VRAM usage—model weights, KV cache, and runtime overhead—provides reference usage ranges across four model size tiers, and offers hardware recommendations for discrete GPUs and unified memory devices. It also covers the hidden costs of context length and concurrency, a simple estimation formula, and a practical validation workflow, helping you pick the right tier before downloading a model.

    1. The Three Components of VRAM Usage

    During local inference, VRAM is consumed by three main parts. The first is model weights, usually the largest portion. Weight size depends on the parameter count and storage precision. The same 7-billion-parameter model takes about 14GB when each parameter is stored as a 16-bit float, but only about 3.5GB when compressed to 4-bit integers.

    The second part is the KV cache. During generation, the model stores the intermediate states of previous tokens. This grows linearly with context length and the number of concurrent requests, and it has the biggest impact in long-text scenarios. The third part is runtime overhead, including temporary tensors created during computation, memory allocated by the runtime environment itself, and memory fragmentation.

    Many people look only at weight size when choosing hardware, then hit out-of-memory errors the first time they feed in a long document. Looking at the three parts separately explains why the same model runs fine in short conversations but fails with long contexts.

    2. Reference Usage by Parameter Tier

    The table below shows reference VRAM ranges for four common tiers after quantization. These figures come from practical experience with common hardware configurations. Actual results vary with the quantization method, context length, and inference implementation, so treat them as a starting point for selection, not a performance guarantee.

    Tier Reference VRAM after quantization Suitable hardware Target users
    Ultra-light ~2–4GB Lightweight devices with under 4GB Just validating the minimal runnable path
    Light ~4–6GB 6GB VRAM or 16GB unified memory and up Most people’s first local experience
    Mid-large ~12–16GB 16GB VRAM tier is comfortable Users who want stronger reasoning without the heaviest models
    Large ~20–24GB 24GB VRAM and above Users who prioritize output quality, coding ability, and long context

    Two things to note when reading the table. First, the gaps between tiers mainly come from parameter scale. Second, the gaps within a tier mainly come from context length and concurrency. The lower bounds typically correspond to short-context, single-request scenarios, so leave headroom for real-world use.

    3. Choosing by Discrete GPU Tier

    3.1 Around 6GB VRAM

    At this level, start with the ultra-light or light tier. Mid-large and large tiers will almost certainly exceed available VRAM. Even if a model manages to load, the system may constantly swap data between VRAM and system memory, causing a noticeable drop in generation speed.

    3.2 8GB to 12GB VRAM

    The light tier runs fairly stably. You can try low-bit quantized versions of larger models, but keep the context length conservative and reserve 10% to 20% headroom for runtime overhead. When VRAM usage approaches the limit, long conversations can easily trigger an overflow, so avoid pushing right up against the ceiling.

    3.3 12GB to 16GB VRAM

    The mid-large tier becomes a realistic option here. Being able to load a model is not the same as running it stably—you need to measure time to first token and tokens per second. If generation speed is unacceptably low, the day-to-day experience will be poor even if VRAM is sufficient.

    3.4 24GB VRAM and Above

    The large tier is worth trying. Keep in mind that the table is a reference, not a guarantee. Long contexts significantly increase KV cache usage, and a single long-document analysis can consume several extra gigabytes, so at this level you should still evaluate against your actual context requirements.

    4. Selection Logic for Unified Memory Devices

    Devices with unified memory architecture have no dedicated VRAM; the processor and accelerators share the same pool of memory. When selecting hardware, look at the total memory available to the model rather than a dedicated VRAM figure. The operating system and other applications also use this memory, so you typically need to reserve a few gigabytes.

    Unified memory capacity Recommended tier Notes
    16GB Ultra-light or light Mid-large can load, but generation is slow
    32GB Light tier runs smoothly Mid-large is worth trying
    64GB Both mid-large and large work Suitable for users who care about quality but don’t want a discrete GPU
    128GB and above Large tier with no pressure More stable under concurrency

    Generation speed on unified memory devices is mainly limited by memory bandwidth. Given equal capacity, the device with higher bandwidth usually generates faster. So between two 32GB devices, the newer generation typically delivers a better experience. In short, capacity determines whether a model can run; bandwidth determines how fast it runs.

    5. The Hidden Cost of Context Length and Concurrency

    KV cache size is proportional to context length and to the number of concurrent requests. Doubling the context from 4K to 8K roughly doubles the KV cache. If you serve multiple requests at once, each request occupies its own cache.

    There are three ways to control this cost. First, set a reasonable maximum context for your task instead of defaulting to the maximum. Second, reduce concurrency or queue requests. Third, where the inference environment supports it, store the KV cache at lower precision. These three approaches are usually cheaper than new hardware and easier to validate.

    6. Estimating with a Formula

    Before downloading a model, you can estimate VRAM requirements with a simple formula that splits total usage into weights, KV cache, and runtime overhead. The following is illustrative pseudocode; the values only demonstrate the calculation.

    1. function estimateVRAM(paramsB, bitWidth, kvBytes, layers, kvDim, contextLen, concurrency, overheadRatio=0.15):
    2. weights = paramsB * bitWidth / 8 # in GB
    3. kvCache = 2 * layers * kvDim * contextLen * concurrency * kvBytes / 1e9 # in GB
    4. return (weights + kvCache) * (1 + overheadRatio)

    Take a 7-billion-parameter model with 4-bit quantization, 32 layers, a KV dimension of 1024, a context length of 8192, a single concurrent request, and 16-bit KV cache storage. The calculation: weights are about 3.5GB, the KV cache is about 1.07GB, totaling 4.57GB, which multiplied by the 1.15 overhead factor gives about 5.3GB. This fits on an 8GB device, but with limited headroom.

    Note that the KV dimension should reflect the model’s actual attention architecture, which varies widely across designs. The formula is only for order-of-magnitude estimates; the final conclusion must come from real measurements.

    7. A Practical Validation Workflow

    1. Start with a short context to confirm the model loads and the basic pipeline works.
    2. Gradually increase the context length and record peak VRAM usage.
    3. Measure time to first token and generation speed. If speed falls below your acceptable threshold, drop down one tier.
    4. Reserve VRAM headroom instead of filling it completely.