
VRAM is the working memory inside a GPU. It holds model weights, the KV cache, and intermediate results during AI workloads. Think of it as the desk where the GPU spreads out everything it needs while it computes.
How much you need depends on three things: model size, precision, and concurrency. No single number fits every case, so treat any “you need X GB” claim with care.
This gpu vram explained guide covers what consumes gpu memory, how to estimate your vram requirement, and what to do when vram runs short. Start with your model, then size the GPU around it.
Key Takeaways
VRAM stores model weights, KV cache, and runtime overhead while AI tasks run.
Figure out VRAM by multiplying parameters by bytes per parameter, then add extra space for batch size and context length.
Capacity and compute are separate GPU resources, so check both for your workload.
Quantization cuts down on memory use, but it may lower precision. Use it when memory is limited.
Using more than one GPU or offloading can help when VRAM runs low, but each choice has its own downsides.
What GPU memory does in AI workloads

Where model data and intermediate results live
The gpu’s vram is the working memory inside the GPU. It holds model weights, the kv cache, and activations while the GPU works on an AI task. When someone says “a model needs X GB of GPU memory,” they mean VRAM — the gpu vram number on the spec sheet.
Model weights are the first thing loaded. A model with FP16 precision uses 2 bytes to store each value. A 7-billion-parameter model at FP16 needs 14 GB just for the weights. Activations work like a scratch pad. The model writes numbers there while it thinks, and longer inputs or bigger batches make that pad bigger. That cache lets llm inference remember earlier tokens without reading them all again.
GPU memory requirement = model weights + KV cache + activations + runtime overhead + batch size + concurrency
The weights and kv cache together set the lowest amount of memory you need. Training adds gradients and optimizer states on top, so it can need two to four times more GPU memory than inference alone. Full fine-tuning needs several times the weights memory. LoRA and QLoRA cut this by training only a small number of adapter parameters.
Why memory bandwidth matters
Capacity tells you what fits. Bandwidth tells you how fast data moves between memory and the compute units. A wider interface moves more data at the same time. HBM3 uses a 1024-bit interface, which is sixteen times wider than a 64-bit DDR5 channel. The JEDEC HBM4 standard defines 32 independent channels, each with a 64-bit data bus, for an effective 2048-bit interface. HBM stacks sit on the same interposer as the processor, so signals travel millimeters instead of centimeters. GDDR7 uses a quad-channel design and runs at higher I/O voltage than HBM4.
For these workloads, bandwidth shapes how steadily the GPU can feed its compute cores. A GPU with HBM can keep those cores busier than a GDDR design. Many inference workloads still hit a memory bottleneck, and batching or model compression helps manage it.
Dedicated GPU VRAM versus shared memory
Some systems give the GPU its own private memory pool. Other systems let the GPU borrow memory from the main system. These two setups are not the same thing. Dedicated VRAM sits right on the graphics card, close to the compute units. Shared memory lives in the system RAM and reaches the GPU through the CPU-GPU bus.
How shared system memory changes performance
The distance between memory and compute units sets the speed limit. A high-end data-center GPU moves data from dedicated VRAM at over 3 TB/s. Shared system memory has to travel through the system bus, which often runs at only 50–100 GB/s. That gap is huge. For an AI model doing millions of calculations per second, the slower path becomes a bottleneck.

When dedicated VRAM fills up, the driver moves data back and forth to system RAM. Speed can drop 10–15x. A model that fits fully in VRAM runs at full speed. A model that spills into shared memory still runs, but much slower, with latency spikes you can’t predict. Shared memory works well for lighter or experimental use. Dedicated VRAM works best for steady inference and training.
Capacity is not compute
More gpu memory does not always mean faster results. Capacity tells you what fits in memory. Compute tells you how many operations the GPU can finish each second. These are two separate resources. A card with a big pool but modest compute will hold a big model and process it slowly. A card with strong compute but a small pool may run fast on models that fit and fail on models that do not.
Plan around both numbers. Check the gpu memory capacity against your model footprint, then check compute against your latency target. Neither number alone tells the whole story.
Estimating your VRAM requirement

A rule of thumb for model sizing
You can start with a simple rule. At 16-bit precision, plan for about 2GB of VRAM per billion parameters. This vram per billion parameters figure gives you a fast first estimate before you dig into details.
A 70-billion-parameter model needs roughly 140GB at 16-bit precision. That number already exceeds a single 80GB card, so you would need a multi-GPU setup. The same model at 4-bit quantization drops to about 35GB, which fits on one large card.

