VRAM in one paragraph
VRAM stands for video RAM, a name from graphics cards. In AI work it simply means the GPU’s own memory, separate from the server’s system RAM. The GPU computes at full speed only on data that sits in VRAM. Anything kept in system RAM must cross PCIe first, at a small fraction of the speed, so a model that does not fit in VRAM either runs slowly with offloading or has to be split across GPUs.
Two memory types are common. Data center GPUs such as the A100, H100, H200 and B200 use HBM, stacked beside the GPU for very high bandwidth. Cards such as the L4, L40S, RTX 4090, RTX 5090 and RTX PRO 6000 use GDDR6, GDDR6X or GDDR7 on the board. Both are VRAM; they differ in bandwidth, capacity and price.
References: NVIDIA H100 specifications · NVIDIA GeForce RTX 5090 specifications
What fills VRAM during inference and training
For inference, the largest item is usually the weights: parameters times bytes per parameter. On top come the KV cache, which grows with context length and the number of concurrent requests, activations for the current step, and a fixed overhead for the CUDA context and libraries.
Training needs far more. Hugging Face’s Transformers guide to GPU memory gives mixed-precision training with Adam about 6 bytes per parameter for weights (a 16-bit copy plus a 32-bit main copy), 8 bytes for the two optimizer states and 4 bytes for gradients, 18 bytes per parameter before activations. Activations then scale with batch size, sequence length, depth and hidden size, which is why long sequences can run out of memory even when the model fits.
| Precision or mode | Bytes per parameter | 8B model | 70B model |
|---|---|---|---|
| FP32 weights | 4 | 32 GB | 280 GB |
| BF16 or FP16 weights | 2 | 16 GB | 140 GB |
| FP8 or INT8 weights | 1 | 8 GB | 70 GB |
| 4-bit weights | 0.5 | 4 GB | 35 GB |
| Mixed-precision Adam training (before activations) | 18 | 144 GB | 1,260 GB |
References: Hugging Face Transformers: GPU memory usage
VRAM by GPU
The table lists capacity and type from NVIDIA’s and AMD’s product pages and NVIDIA’s MIG guide. The last column is a rough rule of thumb for weights only, leaving some room for cache; check real models with the calculator linked below. The usable amount is a little lower, because the driver reserves some memory and the CUDA context takes more once a process starts.
| GPU | VRAM | Type | Rough fit, 16-bit weights unless noted (our estimate) |
|---|---|---|---|
| T4 | 16 GB | GDDR6 | Small models up to about 7B at 8-bit |
| L4 | 24 GB | Not listed | 7B-8B inference with short context |
| A10 | 24 GB | GDDR6 | 7B-8B inference |
| RTX 4090 | 24 GB | GDDR6X | 7B-8B inference, image generation |
| RTX 5090 | 32 GB | GDDR7 | 8B with longer context; 14B at 8-bit |
| L40S | 48 GB | GDDR6 with ECC | Up to about 20B |
| RTX PRO 6000 Blackwell | 96 GB | GDDR7 | Up to about 40B |
| A100 | 40 or 80 GB | HBM2 or HBM2e | Up to about 30B on 80 GB |
| H100 SXM | 80 GB | HBM3 | Up to about 30B |
| H200 | 141 GB | HBM3e | Up to about 60B |
| B200 | 180 GB | HBM3e | 70B at 8-bit with room for cache |
| AMD MI300X | 192 GB | HBM3 | 70B at 8-bit with room for cache |
References: NVIDIA T4 Tensor Core GPU · NVIDIA L4 Tensor Core GPU · NVIDIA A10 Tensor Core GPU · NVIDIA GeForce RTX 4090 specifications · NVIDIA GeForce RTX 5090 specifications · NVIDIA L40S specifications · NVIDIA RTX PRO 6000 Blackwell Server Edition · NVIDIA A100 specifications · NVIDIA H100 specifications · NVIDIA H200 specifications · AMD Instinct MI300X specifications · NVIDIA MIG user guide: supported GPUs
Why VRAM matters for cost and workload choice
Capacity is the first filter, before speed. A 70B model in BF16 needs about 140 GB for weights alone. That rules out any single 80 GB card, and even a 141 GB H200 leaves no room for KV cache. The options are two or more GPUs with tensor parallelism, a larger GPU, or quantization: at 8-bit the weights drop to about 70 GB, and at 4-bit to about 35 GB.
Here is an illustrative comparison with assumed prices, not quotes. At $2.50 per H100-hour, serving that 70B model in BF16 on two H100s costs $5.00 an hour per replica before any KV cache headroom is considered. Quantized to FP8 on one H200 at an assumed $3.50, it costs $3.50 an hour and avoids splitting the model. Whether that trade holds depends on accuracy at FP8 and on throughput at your concurrency, so test both. LLM quantization for inference covers the accuracy side.
For exact sizing of a specific model, context length and user count, use the LLM VRAM budget guide or the VRAM calculator. This entry explains the term; those pages do the arithmetic.
References: Hugging Face Transformers: GPU memory usage · NVIDIA H100 specifications · NVIDIA H200 specifications
VRAM vs system RAM vs disk
A GPU server has three tiers of storage, and an AI job moves data down that ladder before it can compute. Model files start on disk, load into system RAM, then copy into VRAM. Only the last step is where the GPU works at full speed, which is why VRAM capacity, not system RAM, decides what a model can do at serving time.
The speeds below use NVIDIA’s H100 SXM figures for the GPU side. System RAM and disk speeds vary by server, so check the quote for host memory size and local NVMe; slow storage mostly hurts start-up and checkpointing, not steady-state compute.
| Tier | Typical role in AI work | Path to the GPU cores |
|---|---|---|
| VRAM (80 GB HBM3 on H100 SXM) | Weights, KV cache, activations, optimizer states | Direct, 3.35 TB/s |
| System RAM | Data loading buffers, CPU offload, pinned staging | Over PCIe Gen5, 128 GB/s |
| Local NVMe or network disk | Model files, datasets, checkpoints | Usually through system RAM, slower again |
References: NVIDIA H100 specifications
Common misconceptions about VRAM
Gaming advice about VRAM does not carry over to AI. These are common sizing mistakes.
| Misconception | What is actually true |
|---|---|
| nvidia-smi used memory is what my model needs | PyTorch caches freed blocks and vLLM preallocates a fraction of memory, so used looks high |
| Two 24 GB cards act like one 48 GB card | Each GPU has its own VRAM; software must split the model |
| Shared GPU memory counts as VRAM | Spilling to system RAM works but runs at PCIe speed |
| More VRAM means a faster GPU | The 96 GB RTX PRO 6000 has under half the bandwidth of an 80 GB H100 |
| Weights are the whole bill | KV cache, activations and optimizer states often exceed the weights |
| The listed GB is all usable | The driver reserves some, and each process adds a CUDA context |
References: PyTorch CUDA semantics: memory management · vLLM documentation: engine arguments · NVIDIA System Management Interface · NVIDIA RTX PRO 6000 Blackwell Server Edition
How to check VRAM on a rented GPU
Run nvidia-smi --query-gpu=name,memory.total,memory.used,memory.free --format=csv for a quick view, or nvidia-smi -q -d MEMORY for the Total, Reserved, Used and Free fields. NVIDIA notes the driver may reserve a small amount of memory even when no work is running.
Inside PyTorch, torch.cuda.mem_get_info() returns free and total bytes. torch.cuda.memory_allocated() reports memory held by live tensors, while torch.cuda.memory_reserved() reports everything the caching allocator holds. PyTorch’s CUDA notes explain that unused cached memory still shows as used in nvidia-smi, and that empty_cache() releases only unused cached blocks. Log torch.cuda.max_memory_allocated() after a few steps to find your real peak.
If a job fails with an out-of-memory error at a size that should fit, fragmentation may be the cause; PyTorch’s expandable_segments allocator option, set through PYTORCH_ALLOC_CONF, is designed for jobs whose allocation sizes change often. CUDA out of memory walks through the full fix list.
References: NVIDIA System Management Interface · PyTorch CUDA semantics: memory management
Related terms and next step
VRAM capacity pairs with memory bandwidth, the speed at which that memory is read. The KV cache is the part of VRAM that grows with users and context. MIG divides VRAM into isolated slices, and NVLink lets GPUs reach each other’s VRAM quickly.
NeuraMesh rents GPUs from 16 GB to 180 GB of VRAM, from the T4 and L4 to the H200 and B200. Choose a GPU, plan, count, hours and region on rent GPUs and you receive a confirmed quotation, typically within one business day, before anything is charged. If you are not sure how much memory your model needs, ask the compute advisor.
NeuraMesh prices for these GPUs
| GPU | Memory | Data center | Value |
|---|---|---|---|
| RTX 4090 | 24 GB | $0.46 | $0.40 |
| L40S | 48 GB | $1.26 | $0.54 |
| A100 | 80 GB | $1.56 | $0.98 |
| H100 | 80 GB | $2.88 | $2.00 |
Every order is confirmed in a quotation before you pay. See all GPU prices.
Questions readers ask
What is VRAM used for in AI?
It stores everything the GPU computes on: model weights, the KV cache during LLM serving, activations, and in training the gradients and optimizer states. Data outside VRAM must cross PCIe first, which is much slower.
How much VRAM do I need to run an LLM?
Start with parameters times bytes per parameter: about 2 bytes at 16-bit, 1 at 8-bit and 0.5 at 4-bit. Add KV cache for your context and users, plus a margin for overhead. The LLM VRAM budget guide works through full examples.
Is VRAM the same as GPU memory?
Yes. VRAM is the older graphics term; in data center documentation NVIDIA usually says GPU memory or frame buffer memory. HBM and GDDR are types of VRAM.
Why does nvidia-smi show almost all VRAM used?
Frameworks reserve memory ahead of use. PyTorch keeps freed blocks in its cache, and vLLM preallocates a fraction of GPU memory for its KV cache by design. Check memory_allocated() in PyTorch for what tensors actually use.
Can I use system RAM instead of VRAM?
Some tools offload layers to system RAM, but each offloaded layer crosses PCIe on every pass, so generation slows sharply. Offloading works for experiments; for production serving, pick a GPU whose VRAM fits the model.
Sources and editorial notes
- NVIDIA H100 specifications
- NVIDIA GeForce RTX 5090 specifications
- Hugging Face Transformers: GPU memory usage
- NVIDIA T4 Tensor Core GPU
- NVIDIA L4 Tensor Core GPU
- NVIDIA A10 Tensor Core GPU
- NVIDIA GeForce RTX 4090 specifications
- NVIDIA L40S specifications
- NVIDIA RTX PRO 6000 Blackwell Server Edition
- NVIDIA A100 specifications
- NVIDIA H200 specifications
- AMD Instinct MI300X specifications
- NVIDIA MIG user guide: supported GPUs
- PyTorch CUDA semantics: memory management
- vLLM documentation: engine arguments
- NVIDIA System Management Interface
Primary documentation reviewed November 24, 2026. Provider descriptions reflect published documentation. Recommendations are our analysis; worked figures are illustrative unless explicitly stated otherwise. No independent provider benchmark or uptime ranking is claimed.
Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.
