Skip to content

Blog · Generative AI ·

Best Local LLM Hardware (2026): GPUs vs Mac Studio vs DGX Spark, Measured

By Khadim Hussain · 11 min read

In short

For models that fit in 24 to 32 GB, a desktop NVIDIA card is the fastest local LLM hardware: on the same Llama 2 7B Q4_0 test an RTX 5090 generates 300.4 tokens per second, an RTX 4090 190.1 and an RTX 3090 171.6, against 60.4 for a DGX Spark and 50.0 for a Ryzen AI Max+ 395. For 70B to 120B models you need a unified-memory machine: a Mac Studio generated fastest there (88.6 against 57.1 tokens per second on gpt-oss-120b), while the DGX Spark read prompts 2.2 to 3.75 times as fast with 32,768 tokens already in the context. On a laptop, my 6 GB RTX 4050 ran Llama 3.1 8B at 38.5 tokens per second, 2.7 times the speed of an Intel Arc 140T integrated GPU.

Contents

Local LLM hardware is mostly a memory question: whether the model fits, and how fast the chip can read it for every token it writes. I compared the classes people buy (desktop NVIDIA cards, the Mac Studio, NVIDIA's DGX Spark, AMD's Strix Halo and ordinary laptops) using measured numbers only. Some are my own runs on two laptops; the rest are published measurements collected in my LLM benchmarks. Every comparison below uses the same model, quant and settings on each device, and each one says which.

Which local LLM hardware should you buy?

Go by the size of the model you want to run, because that decides which machines can run it at all.

You want to runBuyMeasured speed (generation)Comparison basis
8B models at 4-bit for chatAny NVIDIA card with 8 GB or 12 GB; a 6 GB laptop GPU works for short prompts38.5 tok/s on my RTX 4050 LaptopLlama 3.1 8B Q4_K_M, my run
The fastest speed on anything that fits in 24 to 32 GBRTX 5090 (32 GB), then RTX 4090 or RTX 3090 (24 GB)300.4, 190.1 and 171.6 tok/sLlama 2 7B Q4_0, the cross-device test
A 20B mixture-of-experts model such as gpt-oss-20b (12.1 GB)A 16 GB or 24 GB cardRTX 4090 279.7 tok/s; Mac Studio M3 Ultra 115.3; DGX Spark 88.0gpt-oss-20b through Ollama, same test on each machine
70B dense modelsMac Studio with an M3 Ultra14.1 tok/s, against 4.7 on a DGX SparkLlama 3.1 70B through Ollama
120B mixture-of-experts models such as gpt-oss-120b (63.37 GB)Mac Studio if you mostly chat; DGX Spark if you send long documents88.6 (M2 Ultra) against 57.1 (Spark); the Spark reads a prompt 2.2 times as fast at 32k contextgpt-oss-120b MXFP4, llama.cpp
A laptop with no discrete GPURun on the integrated GPU, not the CPU14.1 tok/s on the Arc 140T, 10.2 on the CPULlama 3.1 8B Q4_K_M, my run

How do GPUs, Macs, DGX Spark and Strix Halo compare on one test?

The fairest cross-device number is llama.cpp's standard benchmark: Llama 2 7B quantized to Q4_0 (a 3.82 GB file), a 512-token prompt and 128 generated tokens, on one GPU, for one user, with an empty context. Published measurements cover 176 single-GPU devices on exactly that test. It is a 2023 model, and that doesn't matter here: it measures the hardware, and I'm not recommending Llama 2 for real work. Each row shows the device's fastest run on whichever backend got there.

DeviceTypeMemoryGeneration (tok/s)Prompt (tok/s)Backend
RTX 5090Desktop GPU32 GB300.414,970CUDA
RTX 4090Desktop GPU24 GB190.110,830Vulkan
RTX 3090Desktop GPU24 GB171.65,201Vulkan
Apple M2 UltraMac Studiounified125.21,489Metal
Apple M3 UltraMac Studiounified115.51,117Vulkan
DGX Spark (GB10)Unified-memory desktop128 GB60.43,322Vulkan
Ryzen AI Max+ 395 (Strix Halo)Unified-memory desktop128 GB50.0911ROCm
RTX 4050 LaptopLaptop GPU6 GB43.71,726CUDA

