Unified-memory machines: Macs, DGX Spark and Ryzen AI Max for large models
How machines where the GPU shares system memory change what you can run: usable memory versus installed memory, how to raise the GPU limit on macOS and Strix Halo, why mixture-of-experts models suit these boxes, prefill versus decode, and a sizing method with estimated speeds for current models.
By Sandip Maity, Applied AI Engineer
A graphics card has its own fast memory: 16, 24 or 32 GB on consumer cards. Once a model is bigger than that, you either split it across cards, spill to slow system RAM, or use a machine whose GPU shares one large pool of memory with the CPU. Apple Silicon Macs, NVIDIA's DGX Spark and PCs built on AMD's Ryzen AI Max (Strix Halo) all work this way, with 64 to 512 GB that the GPU can use. They make 70B to 120B-class models practical on a desk. They also have specific limits that catch people out.
#Three numbers decide everything
- Usable memory decides whether a model loads.
- Memory bandwidth decides decode speed: tokens per second is roughly bandwidth divided by the bytes read per token (memory bandwidth).
- GPU compute decides prefill speed: how fast a long prompt, a document or an agent's growing context is read before the first token (how generation works).
| DGX Spark | Ryzen AI Max+ 395 | Mac, M4 Max | Mac Studio, M3 Ultra | RTX 5090 (for scale) | |
|---|---|---|---|---|---|
| Memory | 128 GB | up to 128 GB | up to 128 GB | up to 512 GB | 32 GB |
| Bandwidth | 273 GB/s | 256 GB/s | 546 GB/s | 819 GB/s | 1,792 GB/s |
| Usable for a model (our planning figure) | ~109 GB | ~96 GB | ~96 GB | ~144 GB of 192 | ~30 GB |
| Software | Linux, CUDA | Windows or Linux; Vulkan or ROCm | macOS; Metal, MLX | macOS; Metal, MLX | any CUDA stack |
Notice that a unified-memory machine has 4 to 7 times less bandwidth than a top discrete card. If your models fit in 32 GB, a discrete card is faster. These machines win only when you need the memory.
#Usable memory is not installed memory
On a Mac, the GPU may wire only part of unified memory by default, roughly three quarters on machines with plenty of RAM. You can raise the limit until the next reboot:
# allow the GPU to use up to 112 GB on a 128 GB Mac (value in MB)
sudo sysctl iogpu.wired_limit_mb=114688Leave at least 8 to 16 GB for macOS and your apps. If the system starts swapping, everything, including the model, slows down sharply.
On Ryzen AI Max (Strix Halo), the GPU's memory comes from two places: a fixed carve-out set in the BIOS (dedicated, "UMA frame buffer"), and shared system memory the driver can map on demand. On Windows you usually set a large dedicated amount in the BIOS or AMD's software. On Linux, a common approach is a small carve-out plus a raised shared-memory (GTT) limit through kernel parameters; follow your distribution's current guide, since the parameters have changed between kernel versions. Check what the runtime actually sees: llama.cpp prints the device memory it detects at start-up.
On DGX Spark, the GPU and the Linux system share 128 GB. The OS, desktop and any containers take their share, so plan for roughly 100 to 110 GB for models.
Pro content
Keep reading with Inference Academy Pro
Unlock the rest of this lesson, plus every advanced lesson, hands-on lab, the larger playground models and completion certificates.
Still to come in this lesson
- Estimated speed for current models
- Prefill: the hidden difference
- Software on each platform
- A sizing method
- Common mistakes
- Exercises
You will be able to answer
- A 128 GB unified-memory machine. Why can you not load a 120 GB model?
- Why do mixture-of-experts models suit 128 GB machines with 250 to 300 GB/s bandwidth?
- Which machine of these three processes a long prompt (prefill) fastest?
- On macOS, what does 'sudo sysctl iogpu.wired_limit_mb=...' change?
- A dense 70B model at Q4 on a 273 GB/s machine runs at about...