Skip to content
Inference Academy

DGX Spark vs Mac vs Ryzen AI Max: which 128 GB box for local LLMs?

Three ways to get 100+ GB of memory a GPU can use, compared on what decides local LLM speed: usable memory, memory bandwidth and prompt-processing compute. With estimated tokens per second for current open models.

Key takeaways

  • Usable memory decides whether a model runs, bandwidth decides decode speed, and compute decides prompt processing.
  • DGX Spark (273 GB/s) and Ryzen AI Max (256 GB/s) decode at similar speeds; an M4 Max (546 GB/s) is about twice as fast.
  • These machines suit mixture-of-experts models; large dense models such as a 70B run at only about 4 to 12 tokens/s.
  • DGX Spark has much faster prompt processing and the CUDA stack; a Mac Studio M3 Ultra offers the most memory and decode speed.
  • If your models fit in 32 GB, a discrete GPU is several times faster.

By

8 min read

Share
On this page

A 24 or 32 GB graphics card runs models up to about 30B parameters at 4 bits. Past that you need more memory than any consumer card has. Three kinds of machine now give a GPU 96 GB or more for the price of a high-end PC: NVIDIA's DGX Spark, Apple Silicon Macs with lots of unified memory, and PCs built on AMD's Ryzen AI Max (Strix Halo). They are not interchangeable.

#The three numbers that matter

DGX Spark Ryzen AI Max+ 395 Mac with M4 Max Mac Studio M3 Ultra RTX 5090 (for scale)
Memory 128 GB 128 GB up to 128 GB up to 512 GB 32 GB
Memory bandwidth 273 GB/s 256 GB/s 546 GB/s 819 GB/s 1,792 GB/s
Usable for a model (our assumption) ~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
  • Usable memory decides whether a model runs. Macs let the GPU wire about three quarters of unified memory by default (it can be raised); on Strix Halo you allocate GPU memory in the BIOS or the Linux kernel; DGX Spark shares memory with a small Linux system.
  • Bandwidth decides decode speed. Each generated token reads the active weights once, so tokens per second is roughly bandwidth divided by bytes read per token (why bandwidth decides speed).
  • Compute decides prompt processing (prefill): how fast a long document or agent context is read before the first token. Here DGX Spark's Blackwell GPU is far ahead of the other two, and a discrete card is further ahead still.

#Estimated decode speed at Q4_K_M

These are estimates from the same model the Can I run it? pages use: 65% of peak bandwidth divided by bytes read per token, at an 8K context. They are ceilings; mixture-of-experts models in particular often land below them in practice because of routing and kernel overheads. Treat them as a ranking, and measure your own.

Model (Q4_K_M) Memory needed DGX Spark Ryzen AI Max M4 Max M3 Ultra RTX 5090
gpt-oss 120B (MoE, 5.1B active) 69 GiB ~52 tok/s ~49 ~104 ~156 does not fit
Qwen3.6 35B-A3B (MoE, 3B active) 22 GiB ~86 ~81 ~172 ~259 ~566
gpt-oss 20B (MoE, 3.6B active) 13 GiB ~74 ~70 ~148 ~222 ~487
Qwen3.8 27B (dense) 17 GiB ~10 ~10 ~21 ~31 ~68
Gemma 4 31B (dense) 20 GiB ~9 ~8 ~18 ~26 ~58
Llama 3.1 70B (dense) 44 GiB ~4 ~4 ~8 ~12 does not fit

The pattern is the point:

  1. These machines are made for mixture-of-experts models. A 120B MoE model reads only about 5B parameters per token, so even 256 to 273 GB/s gives a comfortable speed, and you need the big memory to hold all the experts.
  2. Large dense models are slow on all of them. A 70B dense model at 4 to 12 tokens per second is usable for batch jobs, painful for chat.
  3. If your models fit in 32 GB, a discrete GPU is several times faster. Buy memory only if you need it.

#Prompt processing: the hidden difference

Decode speed gets the headlines, but for many real uses the wait before the first token matters as much. Reading a prompt (prefill) is limited by compute, not bandwidth (prefill vs decode), and the three machines differ far more in compute than in bandwidth:

  • DGX Spark has a Blackwell GPU with tensor cores and native FP4, so it reads long prompts much faster than the other two.
  • Macs have GPUs without the large matrix units of NVIDIA's data-centre parts (the newest chips add some), so long prompts take noticeably longer.
  • Ryzen AI Max sits in between or behind, depending on the runtime and backend.

Where it shows up:

Use Prompt size Does prefill speed matter?
Casual chat Hundreds of tokens Barely
Coding assistant with repository context 10,000 to 50,000 tokens A lot: every request re-reads context unless cached
Agents with tool definitions and history 5,000 to 30,000 tokens per step A lot, across many steps
Summarising long documents 20,000 tokens and more A lot