Model Size | Parameters | VRAM (4-bit) | VRAM (FP16) | Typical Hardware |
|---|---|---|---|---|
Small | 7B-13B | 3.5-6.5GB | 14-26GB | Single A100/H100 |
Medium | 30B-40B | 15-20GB | 60-80GB | A100 80GB |
Large | 70B+ | 35GB+ | 140GB+ | Multi-GPU setup |
No universal vram requirement exists. Your number depends on model size, precision, and whether you run training or inference. As a rough guide, 8GB suits small local models and experimentation. 12GB covers entry-level local LLM use. Professional AI workloads often need 24–80GB or more. Large-scale applications may call for 48GB cards. Treat these tiers as starting points, not rules.
Worked example with KV cache and concurrency
Weights are only the first cost. The kv cache grows with context length and batch size. Each new token adds key and value vectors per head and per layer. Memory scales with context length times hidden size times attention heads. Double your context length, and the kv cache roughly doubles. Double your batch size, and it doubles again.
Suppose you serve a 13B model at FP16. Weights take about 26GB. Add a kv cache for a long context and a batch of several requests. Add framework overhead for the runtime. Your usable vram shrinks fast. A gpu sizing calculator can help, but you still need to know your context length and batch size.
For llm inference, the real minimum vram requirement often sits well above the weight footprint. A model that loads at 26GB may need 40GB or more once you add kv cache growth and concurrency. That gap explains why gpu memory capacity alone does not tell you if a card will work. You must estimate the full memory footprint.
Plan your gpu sizing around three inputs: model weights, kv cache, and headroom. Start with the 2GB per billion parameters rule. Then add your kv cache estimate. Then add overhead for your framework and batch size. This approach gives you a defensible vram capacity target instead of a guess.
GPU sizing when VRAM runs short
Your model might not fit in the memory you have. When vram runs short, two things can happen: out-of-memory errors that stop the job, or slower performance from moving data to slower memory. You can handle both with the right plan.
Quantization trade-offs
Quantization trades precision for a smaller memory footprint. You change model weights from higher-bit formats to lower-bit integers. A 4-bit 70b model that needs 140GB at FP16 drops to about 35GB, so it can run on one GPU.
The trade-offs change by bit width:
8-bit quantization keeps performance close to non-quantized models on most benchmarks.
4-bit quantization also keeps similar performance on most benchmarks, with only small perplexity increases.
3-bit and lower quantization causes clear performance drops.
2-bit quantization with GPTQ breaks instruction-following completely, making text that does not make sense.
Quantization works best when memory is limited and inference speed is not the top priority. At similar memory use, a larger model at lower precision often beats a smaller model at higher precision.
Multi-GPU and offloading options
Tensor parallelism splits model layers across multiple GPUs. This lowers per-GPU memory and allows larger batch sizes. A chart from the source shows that scaling from one to two GPUs cuts end-to-end latency by about 33% and boosts throughput by roughly 50% at batch size 16. Scaling from four to eight GPUs gives smaller gains at that batch size.
Offloading moves model weights to system RAM when vram is not enough. This lets you run larger models on lower-vram GPUs, but it needs a fast CPU-GPU interconnect and greatly reduces throughput. The kv cache must still fit in vram, so offloading alone may not fix every limit.
Use a gpu sizing calculator to estimate your needs before you commit. For production llm serving, start with your model and precision, estimate the footprint, then pick the smallest capacity that leaves headroom for your batch size and context length.
VRAM holds three things: weights, kv cache, and runtime overhead. Estimate the weights plus kv cache first. Multiply parameters by bytes per parameter, then add headroom for concurrency. That gives you a working vram requirement.
Capacity and compute stay separate resources. Quantization, multi-GPU setups, and offloading each fit different scenarios. None of them replaces a sound plan.
Good gpu sizing starts with your model and precision. Estimate the memory footprint, then pick the smallest capacity that leaves headroom for your batch size and context length. That approach keeps llm inference steady and your gpu memory budget honest. Run the same sizing check before every new ai deployment.
FAQ
How much VRAM do I need for a local model?
Start with about 2GB of VRAM per billion parameters at 16-bit precision. A 70B model needs roughly 140GB. Then add room for the KV cache and your batch size. A GPU sizing calculator helps you check your GPU against your real workload. Plan the GPU around the full footprint.
Can a GPU use shared system memory instead of its own VRAM?
Yes, some GPUs borrow system memory. That path runs much slower than dedicated VRAM. A GPU that fits your model fully in its own memory keeps steady speed. A GPU that spills into shared memory slows down. Use shared memory for light testing, not sustained work.
Does more VRAM always mean faster results?
No. Capacity and compute are separate GPU resources. A GPU with a large pool but modest compute holds a big model and runs it slowly. A GPU with strong compute but little memory fails on large models. Check both numbers before you pick a GPU.
How do I plan GPU sizing before I buy?
Estimate weights first, then add KV cache and overhead. Match that total to a GPU with headroom for your batch size and context length. This sizing step keeps inference stable and prevents out-of-memory errors on AI workloads. A GPU with too little memory will offload or fail.