On a model this small, the desktop cards win by a wide margin. The RTX 5090 generates 5.0 times as fast as the DGX Spark and reads the prompt 4.5 times as fast. The unified-memory machines are for models that don't fit on a card at all, covered further down.

The full card-by-card ranking is on Best GPUs for local LLMs, and the method page lists the exact settings behind every number.

Software moves these numbers too

The same 76-core M2 Ultra generated 94.3 tokens per second on this test with a November 2023 llama.cpp build and 125.2 with an August 2026 build and flash attention on: 33% more on the same hardware. When two devices are close, check whether they were measured on similar builds.

RTX 5090 vs 4090 vs 3090 for local LLMs

On the Llama 2 7B test the RTX 5090 generates 58% faster than the RTX 4090. On CUDA with flash attention the two read the prompt at almost the same speed, 14,970 and 14,771 tokens per second, so the 5090's lead is in generation, plus 8 GB more memory. The RTX 3090 generates 10% slower than the 4090 with the same 24 GB, and reads prompts at less than half its speed.

Memory limits these cards more than speed does. With gpt-oss-20b, a 12.1 GB file, an RTX 4090 generated 279.7 tokens per second through Ollama. With Llama 3.1 70B the same card ran part of the model on the CPU and managed 3.1. Check the 24 GB and 32 GB pages for what has been measured at each size.

Mac Studio for local LLMs: M3 Ultra vs M2 Ultra

On the same November 2023 llama.cpp build, an 80-core M3 Ultra generated 92.1 tokens per second on the Llama 2 7B test and a 76-core M2 Ultra 94.3. The M3 Ultra read the prompt 19% faster (1,471 against 1,238). Both chips are listed at 800 GB/s of memory bandwidth, and generation followed that figure more than the GPU core count: a 60-core M2 Ultra generated only 6% less than the 76-core one (88.6), while its prompt speed was 18% lower (1,014).

So the M3 Ultra's case rests on memory capacity. The one in the 70B and 671B results below has 512 GB.

Published results also include Apple's M5 Ultra (80 GPU cores, 1,228 GB/s): 179.1 tokens per second and 4,945 for the prompt, on the same test and the same build that gave the M2 Ultra 125.2 and 1,489. That is 43% faster generation and 3.3 times the prompt speed. Llama 2 7B is the only model the M5 Ultra has been measured on in my data, so the comparisons below use the M2 and M3 Ultra.

DGX Spark vs Mac Studio

In 49 results a DGX Spark and a Mac Studio M2 Ultra ran the same model, quant, engine, prompt length and context, one user each, across 7 models. The Mac generated faster in 45 of them, and the Spark read the prompt faster in 45. The rows below use llama.cpp and generate 32 tokens.

Model and settingSpark generationMac generationSpark promptMac prompt
gpt-oss-120b MXFP4, 512-token prompt, empty context57.188.61,1521,201
gpt-oss-120b, 2,048-token prompt, empty context58.785.62,4441,649
gpt-oss-120b, 2,048-token prompt, 32,768 tokens in context42.865.51,567721
Qwen3-Coder-30B-A3B Q8_0, 2,048-token prompt, 32,768 in context30.245.31,348431
GLM-4.7-Flash Q8_0, 2,048-token prompt, 32,768 in context32.721.8567151
Qwen2.5-Coder-7B Q8_0 (dense), 512-token prompt, empty context29.178.22,4201,509

All speeds are tokens per second. The Spark's lead in reading grows with the context. With 32,768 tokens already in the context it read a 2,048-token prompt 2.2 times as fast as the Mac on gpt-oss-120b and 3.75 times as fast on GLM-4.7-Flash, where it also generated faster.