If your work is mostly long prompts, weigh prompt-processing benchmarks at least as heavily as tokens per second. Prefix caching in your runtime helps all three machines when prompts share a long start.

#Setup notes for each

  • DGX Spark ships with NVIDIA's Ubuntu-based DGX OS and runs NVIDIA's containers for vLLM, TensorRT-LLM, PyTorch and llama.cpp. It's the most "server-like" of the three: what works there usually works on data-centre GPUs too.
  • Ryzen AI Max PCs need the GPU's share of memory set, either in the firmware settings or, on Linux, through kernel parameters that let the GPU use more system memory. llama.cpp with the Vulkan backend is the most common route; ROCm support is improving. Expect to read forum threads for your exact machine.
  • Macs need nothing special for models up to the default GPU memory limit. To go beyond it, raise the limit with sudo sysctl iogpu.wired_limit_mb=... (it resets on reboot), leaving enough for macOS. Then use LM Studio, Ollama, llama.cpp or MLX (MLX vs llama.cpp).

#Beyond one machine

All three can be linked for bigger models, with different trade-offs:

  • Two DGX Sparks connect through their built-in high-speed network ports, giving 256 GB for models too large for one.
  • Several Macs can be joined over Thunderbolt with tools that split a model across them; each extra machine adds memory, while network hops limit the speed gain.
  • Ryzen AI Max PCs can be clustered over the network too, with the same limits.

Splitting a model across machines adds capacity, not decode speed: each token still passes through all the layers in turn (parallelism explained).

#Fine-tuning on these machines

  • DGX Spark runs the standard CUDA fine-tuning stack (PyTorch, Hugging Face, Unsloth and others), so LoRA and QLoRA on models up to tens of billions of parameters work as on a server, just slower.
  • Macs fine-tune with MLX's built-in LoRA tools.
  • Ryzen AI Max support for training frameworks is the least mature of the three; check the current state for your framework before buying for this.

See how much GPU to fine-tune for memory estimates.

#Which to pick

DGX Spark if you want the CUDA software stack (vLLM, TensorRT-LLM, PyTorch training and fine-tuning work as on a server), fast prompt processing for long contexts and agents, or a small machine to prototype what you will deploy on NVIDIA servers. Decode speed is similar to Strix Halo.

A Ryzen AI Max PC if you want the lowest price for 128 GB, a normal Windows or Linux PC, and you mainly run llama.cpp-based tools with MoE models. Expect more setup work (GPU memory allocation, Vulkan or ROCm builds).

A Mac with M4 Max if you want about twice the decode speed of the other two at 128 GB, a quiet laptop or desktop, and the MLX and llama.cpp ecosystem. Prompt processing is slower than DGX Spark's.

A Mac Studio with M3 Ultra if you need more than 128 GB (large MoE models, several models at once, very long contexts) and the highest decode speed of this group. It is also the most expensive.

#Before you buy

  • Check the exact models you want with the model picker and the hardware checker.
  • Remember long contexts: the KV cache needs memory too, and prefill speed matters more as context grows (VRAM math).
  • Look for measured benchmarks of your model, quantisation and runtime on that exact machine; software support on new hardware improves month by month.

#Who should buy which

You are... Good fit
An engineer prototyping for NVIDIA servers DGX Spark
Someone running agents or coding tools with long contexts DGX Spark, or a discrete GPU if models fit in 32 GB
A budget-conscious tinkerer running MoE models in llama.cpp Ryzen AI Max PC
A Mac user who wants a quiet, fast all-rounder Mac with M4 Max and 128 GB
Someone who needs the biggest models locally Mac Studio with M3 Ultra and 256 GB or more
Someone whose models fit in 32 GB A desktop with an RTX 5090 or similar

#Common mistakes

  • Buying for decode speed alone when your workload is long prompts.
  • Comparing headline memory instead of usable memory. Each machine reserves some for the system.
  • Planning a 70B dense model for chat on a 256 to 273 GB/s machine; expect about 4 tokens per second.
  • Assuming software parity. The same model can need different runtimes, formats and setup on each.

#FAQ

Is DGX Spark faster than a Mac Studio? For reading prompts, usually yes. For generating tokens, an M3 Ultra has about three times the bandwidth, so it decodes faster.

Can these replace a cloud GPU for serving users? For yourself or a small team, yes. For many concurrent users, data-centre GPUs serve far more requests for the money (self-hosting vs API).

What about a 70B model? All four big-memory machines fit one at 4-bit; speed ranges from about 4 to 12 tokens per second (can you run a 70B model at home?).

comparisonhardwareapple-silicondgx-spark

Found this useful?

Send it to someone who is learning the same thing.

Share this article

Preparing for an interview?

Next: learn it step by step, free

Engines compared from the inside

How vLLM, SGLang, TensorRT-LLM and llama.cpp schedule, batch and cache, side by side. A free lesson with step-through diagrams and a quiz.

Get new articles by email

One short email when a new guide is out. Unsubscribe any time.