Hardware
Unified Memory vs VRAM: What Matters for AI
Unified memory vs VRAM for AI: capacity vs bandwidth, how fast each runs local LLMs, a speed estimate you can do yourself, and which to buy.
In unified memory vs VRAM, the trade-off is capacity vs speed. A graphics card's VRAM is very fast (an RTX 5090 reaches about 1.8 TB/s) but limited in size (32 GB on that card). Unified memory, used by Apple Silicon Macs, AMD's Ryzen AI Max chips and Nvidia's DGX Spark, gives the GPU access to a much larger shared pool, up to 128 GB or more, but at a fraction of the bandwidth: roughly 170 to 300 GB/s on the mini PCs and Macs compared here, and up to about 800 GB/s on Apple's top Ultra chips. For local AI, VRAM wins when your model fits; unified memory wins when it doesn't.
This guide explains how each works, why memory bandwidth decides how fast a language model runs, gives a simple speed estimate you can do yourself, and shows which option fits which models and budgets.
What Is VRAM?
VRAM (video RAM) is memory soldered onto a graphics card, right next to the GPU. It's built for bandwidth: wide memory buses and fast memory chips (GDDR7 on current Nvidia consumer cards) let the GPU read data extremely quickly.
The catch is size. Consumer cards top out at 32 GB, and anything that doesn't fit must live in the computer's main memory (system RAM), connected to the GPU over PCIe. That link is many times slower than VRAM, so when a model spills over, speed collapses.
Our guide to VRAM for AI explains how much VRAM different models need.
What Is Unified Memory?
Unified memory is a single pool of memory shared by the CPU, GPU and often an NPU on the same chip package. There's no separate VRAM: the GPU uses the same memory as the rest of the system, and the operating system decides how much it can use.
Systems with unified memory include:
- Apple Silicon Macs, where all memory is unified, up to very large configurations on high-end Mac Studio models.
- AMD Ryzen AI Max chips, such as the Ryzen AI Max+ 395, with up to 128 GB of shared LPDDR5X; Windows can assign up to 96 GB to the GPU, and Linux slightly more.
- Nvidia DGX Spark, with 128 GB of unified memory shared by its Arm CPU and Blackwell GPU.
Because the GPU can address most of that memory, a single machine can load models far bigger than any consumer graphics card holds. Our guide to the Ryzen AI Max+ 395 shows how AMD's version works in practice.
Unified Memory vs VRAM at a Glance
| System | Memory the GPU can use | Memory bandwidth | Type |
|---|---|---|---|
| Nvidia RTX 5090 | 32 GB | About 1.8 TB/s | VRAM (GDDR7) |
| Nvidia RTX PRO 6000 Blackwell | 96 GB | About 1.8 TB/s | VRAM (GDDR7) |
| Nvidia DGX Spark | Up to 128 GB shared | About 273 GB/s | Unified |
| AMD Ryzen AI Max+ 395 systems | Up to ~96 GB on Windows (more on Linux) of 128 GB | About 256 GB/s | Unified |
| Mac mini with M5 Pro | Up to 64 GB | Up to 307 GB/s | Unified |
| Mac mini with M6 | 16 to 32 GB | Up to 170 GB/s | Unified |
The pattern is clear. Graphics cards have about six to ten times the bandwidth of these unified memory systems, while unified memory systems offer two to four times the capacity of a consumer card.
Why Memory Bandwidth Decides LLM Speed
When a language model generates text, it produces one token at a time, and for each token it has to read essentially all of its weights from memory. The calculation itself is fast; moving the data is the bottleneck. That makes memory bandwidth the main factor in how many tokens per second you get, as long as the model fits.
A useful rule of thumb for the upper limit:
Maximum tokens per second ≈ memory bandwidth ÷ size of the model in memory
Real speeds come in lower, often 50% to 80% of this figure, because of overheads, but the ratio between systems holds up well. Our guide to LLM memory bandwidth explains the maths in more detail.
A worked speed estimate
Take three common model sizes at 4-bit quantization:
| Model (approx. size at 4-bit) | RTX 5090 (1,792 GB/s, 32 GB) | DGX Spark (273 GB/s) | Ryzen AI Max+ 395 (256 GB/s) |
|---|---|---|---|
| 8B dense (~5 GB) | Up to ~350 tokens/s | Up to ~55 tokens/s | Up to ~50 tokens/s |
| 32B dense (~19 GB) | Up to ~95 tokens/s | Up to ~14 tokens/s | Up to ~13 tokens/s |
| 70B dense (~40 GB) | Doesn't fit in 32 GB; spills to RAM and slows sharply | Up to ~7 tokens/s | Up to ~6 tokens/s |
These are theoretical ceilings from the rule of thumb, not benchmarks, but they show the trade-off clearly. For models that fit, the graphics card is many times faster. For the 70B model, the unified memory systems are slow but usable, while the 32 GB card can't hold it at all without offloading.
Why mixture-of-experts models change the picture
Mixture-of-experts (MoE) models only read a fraction of their weights for each token. A model with 100+ billion total parameters may use only a few billion "active" parameters per token. That suits unified memory well: the large pool holds the whole model, and the bandwidth only has to cover the active part. That's why large MoE models are often the best match for 128 GB unified memory machines.
VRAM vs RAM: Why Spilling Over Hurts
The VRAM vs RAM question matters on any PC with a graphics card. If a model is larger than VRAM, tools like llama.cpp and Ollama can keep some layers in system RAM and run them on the CPU, or stream them over PCIe. That works, but performance drops sharply, because:
- system RAM on a desktop typically delivers well under 100 GB/s with two memory channels, a small fraction of VRAM's bandwidth,
- data crossing PCIe adds more delay,
- the CPU is much slower than the GPU at the matrix maths involved.
Unified memory avoids this cliff: there's no separate pool to spill into, so performance degrades smoothly as models get bigger instead of falling off a cliff at 24 or 32 GB.
Unified Memory for AI: Where It Wins
Unified memory for AI is the better choice when:
- You want to run large models locally, such as 70B-class dense models or big MoE models, on one quiet machine.
- You need long context windows, because the KV cache that stores the conversation grows with context and eats memory.
- You value low power and noise. A unified memory desktop typically uses far less power than a multi-GPU tower.
- You're developing and testing, where loading many different models matters more than maximum speed.
- You want a laptop. Apple Silicon MacBooks offer large unified memory in a portable form, which no gaming laptop's VRAM matches.
Where VRAM Wins
A graphics card with plenty of VRAM is better when:
- Your models fit in VRAM. Up to roughly 30B dense models at 4-bit fit in 24 to 32 GB, and run much faster on a card.
- You need fast responses for coding assistants, agents or chat where waiting hurts.
- You generate images and video. Diffusion models are compute-heavy, and GPUs' raw compute matters as much as bandwidth.
- You fine-tune models, where Nvidia's CUDA ecosystem has the broadest tool support.
- You serve several users at once, where GPUs' compute lets them batch many requests efficiently.
Prompt Processing vs Token Generation
There are two phases in running an LLM:
- Prompt processing (prefill): reading your prompt and documents. This is compute-heavy, and discrete GPUs are far faster.
- Token generation: writing the answer one token at a time. This is bandwidth-heavy.
Unified memory systems often have respectable generation speeds but slow prompt processing, so long prompts, such as pasting a whole codebase or a 50-page document, can take noticeably longer to start answering. If your work involves very long inputs, test prompt processing speed, not just tokens per second.
How to Choose: Unified Memory vs VRAM
| Your situation | Better choice |
|---|---|
| Models up to ~30B, want speed | GPU with 24–32 GB VRAM |
| 70B dense or large MoE models on one machine | 96–128 GB unified memory |
| Image and video generation | GPU with VRAM |
| Laptop for local AI | Apple Silicon with plenty of unified memory |
| Fine-tuning and CUDA tools | Nvidia GPU (or DGX Spark for CUDA with large memory) |
| Quiet, low-power always-on AI box | Unified memory mini PC or Mac |
| Serving many users | GPUs, or rented cloud GPUs |
Two practical notes. Unified memory can't be upgraded after purchase, so buy the capacity you'll need. And GPU VRAM can be added later only by adding another card, which brings its own complexity.
Common Mistakes
- Comparing only capacity. 128 GB that runs at 256 GB/s won't feel like a graphics card, even if the model fits.
- Ignoring the OS limit. Not all unified memory is available to the GPU; the operating system and other apps need some.
- Forgetting the KV cache. Long contexts can add many gigabytes on top of the model's own size.
- Expecting MoE speeds on dense models. A 120B MoE model may run well on unified memory while a 70B dense model runs much slower.
- Skipping software checks. Some tools are CUDA-first; check that your models and apps support Apple's or AMD's stack before buying.
Is Unified Memory Better Than RAM?
Unified memory is RAM, just shared between the CPU and GPU instead of used by the CPU alone. The real comparison is with a normal PC's setup, where the CPU has system RAM and the GPU has its own VRAM:
- Compared with system RAM on a PC, unified memory in Apple and AMD's AI chips is usually much faster, because these chips use wide, high-speed LPDDR memory buses designed to feed a GPU. A typical dual-channel desktop gets well under 100 GB/s; unified memory systems in this guide reach about 170 to 300 GB/s, and Apple's top chips far more.
- Compared with VRAM, it's slower but larger and more flexible.
So for AI, unified memory sits between the two: faster than a PC's system RAM, slower than a graphics card's VRAM, and larger than either in most affordable configurations.
Apple Unified Memory vs VRAM
Apple Silicon Macs have been the most popular unified memory option for local AI, for a few reasons:
- Large configurations are available in desktop and laptop models, so a single quiet machine can hold very large models.
- The software stack is mature: llama.cpp, Ollama and LM Studio support Apple's Metal GPU framework, and Apple's own MLX framework is designed for machine learning on Apple Silicon.
- Power efficiency is excellent, which matters for always-on use.
The limits are the same as for other unified memory systems: generation speed is set by memory bandwidth, prompt processing is slower than on a strong NVIDIA card, and some tools and training workflows assume CUDA. By default, macOS reserves part of the memory for the system, so not all of it is available to the GPU. Check how much memory the GPU can actually use on the model you're considering before buying.
How Much Unified Memory Do You Need?
A simple way to size it: add up the model file size, the context you plan to use, and room for the operating system and other apps.
- 16 GB: small models up to about 7 to 8 billion parameters at 4-bit, with modest context.
- 32 GB: comfortable for 8B to 14B models, and some larger ones at lower precision.
- 64 GB: 30B-class models with good context, or several smaller models at once.
- 96 to 128 GB: 70B dense models at 4-bit, or large mixture-of-experts models.
Because unified memory can't be upgraded after purchase, it's usually worth buying one step more than you need today.
Can Unified Memory Be Upgraded?
No. In Apple Silicon Macs, AMD Ryzen AI Max systems and the DGX Spark, the memory is part of the chip package or soldered next to it, which is how it reaches its bandwidth. What you buy is what you'll have for the life of the machine. A desktop with a graphics card is more flexible: you can add system RAM, swap the card for one with more VRAM, or add a second card later.
FAQ
Is unified memory better than VRAM for AI?
It depends on the model size. VRAM is much faster, so a graphics card wins for any model that fits in its memory. Unified memory offers much more capacity, so it wins for large models that wouldn't fit on a consumer card.
Is unified memory the same as VRAM?
No. VRAM is dedicated memory on a graphics card. Unified memory is a single pool shared by the CPU and GPU. In a unified memory system, the GPU uses part of that shared pool as its working memory.
How much unified memory do I need for local LLMs?
For models up to about 13B parameters at 4-bit, 32 GB is comfortable. For 30B-class models, 64 GB. For 70B dense or large mixture-of-experts models, 96 to 128 GB, with room left for the operating system and long contexts.
Why is VRAM faster than unified memory?
Graphics cards use very wide memory buses and fast GDDR memory right next to the GPU, reaching around 1.8 TB/s on top cards. Unified memory systems use LPDDR memory shared with the CPU, typically about 170 to 300 GB/s on mainstream systems and up to about 800 GB/s on Apple's top chips.
Can I use system RAM as VRAM?
Partly. Tools like llama.cpp and Ollama can offload some model layers to system RAM and the CPU when VRAM runs out, but speed drops sharply because system RAM and PCIe are much slower than VRAM.