The type of model matters as much as the machine. A dense model reads every weight for every token, and on the dense Qwen2.5-Coder-7B the Mac generated 2.7 times as fast. Mixture-of-experts models read only their active experts (5.1B of gpt-oss-120b's 116.8B parameters), and on the four of them, with a 512-token prompt and an empty context, the Mac's lead shrank to 1.3 to 1.6 times.

If you mostly chat with short prompts, the Mac Studio answers faster. If you feed long documents or a coding agent's large context, the DGX Spark spends less time reading before it starts answering. The full table of all 49 results is on the DGX Spark vs Mac Studio comparison. Apart from the Llama 2 7B test, no M3 Ultra results match the Spark's settings yet.

DGX Spark vs Strix Halo

Both machines in these results have 128 GB of unified memory. On the Llama 2 7B test the DGX Spark generated 60.4 tokens per second against 50.0 for the Ryzen AI Max+ 395, 21% faster, and read the prompt 3.6 times as fast (3,322 against 911). Through Ollama on Llama 3.2 3B the gap was smaller: 97.9 against 88.1. On Llama 3.1 70B they were level, 4.7 for the Spark and 5.0 for the Ryzen, although that Ryzen run kept part of the model on the CPU.

The data here is thin. The Ryzen AI Max+ 395 has 5 measured results across 4 models, and its Llama 2 7B run used ROCm while the Spark's fastest used Vulkan. Treat the prompt gap as approximate.

What hardware runs 70B and larger models?

A 70B dense model is where the classes separate most. These results come from Ollama, with the same model tag and test on each machine.

MachineLlama 3.1 70B generation (tok/s)Note
Mac Studio, M3 Ultra, 512 GB14.1
Ryzen AI Max+ 3955.0part of the model on the CPU
DGX Spark (GB10)4.7
RTX 4090, 24 GB3.1part of the model on the CPU

The quant isn't recorded for these runs, so treat them as a rough ranking. The same M3 Ultra ran DeepSeek R1 at 19.9 tokens per second and Llama 3.1 405B at 2.0. DeepSeek R1 has 671B parameters but only 37B active per token, which is why it generated ten times as fast as the dense 405B model.

On the DGX Spark, the largest models measured are both mixture-of-experts: gpt-oss-120b at 57.1 tokens per second and Nemotron 3 Super 120B (Q4_K, a 69.9 GB file, 12B active) at 19.7. The 96 GB and up page lists what has been measured on that much memory.

Can a laptop run a local LLM? What I measured

I ran the same llama-bench settings (llama.cpp build b12728, Q4_K_M files, a 512-token prompt, 128 generated tokens, three repeats) on two Windows laptops on 25 and 26 November 2026. The first has an RTX 4050 Laptop GPU with 6 GB at a 60 W power limit and a Core i7-13620H. The second has a Core Ultra 9 285H, whose Arc 140T integrated GPU can use about 18 GB of the 32 GB of shared memory through Vulkan; on that laptop I ran each model twice, once on the Arc 140T and once on the CPU alone.

Model (Q4_K_M)FileRTX 4050 LaptopArc 140TCore Ultra 9 285H CPU
LFM3 1.7B1.09 GB142.9 / 8,10446.6 / 30132.8 / 355
Llama 3.2 3B2.01 GB83.4 / 4,44328.4 / 19322.5 / 153
Gemma 3 4B2.48 GB62.9 / 3,76924.1 / 17715.2 / 127
Llama 3.1 8B4.91 GB38.5 / 1,85214.1 / 79.610.2 / 60.9

Each cell is generation / prompt in tokens per second, with an empty context. On Llama 3.1 8B the 6 GB discrete GPU generated 2.7 times as fast as the integrated GPU and read the prompt 23 times as fast. The Arc 140T beat the CPU by 39% in generation on that model, but on the smallest one the CPU read the prompt faster (355 against 301), so the integrated GPU pays off on bigger models.

On a 6 GB card, leave room for the context

Llama 3.1 8B's weights are 4.91 GB, and the Windows desktop held about 1.7 GB of my card's 6 GB. With an empty context the model ran fully on the GPU at 38.5 tokens per second. With 4,096 tokens already in the context, that all-GPU setup read the prompt at only 177 tokens per second, while keeping 28 layers on the GPU and the rest on the CPU held 1,157.

A mixture-of-experts model is the way to run something bigger than a small card. gpt-oss-20b is a 12.1 GB file, twice my card's memory, and it generated 34.0 tokens per second with the experts of 18 layers kept on the CPU (--n-cpu-moe 18), and 33.7 with 4,096 tokens in the context. Ollama 0.40.16 split it 67% CPU and 33% GPU by itself and got 33.5. Keeping the experts of only 12 layers on the CPU dropped it to 12.8. The dense Qwen3.8 27B (16.55 GB) managed 4.2 tokens per second at best on the same laptop, in a shorter run of 64 generated tokens.

If you're buying a laptop for local LLMs, pay for GPU memory. Published measurements put an RTX 5090 Laptop with 24 GB at 158.1 tokens per second on the Llama 2 7B test, 3.6 times the RTX 4050 Laptop's 43.7.

What these numbers don't cover yet

  • Llama 2 7B is the only test run on nearly every device. It is a 3.82 GB file, so it says nothing about how a card handles 30B models or long context.
  • The RTX 5090 and RTX 3090 have been measured on that test only, apart from one small Ollama run on the 5090, so I can't show either on a 30B model yet.
  • The Ryzen AI Max+ 395 has 5 results, and its 70B run had part of the model on the CPU.
  • The M3 Ultra's Metal result comes from a 2023 build, and apart from the Llama 2 7B test no M3 Ultra results match the DGX Spark's settings.
  • The Ollama results don't record the quant, and the host PC changes them: the same RTX 4090 measured 216.5 to 334.7 tokens per second on Llama 3.2 3B in three different PCs.
  • My own measurements are the two laptops in the laptop section. Everything else, including the RTX 4050 Laptop's Llama 2 7B result, comes from published measurements.

Need this running for your team? I set up and maintain private LLM servers, sized from measurements like these and checked on your own hardware. If you'd rather talk it through first, book a call.

Next

Frequently asked questions

What is the best local LLM hardware in 2026?

It depends on the size of the model. For models that fit in 24 to 32 GB, a desktop NVIDIA card is fastest: an RTX 5090 generated 300.4 tokens per second on the Llama 2 7B Q4_0 test and an RTX 4090 190.1. For 70B to 120B models you need unified memory, where a Mac Studio generated fastest and the DGX Spark read long prompts fastest.

Is the DGX Spark faster than a Mac Studio for local LLMs?

At reading the prompt, yes; at generating the answer, no. In 49 results where both ran the same model, quant and settings, across 7 models, a Mac Studio M2 Ultra generated faster in 45 and the DGX Spark read the prompt faster in 45. On gpt-oss-120b the Mac generated 88.6 tokens per second against 57.1, and with 32,768 tokens in the context the Spark read a 2,048-token prompt 2.2 times as fast.

DGX Spark vs Strix Halo: which is faster for local LLMs?

The DGX Spark, in the few results that compare them. On the Llama 2 7B Q4_0 test it generated 60.4 tokens per second against 50.0 for a Ryzen AI Max+ 395 and read the prompt 3.6 times as fast; on Llama 3.2 3B through Ollama it was 97.9 against 88.1. Both machines had 128 GB of unified memory, and the Ryzen AI Max+ 395 has only five measured results so far.

How much VRAM do I need to run a local LLM?

Enough for the model file plus room for the context. Llama 3.1 8B at Q4_K_M is a 4.91 GB file, gpt-oss-20b 12.1 GB and gpt-oss-120b 63.37 GB, and my benchmarks count a model as fitting when its weights take at most 80% of the memory. A mixture-of-experts model can go past that by keeping some experts on the CPU: gpt-oss-20b ran at 34.0 tokens per second on my 6 GB laptop GPU.

Can I run a local LLM on a laptop without a dedicated GPU?

Small models, yes. On a Core Ultra 9 285H laptop I measured Llama 3.1 8B at 14.1 tokens per second on the Arc 140T integrated GPU and 10.2 on the CPU alone. Reading the prompt is the slow part: 79.6 tokens per second for that model on the integrated GPU, against 1,852 on a 6 GB RTX 4050 Laptop.

Want a second pair of eyes on this?

Book a 15-minute intro call. Bring the problem, and you leave with a concrete next step.