Галоўная / Артыкулы

How Much Memory Do You Need for Local AI? Speeds from 16 GB to 512 GB

Measured local LLM speed and quality across 16, 32, 128, 256 and 512 GB machines, what each class can run, and which GPUs, Macs and mini PCs fit where.

Выдавец: REACTAPP.TOP5 хв чытання1128 слоў

Артыкул апублікаваны на англійскай мове.

The first question in any local AI build is how much memory you need, and the honest answer is that memory decides which models load while the hardware behind it decides how fast they run. Below are measured results across six memory classes, from a 16 GB gaming card to a four-box GB10 cluster with 512 GB, using the same test harness everywhere.

Each class was measured on one reference machine. Other hardware with the same amount of memory will load the same models, but its speed will differ, so the lists of matching hardware further down are about what fits, not about how fast it goes.

Six classes, six reference machines

Memory classMeasured onSetupsFully scoredFastest decodeBest quality
16 GBRTX 5060 Ti 16 GB51Flint 40B, 115.9 tok/sQwen3.8-27B, 66.1 %
32 GBRTX 5090 32 GB129Qwen3.8-27B, 253.4 tok/sDeepSeek-V4.1-Flash-1017, 68.0 %
128 GB1× DGX Spark (GB10)159Nemotron 3.5 Lightning 30B-A3B, 141.9 tok/sOrnith-1.5-122B, 70.8 %
256 GB2× DGX Spark (GB10)95DeepSeek-V4.1-Flash-1017, 70.6 tok/sDeepSeek-V4.1-Flash-1017, 69.1 %
256 GB MacMac Studio M5 Ultra 256 GB84Nemotron 3.5 Lightning 30B-A3B, 306.9 tok/sDeepSeek-V4.1-Flash-1017, 69.7 %
512 GB4× DGX Spark (GB10)54DeepSeek-V4.1-Flash-1017, 81.8 tok/sDeepSeek-V4.1-Flash-1017, 66.7 %
Bar chart of the fastest measured decode speed in each memory class from 16 GB to 512 GB
Fastest single-request decode in each class. More memory does not mean more speed: the 16 GB card beats both the two-box and the four-box Spark cluster on this metric.

The fastest result per class goes 115.9 tok/s on 16 GB, 253.4 on 32 GB, 141.9 on one Spark, 70.6 on two Sparks, 306.9 on the Mac and 81.8 on four Sparks. The big classes look slow at the top because their runs are mostly far larger models, and larger models decode slower.

Quality barely follows memory

Scatter chart of decode speed against quality mean for fully scored runs in all memory classes
Every fully scored run, speed against the seven-test quality mean. They sit between about 57 and 71 %, while speed varies by more than 12×.

Plot every fully scored run and the quality band is narrow: all 31 land between roughly 57 and 71 %, whether they run on a 16 GB card or a 512 GB cluster. Qwen3.8-27B on one 5060 Ti scores 66.1 %; DeepSeek-V4.1-Flash on four Sparks scores 66.6 %. What bigger memory buys you is mostly context length, parallel users and the option to run very large MoE models at all.

One big model at four budgets

Bar chart of DeepSeek-V4.1-Flash decode speed on an RTX 5090 with offload, a Mac Studio, two DGX Spark and four DGX Spark
DeepSeek-V4.1-Flash decode speed on four very different budgets. Quality stays within about 2 points; speed varies almost 4×.
SetupQuantDecode, tok/sPrefill 8K, tok/sQuality meanPeak memory
RTX 5090 + RAM/NVMe offloadMaya-S IQ2_XXS20.982868.0 %30.9 GiB
Mac Studio M5 UltraMLX 2/3-bit (e2e3-p4-h8)74.21,76367.4 %206.3 GiB
2× DGX SparkEXL3 2.5 bpw70.62,15766.1 %98.7 GiB
4× DGX SparkEXL3 4.0 bpw81.82,01666.6 %103.2 GiB

