Local LLM VRAM Requirements: A Practical Guide by Parameter Size and Quantization
This article explains why official VRAM figures often do not match real-world LLM usage. It breaks down GPU memory consumption into model weights, KV cache, activations, and runtime overhead; shows how quantization changes memory requirements; and provides practical guidance for choosing hardware by parameter size, context length, and GPU or unified-memory capacity.
Local LLM VRAM Requirements: A Practical Guide by Parameter Size and Quantization
Why “Theoretical VRAM Values” Can Be Misleading
Official documentation usually reports the theoretical memory footprint of model weights at a specific precision. That number is both correct and misleading.
It is correct because it reflects the size of the parameters themselves. It can be misleading because most local users do not load a model at its original precision. They usually run quantized versions instead. In addition, VRAM usage during inference is not limited to model weights. It also includes the KV cache, intermediate activations, and framework overhead.
Once all of these are added together, the theoretical value and actual usage can differ significantly.
For this reason, it is more useful to understand what consumes VRAM than to memorize one “official number.”
The Four Main Components of VRAM Usage
A single inference request typically consumes four types of memory:
- Model weights: The static footprint created after all model parameters are loaded into VRAM. This is the main part of memory usage.
- KV cache: Cached attention key and value pairs used to reuse historical tokens during autoregressive inference. It grows approximately linearly with context length and the number of concurrent requests.
- Activations and temporary tensors: Intermediate results produced during the forward pass. They can often be reused, but peak memory usage still exists.
- Runtime and framework overhead: Fixed or semi-fixed costs such as inference engine contexts and memory allocator fragmentation.
Understanding this structure makes the main rule clearer: model weights determine the lower bound of VRAM usage, while context length and concurrency determine the upper bound.
Precision and Quantization: The Main Formula for Weight Usage
There is a simple formula for estimating the VRAM used by model weights:
VRAM for model weights (GB) ≈ Parameters (billions) × Bytes per parameter
The number of bytes per parameter varies significantly by precision:
- FP32 (single precision): about 4 bytes per parameter
- FP16 / BF16 (half precision): about 2 bytes per parameter
- INT8 quantization: about 1 byte per parameter
- INT4 quantization: about 0.5 bytes per parameter
For a model with approximately 7 billion parameters:
- In FP16, loading requires about
7 × 2 ≈ 14 GBof VRAM. The weights alone may already exceed the memory capacity of many consumer GPUs. - With INT4 quantization, weight memory drops to about
7 × 0.5 ≈ 3.5 GB. With a reasonable context length, it can run smoothly on machines with 6–8 GB of VRAM.
This is the core value of quantization: it can reduce weight memory requirements to one-quarter or even one-eighth while preserving model capability with minimal impact. It is worth noting that quantization itself also requires some memory for conversion and dequantization, so actual usage will be slightly higher than a pure formula-based estimate.
An Important Exception: Mixture-of-Experts Models
Many recent models use a Mixture-of-Experts (MoE) architecture. These models are characterized by having a large total parameter count but a smaller number of parameters activated per token.
Even so, all expert weights must still be loaded into VRAM. Therefore, memory usage should be estimated based on the total parameter count, not the number of parameters activated per token.
Many users assume that a small active parameter count means low VRAM requirements, and then run out of memory during loading. When evaluating this type of model, be sure to check whether the reported number is the total parameter count or the active parameter count.
VRAM Requirements by Model Size
Taking weights, KV cache, and runtime overhead into account, the table below provides a quick reference for typical VRAM requirements by model size and quantization level:
| Model size | Quantized VRAM usage | Recommended VRAM tier | Typical use cases |
|---|---|---|---|
| Around 2–4 billion parameters | About 2–6 GB | 6 GB or less | Validating a minimal working setup, lightweight chat |
| Around 4–8 billion parameters | About 6–10 GB | 8–12 GB | General conversation, everyday Q&A |
| Mid-size models (tens of billions of total parameters, including MoE) | About 12–16 GB | 16 GB or more | Stronger inference without using the heaviest models |
| Around 30 billion parameters | About 20–24 GB | 24 GB or more | Quality-focused workloads, coding, long-context use |
Note that the table shows typical ranges after quantization. Actual usage depends on context length, batch size, and the quantization scheme. It is recommended to leave around 20% additional VRAM as headroom.
Choosing Hardware by GPU VRAM Tier
4–6 GB VRAM
Start with the smallest available models. Larger models are not always impossible to try, but making them the default choice can easily cause an out-of-memory failure during loading.
8–12 GB VRAM
Small and medium-sized models run more comfortably. This tier can also evaluate low-precision quantized versions of mid-size models. Do not push memory to its absolute limit; context length and runtime overhead should also be considered.
16 GB VRAM
Mid-size models, especially MoE architectures, become worth taking seriously. Keep in mind that being able to load a model does not mean it will run smoothly. The actual experience depends on inference speed rather than nominal hardware specifications.
24 GB VRAM and above
Around 30 billion parameter models begin to deserve serious evaluation. However, long context can significantly increase KV cache usage, so be sure to leave enough headroom.
Choosing Unified Memory Devices
For devices with a unified memory architecture, where the CPU and GPU share the same physical memory, the selection logic is different from that of discrete GPUs. Instead of looking only at “dedicated VRAM,” you should look at the device’s total memory capacity, while also considering memory bandwidth.
- 16 GB unified memory: Start with the smallest model size. Mid-size models can be loaded, but performance may be slow.
- 32 GB unified memory: Small and medium-sized models run smoothly, and mid-size models can be attempted. The overall experience is significantly better than with 16 GB.
- 64 GB unified memory or more: Mid-size to larger models can be supported. This is suitable for users who want higher quality but do not want to buy a discrete GPU.
It is especially worth noting that the main bottleneck for this type of device is often memory bandwidth, not compute power. Bandwidth determines how many weights can be moved per second for computation, which directly affects token generation speed. As a result, machines with the same parameter capacity can differ several-fold in inference speed depending on bandwidth.
Two Often-Overlooked Variables
Context length
The KV cache grows approximately linearly with context length. Increasing context length from 2K to 32K can multiply KV cache usage by more than ten times. Many cases of “it runs, but crashes with long text” originate here.
Concurrency and batching
Local single-user scenarios usually do not need to worry about concurrency. However, if multiple requests must be served at the same time, KV cache usage adds up with concurrency, and VRAM requirements can increase significantly.
Practical Recommendations and Common Pitfalls
- Start small, then scale up: For any hardware, first verify the entire pipeline with the smallest model—loading, inference, and memory release—before moving to larger models.
- Leave headroom: Do not choose a configuration that exactly matches the theoretical value. Leave 15%–20% additional VRAM to handle peaks and fragmentation.
- Distinguish total parameters from active parameters: This is especially important for MoE models. Estimate VRAM usage based on the total parameter count.
- Speed is a hard metric: Being able to load a model only means it is usable. Actual smoothness depends on memory bandwidth, the quantization scheme, and the scheduling efficiency of the inference engine. Benchmark with real prompts before drawing conclusions.
- Quantization is not lossless: Very low-precision quantization can cause noticeable quality degradation on some tasks. Quality-sensitive scenarios must balance memory usage against output quality.
Summary
When deploying a large language model locally, judging VRAM requirements can be reduced to one sentence: first estimate the memory usage of quantized weights, then add context length and runtime overhead, and finally choose a model size that matches the GPU VRAM tier or unified memory capacity.
Understanding the four components of VRAM usage and knowing how precision and parameter count translate into memory requirements is more reliable than memorizing any “official table.” Hopefully, this guide can help you quickly determine which model size is suitable for your machine and avoid unnecessary trial and error.
