Local LLM VRAM Requirements: A Guide to Choosing Hardware by Parameter Size
This guide explains why GPU VRAM or unified memory capacity is usually the deciding factor for running large language models locally. It shows how to estimate weight size from parameter count and quantization precision (FP16, INT8, INT4), provides reference VRAM ranges for roughly 2B, 4B, 27B MoE, and 32B dense models, and explains why Mixture-of-Experts models need far more VRAM than their active parameter count suggests. It then covers how to choose hardware across discrete GPU tiers from 6GB to 24GB and above, and across unified memory capacities of 16GB, 32GB, 64GB, and 128GB. Finally, it highlights three commonly overlooked variables — context length, runtime overhead, and quantization format compatibility — and closes with a five-step selection checklist for finding a local inference setup that is genuinely fast and stable.
1. Why VRAM Is the First Gate
When running LLMs locally, CPU, system memory, and disk all matter, but what usually determines whether a model will run at all is the capacity of your GPU VRAM or unified memory. The reason is straightforward: model weights must be fully loaded into VRAM to take part in computation. Once the capacity is exceeded, inference either fails outright or is forced to swap part of the data out to system memory or even disk, and speed drops off a cliff.
So the first question when choosing hardware is not “how good is this model,” but “does my device have room for it, and is there any headroom left after it loads.”
2. Parameter Size, Quantization Precision, and VRAM Usage
VRAM usage can be broken down roughly into three parts:
VRAM ≈ model weights + KV cache + runtime overhead
Model weights are the easiest part to estimate, approximately equal to “parameter count × bytes per parameter.” The common correspondence between weight precision and bytes per parameter is:
- Half precision (FP16/BF16): about 2 bytes per parameter
- 8-bit integer quantization (INT8): about 1 byte per parameter
- 4-bit integer quantization (INT4): about 0.5 bytes per parameter
Using a model of roughly 7B parameters as an example:
FP16 : 7B × 2 B ≈ 14 GBINT8 : 7B × 1 B ≈ 7 GBINT4 : 7B × 0.5 B ≈ 3.5 GB (plus dequantization and alignment overhead)
This is why quantization is the core technique for fitting large models into small amounts of VRAM. One caveat: quantization reduces memory usage at the cost of some accuracy, and the loss becomes more noticeable at lower bit widths. For tasks such as code generation and logical reasoning, this especially needs to be verified in practice — theoretical capacity figures alone are not enough.
3. VRAM Reference Ranges by Model Size
Taking parameter count, quantization method, and runtime overhead together, the following rules of thumb apply (all figures are after quantization):
| Model size | Quantized VRAM usage | Suggested hardware starting point | Typical use case |
|---|---|---|---|
| ~2B parameters | ~2–4 GB | Device with 4GB VRAM | Validating a minimal working pipeline |
| ~4B parameters | ~4–6 GB | 6GB VRAM or 16GB unified memory | First local experience for most people |
| ~27B total (MoE, ~4B active) | ~12–16 GB | 16GB VRAM for more comfort | Wanting stronger reasoning without the heaviest models |
| ~32B dense | ~20–24 GB | 24GB or more | Prioritizing quality, code, and long context |
A special note on Mixture-of-Experts (MoE) architectures: their total parameter count is large, but each inference pass activates only a small subset of the expert networks. As a result, compute demand is close to that of a small model, while VRAM still has to hold all the weights. This is exactly why a model described as “27B total, 4B active” runs at a speed comparable to a small model yet needs considerably more VRAM — active parameters are not the whole story when selecting hardware.
4. Choosing by Discrete GPU VRAM Tier
- Around 6GB (entry-level GPUs): Start with small models of roughly 4B parameters. Larger models are worth experimenting with, but as a default starting point they will often run out of VRAM immediately.
- 8–12GB (mid-range GPUs): Small models run more comfortably, and you can also evaluate 4-bit quantized versions of larger models. Leave room for context and runtime overhead — do not pick a configuration right at the capacity ceiling.
- 12–16GB (high-end GPUs): This is where MoE-class models become worth serious experimentation. Keep in mind that “it starts” is not the same as “it runs well”; focus on actual inference speed rather than nominal specifications.
- 24GB and above (flagship GPUs): Dense models of roughly 32B become worth trying. That said, the VRAM table is only a reference — long context still increases usage significantly.
5. Choosing Unified Memory Devices
Some devices use a unified memory architecture, where the CPU and graphics cores share the same memory pool. For these, the criterion is not discrete VRAM but total unified memory capacity. The rules of thumb are:
| Unified memory capacity | Recommended model size | Notes |
|---|---|---|
| 16GB | 4B to start; 27B runs but slowly | Enough for everyday chat; large models are mainly limited by memory bandwidth |
| 32GB | 4B runs smoothly; 27B (MoE) worth trying | A noticeable improvement over 16GB |
| 64GB | Both 27B and 32B can run | Suited to users who want quality without a discrete GPU |
| 128GB | 32B with no pressure; more stable under concurrency | The advantage zone of high-end workstations |
It is worth emphasizing that inference speed on unified memory architectures is often constrained by memory bandwidth rather than capacity. At the same capacity, newer-generation chips are usually more efficient. When running large models, bandwidth often matters more to the actual experience than simply adding capacity.
6. Three Easily Overlooked Variables
- Context length: The KV cache grows roughly linearly with context length. A model that fits on paper does not necessarily fit once a very long context is added, so long-text scenarios need extra VRAM reserved.
- Runtime overhead: Inference frameworks, VRAM fragmentation, and batched concurrency all consume additional resources, so actual usage is typically higher than a pure weight estimate.
- Quantization format compatibility: Not every model and inference framework supports every quantization format well. Confirm how well your framework supports the format before committing.
7. Selection Checklist
- Set the VRAM or memory ceiling based on your budget first.
- Estimate weight size using “parameter count × bytes per parameter,” and work backward to the model size you can afford.
- Reserve at least 20%–30% headroom for context and runtime overhead.
- At the same capacity, prioritize memory bandwidth and quantization format support.
- Judge by measured speed and stability; nominal specifications are only a reference.
Follow this method, and even within a limited hardware budget you can land on a local inference configuration that genuinely runs stably and runs the models you want.
