AI Infrastructure
How Much GPU Memory Do You Actually Need for AI?
Understand how GPU memory affects AI workloads and when 24GB, 32GB, 96GB or larger unified-memory systems make sense.
GPU memory is one of the first specifications people look at when choosing a GPU for AI.
It is also one of the most misunderstood.
More GPU memory can allow larger models, longer contexts, larger batches and more demanding workflows to run on a GPU.
But buying the GPU with the most memory is not always necessary.
What uses GPU memory?
When running an AI workload, GPU memory may contain several things at once:
- model weights
- activations
- KV cache
- gradients
- optimiser states
- input data
- temporary buffers
The exact memory requirement therefore depends on what you are doing.
Running inference is very different from training a model.
Fine-tuning using parameter-efficient techniques can also require far less memory than full training.
24 GB GPUs
A 24 GB GPU can be an excellent starting point for many inference and development workloads.
NVIDIA's L4, for example, provides 24 GB of GPU memory and is designed as an efficient datacentre accelerator for workloads including AI and video.
24 GB may be appropriate for:
- smaller language models
- quantised models
- inference
- computer vision
- embeddings
- development
- video processing
- GPU-enabled applications
The important point is that model parameter count alone does not determine whether a model fits.
Precision matters enormously.
32 GB GPUs
Moving to 32 GB provides additional breathing room.
That can make a meaningful difference when:
- models are slightly too large for 24 GB
- context size increases
- batch sizes increase
- multiple processes share the GPU
- development requires more flexibility
For organisations building AI applications rather than experimenting occasionally, the additional memory can reduce the need to optimise every workload purely around memory constraints.
96 GB GPUs
High-memory datacentre GPUs change the range of workloads that are practical on a single GPU.
The NVIDIA RTX PRO 6000 Blackwell Server Edition provides 96 GB of GDDR7 GPU memory.
That amount of memory can be useful for:
- larger model inference
- long-context workloads
- fine-tuning
- generative AI
- large datasets
- rendering
- AI development requiring significant memory headroom
It can also reduce the need to divide certain workloads across multiple smaller GPUs.
What about 128 GB DGX Spark?
DGX Spark needs to be understood differently.
It provides 128 GB of coherent unified system memory rather than 128 GB of conventional dedicated GPU VRAM.
Because its Grace Blackwell architecture uses a unified memory model, CPU and GPU components can work within a common memory architecture.
That makes Spark particularly interesting for AI development and large-memory experimentation.
However, 128 GB unified memory should not be compared directly with 128 GB of discrete GPU VRAM.
Why quantisation matters
Consider a model with billions of parameters.
Storing each parameter at:
- FP32
- FP16
- INT8
- 4-bit
results in dramatically different memory requirements.
Reducing precision can allow much larger models to fit into the same physical GPU memory.
The trade-off is that precision, performance and model quality requirements need to be considered.
Inference versus training
This distinction is critical.
Inference generally requires considerably less memory than full training.
Training may require model weights plus gradients, optimiser states and activations.
That means a model that runs comfortably on one GPU for inference may need several GPUs or a completely different infrastructure configuration for training.
Do not choose purely by VRAM
GPU memory matters, but so do:
- memory bandwidth
- tensor performance
- software support
- power
- CPU performance
- system RAM
- storage
- interconnect
- workload architecture
A 96 GB GPU is not automatically the correct choice simply because it has four times the memory of a 24 GB GPU.
A practical approach
Start with four questions:
- Which model are you running?
- Are you training, fine-tuning or running inference?
- What precision will you use?
- What context length and concurrency do you expect?
Once those are known, GPU selection becomes much more rational.