Which local LLMs fit your hardware? Compare 4-bit model fit and estimated llama.cpp decode speed across DGX Spark, Strix Halo, Macs and RTX GPUs.
NVIDIA's DGX Spark and a Ryzen AI Max+ 395 mini PC both come with 128 GB of memory. NVIDIA advertises up to 1 petaFLOP of FP4 compute for the Spark, so its single-user token generation may look much faster on paper. Public llama.cpp runs tell a narrower story. On gpt-oss-120b, the Spark decoded 58.7 tokens per second in llama.cpp's benchmark, while a Strix Halo box reached 56.6 in a separate test. One tester using the same llama.cpp build on both measured 45.9 and 47.5. Qwen3.5-122B-A10B also produced close numbers, 21.3 on Spark and 22.3 on Strix Halo, but those runs used different quantizations (Q4_K_M and Q5_K_XL) and are not a controlled speed comparison.
Memory bandwidth helps explain the result. The makers specify 273 GB/s for Spark and 256 GB/s for the Ryzen AI Max+ 395 reference system. A single request repeatedly reads model weights during decoding. The public runs also differ in software and settings, so bandwidth alone does not explain every token-per-second figure.
We used that idea to build a table for 32 hardware profiles and 18 open models. It covers GB10 boxes, Strix Halo machines, Macs, RTX PRO and GeForce cards, and RTX laptops. For each device, we estimate whether a model fits in GPU-accessible memory and how fast llama.cpp might generate tokens for one request. The memory formula was checked against nine A100 conditions used to build it; the speed formula was checked against public llama.cpp runs. These are estimates, not measurements on all 32 hardware profiles.
For a quick answer, here are four examples from the calculator. Each model is in a 4-bit format, and the fit calculation reserves a 32K-token context. Speeds are estimates for one request with a short context; they can fall as the context fills. | Device | Model that fits | Estimated decode speed |
|---|---|---|
| RTX 5080 laptop, 16 GB GPU | gpt-oss-20b (MXFP4) | 170 tok/s |
| RTX 4090, 24 GB GPU | Qwen3-30B-A3B (Q4_K_M) | 202 tok/s |
| DGX Spark, 128 GB unified memory | gpt-oss-120b (MXFP4) | 60 tok/s |
| Strix Halo, 128 GB unified memory | gpt-oss-120b (MXFP4) | 53 tok/s |
We found no public llama-bench run on the RTX 5080 laptop chip in the fitting data, so its 170 tok/s figure is an extrapolation from other NVIDIA devices.
Two questions: does it fit, and how fast?#
Fit is a sum. A model needs memory for four things:
- Weights. About the size of the GGUF file you download.
- KV cache. It grows with every token of context.
- Compute buffer. Working space for one batch.
- Runtime overhead. The space the GPU runtime itself takes.
Hybrid models such as Qwen3.5 add a fifth, small item: a recurrent state of about 64 MiB.
If the sum is larger than the memory the GPU can use, the model either won't load or spills to the CPU and slows to a crawl. Speed is mostly one division. To produce one token, the GPU reads every weight that token passes through once. A dense 32B model at 4 bits is about 18 GiB, so each token reads about 18 GiB. A mixture-of-experts (MoE) model such as Qwen3-30B-A3B stores 30B parameters but sends each token through about 3B of them, so each token reads only about a tenth of the file. That is why a 30B MoE model can be faster than a dense 8B model on the same card. Divide the memory bandwidth by the bytes read per token and you get a ceiling on decode speed.
Prompt processing, the wait before the first token, works differently: it is limited by compute, which is where the Spark's FLOPs do help. This post covers decode speed, the speed you watch while the answer streams.
The memory formula, checked against our logs#
Each piece of the sum comes from the model's config:
-
Weights use the file size from the Hugging Face repo. We subtract the input embedding table when the model keeps a separate output head, because llama.cpp keeps that table in CPU memory.
-
KV cache is layers × context × 2 (keys and values) × KV heads × head size × 2 bytes. Some models keep KV only in some layers:
-
Sliding-window layers (Gemma 3, gpt-oss) keep only their window.
-
Hybrid models (Qwen3.5, Qwen3.6, Qwen3-Next) keep KV only in their full-attention layers, one in four.
-
DeepSeek-style models store one compressed vector per layer.
-
Compute buffer is about 100 MiB plus 1 MiB per 1K tokens of context at the default batch size. The fixed part grows with the model's hidden size, so a 70B model gets 200 MiB.
-
Overhead is 480 MiB per GPU, the amount we found inour llama-server memory breakdown . We compared the formula with nine runs we had already done on an A100: Qwen3-8B, Gemma 3 4B and Qwen3.5-9B, each at 4K, 32K and 128K context. The formula missed the measured peak by -17 MiB, +43 MiB and -31 MiB. Each model's error stayed the same at all three lengths. In these three models, the context-dependent part matched the observed growth, while the remaining error was a small fixed offset. The compute buffer and overhead terms were set from these same logs, so what this comparison tests is the weights and KV cache terms.
Not all of a unified machine's memory goes to the GPU. A discrete card can use nearly all of its VRAM. On machines where the CPU and GPU share memory, the operating system sets a cap:
| Machine | Default GPU cap | After changing a setting |
|---|---|---|
| Mac, 32 GB or less | about 2/3 of RAM (users report this; Apple does not document it) | total minus 8 GB, with sysctl iogpu.wired_limit_mb |
| Mac, 36 GB and up | about 3/4 of RAM | total minus 8 GB |
| Strix Halo on Windows | 96 GB of 128 GB, set in AMD's driver | 96 GB |
| Strix Halo on Linux | depends on the GTT setting | total minus 8 GB |
| DGX Spark and other GB10 boxes | total minus 8 GB (our assumption for the OS) | same |
This is why a 64 GB GB10 box and a 64 GB Mac do not fit the same models out of the box. Llama-3.3-70B with a 32K context needs about 50 GiB: it fits on the GB10 box (56 GB usable) but not on the Mac until its limit is raised from 48 GB. The calculator shows both the default and the tuned figure.
The speed formula, checked against 51 public runs#
Pure bandwidth division gives a ceiling that real runs never reach. Every token also pays a fixed cost for launching work on the GPU, and MoE models pay extra to pick and route experts. We fitted three numbers for each backend (two for Vulkan on NVIDIA, which had no MoE runs): how much of the bandwidth is used, the fixed cost per token, and the extra cost per token for MoE. The backends were CUDA, Apple Metal, AMD on Strix Halo, and Vulkan on NVIDIA. The fitted data was 51 public llama-bench runs at batch size 1 from 2025 and 2026 builds, gathered from llama.cpp's benchmarks and discussions and from testers' published results. Two additional Apple Vulkan runs were too few to fit a separate backend and were not scored here.
| Backend | Runs | Share of bandwidth used | Fixed cost per token |
|---|---|---|---|
| CUDA | 27 | 71% | 0.27 ms |
| AMD (Strix Halo) | 12 | 84% | 1.56 ms |
| Metal | 8 | 88% | 1.73 ms |
| Vulkan on NVIDIA | 4 | 91% | 1.32 ms |
To check the formula on the available data, we predicted each run with coefficients fitted on the other runs from the same backend; a CUDA run, for example, was predicted from the other 26 CUDA runs. Across these 51 leave-one-out predictions, the median absolute error was 10%, and 80% were within 21%. This check still reuses hardware and model families across rows, so it does not show how accurate a prediction will be on a new chip. The CUDA fit includes the three slow hybrid-model runs below, which pull its bandwidth share down and its MoE cost up.
Hybrid-attention models are the exception. On DGX Spark, three runs were 30% to 45% slower than predicted (the formula overshot them by 43% to 80%):
- Qwen3-Next-80B
- Qwen3.5-35B-A3B at Q4_K_M
- Qwen3.5-122B-A10B
A fourth hybrid run, Qwen3.5-35B-A3B at Q8_0, was within 7%. These models mix ordinary attention with linear attention layers. Those layers fit poorly into a "bytes per token" count, and llama.cpp's kernels for them are newer. The calculator gives these models an extra warning instead of a correction factor, because four runs on one machine are too few to fit one.
Builds and card variants also move the numbers. Public runs of gpt-oss-120b gave 196 tokens per second on an RTX PRO 6000 Workstation and 171 on the Max-Q version, with different builds. The other fifth of the runs, outside the hybrid models, missed by up to 40% in either direction. Read every speed below as a rough figure, not a promise.
Which local LLMs fit on each GPU and Mac?#
Each row shows the largest models that fit with a 32K-token context and how fast we expect them to decode. The speeds are for a short prompt; a full 32K context is slower. In one public Strix Halo run, gpt-oss-120b went from 47.5 tokens per second at the start to 35.4 with 32K tokens already in the context. Models marked * are hybrid-attention models and ran 30% to 45% slower than the formula in three of four public DGX Spark runs. For unified-memory machines, the row uses the tuned GPU cap.
| Machine (memory) | Largest models that fit, estimated tok/s |
|---|---|
| DGX Spark and other GB10 boxes (128 GB) | Qwen3.5-122B-A10B 29* (public run 21), gpt-oss-120b 60, Llama-3.3-70B 5 |
| Strix Halo boxes (128 GB) | Qwen3.5-122B-A10B 29*, gpt-oss-120b 53, Llama-3.3-70B 5 |
| Mac Studio M3 Ultra (512 GB) | DeepSeek-V3.1 28, Qwen3.5-122B-A10B 72*, gpt-oss-120b 109 |
| MacBook Pro M4 Max (128 GB) | Qwen3.5-122B-A10B 55*, gpt-oss-120b 90 |
| MacBook Pro M5 Max (128 GB) | Qwen3.5-122B-A10B 60*, gpt-oss-120b 96 |
| Mac mini M4 Pro (64 GB) | Llama-3.3-70B 6, Qwen3-Next-80B 78*, Qwen3-30B-A3B 74 |
| RTX PRO 6000 (96 GB) | Qwen3.5-122B-A10B 142*, gpt-oss-120b 228 (public runs 171-196) |
| RTX 5090 (32 GB) | Qwen3-32B 64, Qwen3-30B-A3B 269 |
| RTX 4090 or 3090 (24 GB) | Qwen3-30B-A3B 202 or 194, Gemma 3 27B 43 or 40 |
| RTX 5090 laptop (24 GB GPU) | Qwen3-30B-A3B 189, Gemma 3 27B 38 |
| RTX 5080 laptop (16 GB GPU) | gpt-oss-20b 170, Qwen3-8B 123 |
Three patterns stand out.
- 128 GB unified memory admits larger models but does not guarantee fast decoding. The Spark, Strix Halo and an M4 Max MacBook all fit 120B-class MoE models. For gpt-oss-120b, the estimates are about 60, 53 and 90 tokens per second, respectively.
- A 24 GB RTX card is faster than the 128 GB mini PCs for this 30B MoE model. Qwen3-30B-A3B fits on an RTX 4090 or a 5090 laptop, and the estimate there is about 190 to 200 tokens per second. The Spark's estimate for the same model is about 80, so the RTX devices are roughly two and a half times faster in this calculation.
- Dense 70B is slow everywhere except big cards and Ultra Macs. Llama-3.3-70B's weights are about 39 GiB at 4 bits (about 50 GiB with a 32K context), and every token reads all the weights, so the Spark and Strix Halo boxes manage only about 5 tokens per second, and a 128 GB M4 or M5 Max about 11 to 12. An M3 Ultra reaches about 16.5 and an M5 Ultra about 24, and the RTX PRO 6000 manages about 30.
Brands share chips, so many machines share a row#
Most of the 91 products we listed are a chip we already counted, inside a different case:
- GB10 boxes. NVIDIA's DGX Spark, Dell Pro Precision with GB10 (sold earlier as Dell Pro Max with GB10), HP ZGX Nano G1n, Lenovo ThinkStation PGX, ASUS Ascent GX10, MSI EdgeXpert, Acer Veriton GN100 and Gigabyte AI TOP ATOM all use the same chip and memory. They get the same row. Cooling and firmware can move real numbers a little.
- Strix Halo machines. The HP Z2 Mini G1a, HP ZBook Ultra G1a, Framework Desktop, GMKtec EVO-X2, Beelink GTR9 Pro, Minisforum MS-S1 Max, Corsair AI Workstation 300 and ASUS ROG Flow Z13 all use the Ryzen AI Max+ 395 or a sibling. The 192 GB PRO 495 machines (HP ZBook Ultra G3a, Framework Desktop 192GB, Lenovo ThinkCentre X Ultra) fit more, and read memory 0 to 7% faster (256 to 273 GB/s, depending on the memory speed each brand ships).
- Workstation towers. HP Z4 and Z8 Fury, Dell Pro Max Tower and Pro Precision, Lenovo ThinkStation P3 to P8 and Puget Systems towers are chassis. What matters is the card inside and how many there are.
- RTX laptops. RTX 5090 or RTX PRO 5000 laptops from Dell, HP, Lenovo, Razer, ASUS, MSI and Alienware have a 24 GB GPU at 896 GB/s. That is about half of the desktop 5090's bandwidth and three quarters of its memory. Public tests measured 158 tokens per second on a 7B model on the laptop, against 300 on the desktop card.
More cards on the default split add memory, not speed. In our llama.cpp test on two A100 cards, a single request on a Q4_K_M model ran at 47.9 tokens per second on one card and 49.3 with llama.cpp's default layer split, almost the same. Tensor splitting, which you have to turn on, reached 64.5, or 34% faster. The calculator assumes the default split and adds no speed for extra cards. Four RTX PRO 6000 Max-Q cards fit DeepSeek-V3.1 at 4 bits with less than 1 GiB to spare. They would decode it at about 51 tokens per second.
How to pick#
Start from the model you want to run, not from the machine.
- The model fits in 24 to 32 GB at 4 bits. This covers Qwen3-30B-A3B, Gemma 3 27B and gpt-oss-20b. An RTX 4090 or 3090, or an RTX laptop, is 2.4 to 3.7 times faster than a Spark or Strix Halo box, and a desktop RTX 5090 is 3.3 to 6.4 times faster. On the two MoE models an RTX 4090 or 3090 also beats every Mac we listed. On dense Gemma 3 27B an M3 Ultra matches them and an M5 Ultra beats them.
- You need a 120B-class MoE model at home. This covers gpt-oss-120b and Qwen3.5-122B. gpt-oss-120b needs about 62 GiB at 32K context and fits from a 72 GB card (RTX PRO 5000 72GB) or a 96 GB Ultra Mac up. Qwen3.5-122B needs about 72 GiB and fits on the 84 GB RTX PRO 5500, a 96 GB card, any 128 GB unified-memory machine, or a 96 GB Ultra Mac once its GPU memory limit is raised. Among the 128 GB machines in our table, the Mac has the highest estimated speed, based on its higher bandwidth.
The local LLM hardware calculator lets you pick a machine, a memory size and a context length, and it lists every model that fits with its estimated speed and warnings. Where the maker lists one, it also shows the price on the maker's own website for that machine and memory size, as we saw it on December 3, 2026. Before you buy a machine, check the models you actually use there.