Local LLMs, image models, and agent stacks live or die on memory. The most common mistake is treating system RAM and GPU VRAM as the same pool.

Bottom line up front: Size GPU VRAM to the model first. Then buy fast dual-channel DDR5 for everything that does not fit on the GPU β€” OS, context, KV cache overflow, and CPU offload. For most serious local-AI desktops in 2026: 64GB DDR5-6000 (2Γ—32GB). Use 32GB only for small models that mostly fit in VRAM. Use 128GB+ when you routinely offload 70B-class weights or run multi-model workflows.

Compare live kits on DDR5 RAM Prices and Best RAM Deals. For capacity planning across all workloads, also see How Much RAM Do I Need?.


Quick decision table

Your setup β€” System RAM target β€” Why
Your setupSystem RAM targetWhy
7B–8B Q4 mostly in VRAM32GB DDR5OS + browser + light headroom
13B–34B with some offload64GB DDR5Offload layers + long context
70B Q4 with GPU offload64–128GB DDR5Weights spill + KV cache
CPU-only / heavy offload 70B128GB+ DDR5Entire weight path hits DRAM
Apple Silicon unified memoryBuy max at purchaseNot upgradeable later

VRAM vs system RAM (the rule that saves money)

  1. 1If the model fits in VRAM (or unified memory), token speed is dominated by the GPU/accelerator. System RAM still needs to run Windows/macOS, the UI, and context β€” but buying 128GB β€œjust because AI” is often wasted.
  2. 2If layers offload to CPU RAM (llama.cpp, Ollama, LM Studio, etc.), system capacity and DDR5 bandwidth become the bottleneck. Slow or single-channel memory feels like the model is broken.
  3. 3Quantization (Q4 / Q5 / Q8) shrinks weights. A 70B Q4 package is roughly ~40GB of weights β€” not 140GB FP16 β€” but you still need headroom above that number.

Rough weight footprints (order of magnitude):

Model class β€” Q4 weights (approx.) β€” Comfortable system RAM when offloading
Model classQ4 weights (approx.)Comfortable system RAM when offloading
7B–8B4–6GB32GB
13B–14B7–10GB32–64GB
30B–34B18–22GB64GB
70B–72B35–45GB64–128GB

Always add OS overhead (often 8–16GB in real desktops) and context growth.


Why DDR5 speed still matters for AI

CPU-side and offload inference stream weights from memory every token. Higher sustained bandwidth improves tokens/sec when the GPU is not doing all the work.

Platform β€” Practical AI memory pick
PlatformPractical AI memory pick
AMD AM5DDR5-6000 CL30 EXPO, dual-channel β€” see Best RAM for AM5
Intel LGA1851DDR5-6000–6400 UDIMM; CUDIMM only if chasing extreme XMP β€” CUDIMM Guide
Older DDR4Upgrade capacity first; bandwidth lags DDR5 for offload

Do not buy four sticks to hit 128GB on a daisy-chain board unless you accept lower stable speeds β€” Four Sticks DDR5 Stability. Prefer 2Γ—64GB or 2Γ—48GB when the board/CPU allow it.


Recommended builds (commerce-first)

Starter local AI (chat + coding assistants)

  • 32GB (2Γ—16GB) DDR5-6000 CL30
  • GPU with enough VRAM for your main 7B–14B Q4 model
  • Good for: Ollama daily drivers, Continue.dev, small agents

Shop: DDR5 prices Β· Best deals

Serious local AI (default recommendation)

  • 64GB (2Γ—32GB) DDR5-6000 CL30–CL32
  • Headroom for 30B-class offload, longer context, browser + IDE + model UI
  • Best $/usefulness point for most builders in 2026

Heavy offload / research

  • 128GB (2Γ—64GB) DDR5-5600–6000 (stability over peak MT/s)
  • Or workstation ECC if uptime/data integrity matters β€” Server / ECC Guide
  • Validate QVL; enable XMP/EXPO carefully β€” XMP/EXPO BIOS Guide

Laptops


Stability and verification

Local AI stresses memory for hours. After enabling XMP/EXPO:

  1. 1Confirm dual-channel in CPU-Z.
  2. 2Run a memory stress pass before large downloads fill your return window β€” How to Test RAM Health.
  3. 3Avoid mixing random used sticks for a 128GB Frankenstein kit β€” Buying Used RAM and Mixing RAM.

What not to optimize

  • Chasing 8000+ MT/s CUDIMM on AM5 for AI β€” bypass mode wastes money (CUDIMM Guide).
  • RGB premiums β€” irrelevant to tokens/sec.
  • Waiting for DDR6 β€” consumer platforms are not a 2026 buy reason (DDR5 vs DDR6).
  • Ignoring VRAM β€” no amount of DDR5 fixes a model that needed 24GB VRAM and you have 8GB.

Buying checklist

  1. 1List the largest model + quantization you will actually run.
  2. 2Check whether it fits in VRAM; if not, size RAM for offload + OS.
  3. 3Buy a matched dual-channel DDR5 kit (32 / 64 / 128GB).
  4. 4Prefer 6000 CL30-class on AM5; solid 6000–6400 on modern Intel.
  5. 5Enable EXPO/XMP; stress test; then load models.
  6. 6Track market timing on RAM Price Trends if the upgrade is optional.

Capacity and homelab paths

Compare Best 96GB DDR5 when 64GB is too small. If the same host runs virtualized services, use the Proxmox RAM guide to budget guests and storage headroom.

Related guides