What is GPU memory?
GPU memory is the high-bandwidth memory on a graphics processor that holds model weights, intermediate results and the context data of each request while they run.
It is also called VRAM. It differs from the Graphics Processing Unit itself in role: the GPU is the processor that computes, while GPU memory is where its data sits. In on-premise AI this memory, more than compute, usually decides the hardware choice.
- Topic
- Infrastructure and runtime
- Also known as
- VRAM, video memory
How GPU memory works
- When the model server starts, weights are read from disk into GPU memory; weight memory equals parameter count times bytes per parameter.
- Every concurrent request's KV cache and working buffers also use memory; training adds gradients and optimiser state.
- Token generation is mostly limited by memory bandwidth, so speed depends on how fast memory moves data.
- When memory runs short, quantisation, splitting the model across GPUs (tensor parallelism) or offloading to CPU memory is used.
In more detail
Sizing the KV cache and savings from GQA, MLA and FP8
For capacity planning, KV cache size is estimated as 2 × layers × KV heads × head size × bytes per element × sequence length × concurrent requests. Modern architectures reduce this footprint substantially through grouped-query attention (GQA), multi-head latent attention (MLA) and FP8 KV cache quantisation, enabling far higher concurrency on the same VRAM.
Memory growth in training and fine-tuning: optimiser state and activations
Training consumes far more GPU memory than inference because weights are joined by gradients, activations stored for backpropagation and optimiser states. Under standard mixed-precision AdamW, optimiser states (FP32 master weights, momentum and variance) alone require 12 bytes per parameter, plus weights and gradients, for roughly 16 bytes per parameter in total before activations, which is why techniques like LoRA/QLoRA and ZeRO sharding are essential on-premise.
HBM versus GDDR and token generation speed
VRAM capacity and bandwidth differ sharply across GPU tiers: data centre AI GPUs use stacked High Bandwidth Memory (HBM3/HBM3e) delivering multiple TB/s of bandwidth with ECC protection, whereas workstation and desktop cards rely on GDDR6 or GDDR7 below ~1 to 1.8 TB/s. Because autoregressive decoding reads all weights for every token, a GPU with twice the memory bandwidth generates single-stream tokens nearly twice as fast.
Commonly confused terms
| Term | How it differs |
|---|---|
| System RAM | GPU memory (VRAM) is high-bandwidth memory directly attached to the GPU package for fast parallel access; system RAM is slower CPU-attached DDR memory accessed over PCIe (except on unified-memory SoCs/superchips). |
| Memory bandwidth versus capacity | VRAM capacity (measured in GB) determines how large a model and KV cache can fit on the GPU; memory bandwidth (measured in TB/s) determines how fast weights and KV cache can be streamed during autoregressive token generation. |
| Shared GPU memory | Shared GPU memory in OS tools (like Windows Task Manager) is system RAM mapped as overflow for graphics workloads, not fast physical VRAM; using it for LLM inference triggers severe PCIe slowdowns. |
Why GPU memory matters for on-premises AI
It is the first constraint when sizing an on-premise server: it sets which model and how many concurrent sessions can run. The calculation starts with the weights: at 16 bits a 70-billion-parameter model needs 70 billion × 2 bytes = 140 GB, or 35 GB with 4-bit quantisation. What remains goes to the KV cache and limits concurrent users and context length. Capacity is bought up front, so headroom is left for peak hours; expanding later depends on hardware supply.
An energy company sizes GPU memory for its in-house fault report assistant by adding up model weights, long contexts and expected concurrent requests.
Common questions
How much GPU memory does a 70-billion-parameter model need?
For the weights alone, 70 billion × 2 bytes = 140 GB at 16 bits or 70 billion × 0.5 bytes = 35 GB with 4-bit quantisation. The KV cache and working headroom come on top.
Can system RAM be used if the model does not fit?
It can, but it is slow. On discrete GPUs, offloaded data travels over PCIe, which is far slower than GPU memory bandwidth, so token generation slows markedly.
Related terms
- Key-value cache
- Quantisation
- Graphics Processing Unit
- Model memory footprint
- CPU offloading
- Memory-bound workload
- Tensor parallelism
- GPU utilisation
- Mixture of experts
Sources
- Kwon et al., Efficient Memory Management for Large Language Model Serving with PagedAttention, 2023
- Pope et al., Efficiently Scaling Transformer Inference, 2022
- Dettmers and Zettlemoyer, The case for 4-bit precision: k-bit Inference Scaling Laws, 2022
Related page on this site: Supermicro page · In the glossary: Glossary, D to L