1. Learn
  2. Know what matters

How much RAM do you need for local AI? (System RAM, not VRAM)

How much system memory a local AI machine needs when the model is on the GPU, when it spills onto the CPU, on a Mac, and with no GPU at all.

Updated Oct 26, 2026 · RunItLocal.io

If your model fits on the GPU: 16 GB is the minimum and 32 GB is comfortable. If you plan to spill models onto the CPU, or run with no GPU, you want enough RAM to hold the model plus about 8 GB for everything else. A Mac is different, because its RAM is the GPU's memory.

Model on the GPU: RAM is a supporting act

When everything fits in VRAM, system RAM mostly helps with loading. The model file is read from disk, often through RAM, and then copied to the card. After that it sits on the GPU, and RAM speed has no effect on how fast the model writes.

So you need enough for your operating system, your browser and other apps, the inference tool itself, and some room for the file while it loads. In practice:

GPU setupComfortable system RAM
One 8 to 12 GB card16 GB
One 24 GB card32 GB
Two or more cards, 32 to 48 GB of VRAM64 GB

That's what our builds use. The RTX 3060 starter has 16 GB, the RTX 3090 desktop has 32 GB, and the used workstations for multi-GPU builds come with 64 GB, which is cheap in old DDR4 workstations. See the builds page.

Having less than the model's size in RAM usually still works, because tools like llama.cpp can stream the file from disk instead of holding it all. It can make loading slower, and it's tight if you also run a browser and Docker.

Model spilling onto the CPU: RAM is the bottleneck

If the model doesn't fit in VRAM, the rest goes in system RAM and runs on the CPU. Now RAM matters twice:

  • Size. VRAM + system RAM has to hold the whole model, its context, and your OS. Rule of thumb: RAM ≥ (model file − VRAM) + 8 GB.
  • Speed. Every token reads the offloaded part from RAM, so RAM bandwidth sets your speed. Fill both memory channels (two or four matching sticks), and faster RAM helps directly.

Example: gpt-oss 120B is about 65 GB. On a 24 GB card, about 41 GB has to live in RAM, plus your OS, so 64 GB of RAM is the realistic minimum. Because it's a mixture-of-experts model, this setup is usable; a dense model of the same size would crawl. See CPU offloading explained.

No GPU at all

On a CPU-only machine, RAM is your VRAM. Use the same sizing as how much VRAM you need, plus room for the OS:

System RAMWhat runs
8 GBQwen3 4B, tightly
16 GBQwen3 8B
32 GBQwen3 14B, or Qwen3 30B-A3B, which is quick on a CPU because only 3B parameters are active
64 GB+Bigger models, slowly

Expect a few tokens per second on dense models. MoE models are the best fit for CPU-only machines. See running AI on a laptop without a GPU.

Macs: unified memory

On Apple silicon, there's one pool of memory shared by the CPU and GPU, and macOS lets the GPU use about two thirds of it on machines up to 36 GB, and about three quarters above that. So RAM is the model budget:

Mac memoryRoughly usable for models
16 GB~11 GB
32 GB~21 GB
64 GB~48 GB
128 GB~96 GB

With a Mac, buy as much memory as you can afford. You can't add it later. See Macs for local LLMs.

Other reasons to add RAM

  • Keeping several models loaded. Ollama can keep models in memory between requests. Swapping between models is quicker if the file is still cached in RAM.
  • Docker and Open WebUI. A few GB for the containers. See Open WebUI setup.
  • Documents and embeddings. Document search keeps an index in RAM. Small for personal use.

Quick answer by machine

  • Gaming PC, 8 to 16 GB card: 16 GB is fine, 32 GB if you multitask.
  • One 24 GB card: 32 GB.
  • Two cards, or plans to offload big MoE models: 64 GB or more.
  • Mac: as much unified memory as the budget allows.

Here's what a 24 GB card runs with everything in VRAM, so RAM size doesn't touch speed:

RTX 3090, 24 GB · estimated with our calculator · full page

  • Qwen3 4BQuick everyday chat and summaries
    ~210 tok/s
    Runs greatqwen3:4b
  • Qwen3 8BA solid all-rounder for chat and writing
    ~99 tok/s
    Runs greatqwen3:8b
  • Gemma 3 12BReads images as well as text
    ~64 tok/s
    Runs greatgemma3:12b
  • Qwen3 14BNoticeably smarter at reasoning and code
    ~55 tok/s
    Runs greatqwen3:14b
  • gpt-oss 20BOpenAI's open model. Fast, strong reasoning
    ~160 tok/s
    Runs greatgpt-oss:20b
  • Gemma 3 27BGoogle's best open model for its size
    ~30 tok/s
    Runs greatgemma3:27b
  • Qwen3 30B-A3B30B smarts at small-model speed
    ~160 tok/s
    Runs greatqwen3:30b
  • Qwen3 32BStrong coding and long answers
    ~26 tok/s
    Usableqwen3:32b
  • Llama 3.3 70BClose to the big cloud models
    needs 45 GB
    Too bigllama3.3:70b
  • gpt-oss 120BOpenAI's largest open model
    needs 67 GB
    Too biggpt-oss:120b
  • Qwen3 235B-A22BAlibaba's flagship open model, for multi-GPU rigs
    needs 144 GB
    Too bigqwen3:235b
  • DeepSeek R1 671BThe full DeepSeek R1, for the biggest rigs
    needs 406 GB
    Too bigdeepseek-r1:671b