DeepSeek-V4.1-Flash is a 340 GB model, and it was measured on four very different budgets. On a single RTX 5090 with 96 GB of RAM and an NVMe drive holding most of the experts it decodes at 20.9 tok/s. The Mac does 74.2, two Sparks 70.6 and four Sparks 81.8. All four score between 66.1 and 68.0 %. Offloading turns a model you can't run into one you can, at a quarter of the speed.

Context costs memory too

Model weights are only part of the budget. Qwen3.8-27B EXL3 4.0 bpw on the RTX 5090 peaks at 18.9 GiB with a 128K context. The same model split across two 5060 Ti cards reaches a 256K context at 22.4 GiB. Qwen3.8-Flash-Next on two Sparks loads a 1M-token context at 87.9 GiB. On a 16 GB card, the gap between 43,008 and 117,760 tokens of context on the same model comes down to the quant and the engine's cache handling.

Where your hardware lands

16 to 24 GB

RTX 5080, RTX 5070 Ti, RTX 5060 Ti 16 GB, RTX 4090, RTX 4080 Super, RTX 4080, RTX 4070 Ti Super, RTX 4060 Ti 16 GB, RTX 3090 Ti, RTX 3090, RTX PRO 4000 Blackwell, RTX 4500 Ada, RTX 4000 Ada, Radeon RX 9070 XT, Radeon RX 9070, Radeon RX 9060 XT 16 GB, Radeon RX 9060 XT LP, Radeon RX 7900 XTX, Radeon RX 7900 XT, Radeon RX 7900 GRE, Radeon RX 7800 XT, Radeon RX 7600 XT, Radeon RX 6950 XT, Radeon RX 6900 XT, Radeon RX 6800 XT, Radeon RX 6800. These load the same 27B-class quants and MoE-with-offload setups as the RTX 5060 Ti 16 GB reference. Cards with 24 GB, such as the RTX 4090, 3090 and RX 7900 XTX, have room for longer context or a higher-bit quant but not a different model tier.

32 to 96 GB

RTX 5090, RTX PRO 6000 Blackwell, RTX PRO 5000 Blackwell 72 GB, RTX PRO 5000 Blackwell 48 GB, RTX PRO 4500 Blackwell, RTX 6000 Ada, RTX 5000 Ada, RTX A6000, Radeon AI PRO R9700, Radeon AI PRO R9600D, Radeon PRO W7900, Radeon PRO W7800 32 GB, Radeon PRO W7800 48 GB. 32 GB is the RTX 5090 tier: 27B models at 4 to 6 bits with 128K to 256K context, plus large MoE models with RAM offload.

128 GB of unified memory

Framework Desktop, GMKtec EVO-X2, HP Z2 Mini G1a, ASUS ROG Flow Z13, Mac Studio M5 Max, MacBook Pro M5 Max, NVIDIA DGX Spark, ASUS Ascent GX10, MSI EdgeXpert, Gigabyte AI TOP ATOM, Lenovo ThinkStation PGX, Acer Veriton GN100, HP ZGX Nano G1n, plus every GB10 box: NVIDIA DGX Spark, ASUS Ascent GX10, Dell Pro Max with GB10, MSI EdgeXpert, Gigabyte AI TOP ATOM, Lenovo ThinkStation PGX, Acer Veriton GN100 and HP ZGX Nano G1n. Anything in this group loads the 120B-class models measured on one Spark; Macs and AMD Strix Halo machines will run them at their own speed.

256 GB and up

A Mac Studio M5 Ultra with 256 or 512 GB, or two and four GB10 boxes linked over ConnectX-7. This is the tier for the 340 GB DeepSeek-V4.1-Flash and models of that size without offload.

Picking a class

  • Chat, coding help and transcription for one person: 16 GB works, 32 GB is comfortable and much faster.
  • Long-context coding agents and several users on one box: 32 GB on an RTX 5090 with a batching engine.
  • Models above 100B without offload: 128 GB of unified memory; prefer the Mac if speed matters, a Spark if your stack is CUDA.
  • The largest open MoE models at usable speed: a 256 GB Mac Studio, or two to four GB10 boxes.
  • Before buying more memory, check whether a better engine or quant on the hardware you have closes the gap. On the same 5090 the software stack alone changed speed by almost 4×.