Open source & local AI / Hardware / How much RAM and VRAM
How much RAM and VRAM do you need for local LLMs?
Rule of thumb from the model files in our list: a dense model needs about 0.63 GB per billion parameters at Q4 and about 1.08 GB at Q8, plus room for the conversation. The table shows the memory each model needs and the smallest graphics card, Mac or PC RAM that holds it.
What counts as “memory”
- Graphics card (VRAM): fastest. The whole model should fit, minus 0.7 GB for the desktop.
- Apple Silicon Mac (unified memory): the GPU can use about 67% of it by default (75% from 64 GB), so a 32 GB Mac has about 21 GB for models.
- System RAM (CPU only, or GPU overflow): works, but several times slower than VRAM. Keep 6 GB for the operating system.
| Model | Q4 needs | Q8 needs | Smallest GPU (Q4) | Smallest Mac (Q4) | PC RAM, CPU only (Q4) |
|---|---|---|---|---|---|
| Llama 3.2 1B Meta · 1.2B | 1.7 GB | 2.2 GB | 8 GB | 8 GB | 8 GB |
| DeepSeek-R1 distill 1.5B (Qwen) DeepSeek · 1.8B | 2.0 GB | 2.9 GB | 8 GB | 8 GB | 16 GB |
| Llama 3.2 3B Meta · 3.2B | 3.0 GB | 4.5 GB | 8 GB | 8 GB | 16 GB |
| Phi-4-mini 3.8B Microsoft · 3.8B | 3.5 GB | 5.3 GB | 8 GB | 8 GB | 16 GB |
| Qwen3 4B Alibaba · 4B | 3.7 GB | 5.6 GB | 8 GB | 8 GB | 16 GB |
| Gemma 3 4B Google · 4.3B | 4.5 GB | 6.3 GB | 8 GB | 8 GB | 16 GB |
| Mistral 7B v0.3 Mistral AI · 7.2B | 5.6 GB | 9.3 GB | 8 GB | 16 GB | 16 GB |
| Qwen2.5-Coder 7B Alibaba · 7.6B | 6.0 GB | 9.7 GB | 8 GB | 16 GB | 16 GB |
| Llama 3.1 8B Meta · 8B | 6.2 GB | 10.2 GB | 8 GB | 16 GB | 16 GB |
| Qwen3 8B Alibaba · 8.2B | 6.5 GB | 10.6 GB | 8 GB | 16 GB | 16 GB |
| DeepSeek-R1-0528 distill 8B (Qwen3) DeepSeek · 8.2B | 6.5 GB | 10.6 GB | 8 GB | 16 GB | 16 GB |
| Gemma 4 E4B | 8.1 GB | 10.7 GB | 12 GB | 16 GB | 16 GB |
| Mistral NeMo 12B Mistral AI · 12.2B | 9.1 GB | 15.1 GB | 12 GB | 16 GB | 16 GB |
| Gemma 3 12B Google · 12.2B | 9.8 GB | 15.1 GB | 12 GB | 16 GB | 16 GB |
| DeepSeek-R1 distill 14B (Qwen) DeepSeek · 14.8B | 10.7 GB | 18.4 GB | 12 GB | 16 GB | 24 GB |
| Phi-4 14B Microsoft · 14.7B | 10.8 GB | 18.4 GB | 12 GB | 18 GB | 24 GB |
| Qwen3 14B Alibaba · 14.8B | 11.0 GB | 18.4 GB | 12 GB | 18 GB | 24 GB |
| gpt-oss 20B (mixture of experts) OpenAI · 21B, 3.6B active | 16.2 GB | — | 20 GB | 32 GB | 24 GB |
| Mistral Small 3.2 24B Mistral AI · 24B | 17.3 GB | 29.4 GB | 20 GB | 32 GB | 24 GB |
| Gemma 3 27B Google · 27.4B | 19.5 GB | 33.8 GB | 24 GB | 32 GB | 32 GB |
| Qwen3 30B-A3B (mixture of experts) Alibaba · 30.5B, 3.3B active | 21.7 GB | 37.1 GB | 24 GB | 36 GB | 32 GB |
| Qwen3-Coder 30B-A3B (mixture of experts) Alibaba · 30.5B, 3.3B active | 21.7 GB | 36.0 GB | 24 GB | 36 GB | 32 GB |
| Qwen3 32B Alibaba · 32.8B | 22.8 GB | 39.3 GB | 24 GB | 36 GB | 32 GB |
| Qwen2.5-Coder 32B Alibaba · 32.8B | 22.8 GB | 39.3 GB | 24 GB | 36 GB | 32 GB |
| Gemma 4 31B Google · 31B | 22.8 GB | 38.2 GB | 24 GB | 36 GB | 32 GB |
| DeepSeek-R1 distill 32B (Qwen) DeepSeek · 32.8B | 22.8 GB | 39.3 GB | 24 GB | 36 GB | 32 GB |
| Llama 3.3 70B Meta · 70.6B | 48.1 GB | 83.3 GB | > 32 GB | 96 GB | 64 GB |
| DeepSeek-R1 distill 70B (Llama) DeepSeek · 70.6B | 48.1 GB | 83.3 GB | > 32 GB | 96 GB | 64 GB |
| gpt-oss 120B (mixture of experts) OpenAI · 117B, 5.1B active | 72.3 GB | — | > 32 GB | 128 GB | 96 GB |
“Smallest GPU” uses the VRAM sizes of current and recent consumer cards (8, 12, 16, 20, 24, 32 GB). “Smallest Mac” uses Apple Silicon memory options from M1 to M6. “—” means no option in our list, or Ollama does not publish that size. Mixture-of-experts models (marked “active”) need memory for all parameters but run at the speed of the active ones.
Upgrade options by memory size
Disclosure: Hardware links go to Amazon search results so you can see current prices. They are not affiliate links yet; if we join Amazon's affiliate program, purchases through them may earn us a commission at no extra cost to you. It never changes what we recommend. Details.
- 8 GB graphics card: up to Qwen3 8B, DeepSeek-R1-0528 distill 8B (Qwen3). NVIDIA GeForce RTX 5060 (8 GB)
- 12 GB graphics card: up to Qwen3 14B, DeepSeek-R1 distill 14B (Qwen). NVIDIA GeForce RTX 5070 (12 GB) · NVIDIA GeForce RTX 3060 (12 GB) (previous generation)
- 16 GB graphics card: up to Qwen3 14B, DeepSeek-R1 distill 14B (Qwen). NVIDIA GeForce RTX 5060 Ti 16 GB · AMD Radeon RX 9070 XT (16 GB) · NVIDIA GeForce RTX 5070 Ti (16 GB) · NVIDIA GeForce RTX 5080 (16 GB)
- 20 GB graphics card: up to Mistral Small 3.2 24B, gpt-oss 20B (mixture of experts). AMD Radeon RX 7900 XT (20 GB) (previous generation)
- 24 GB graphics card: up to Qwen3 32B, Qwen2.5-Coder 32B. NVIDIA GeForce RTX 3090 (24 GB) (previous generation) · AMD Radeon RX 7900 XTX (24 GB) (previous generation) · NVIDIA GeForce RTX 4090 (24 GB) (previous generation)
- 32 GB graphics card: up to Qwen3 32B, Qwen2.5-Coder 32B. NVIDIA GeForce RTX 5090 (32 GB)
- More DDR5 system RAM (desktop PCs; laptops often have soldered memory): 32 GB DDR5 desktop RAM kit (2×16 GB) · 64 GB DDR5 desktop RAM kit (2×32 GB) · 96 GB DDR5 desktop RAM kit (2×48 GB) · 128 GB DDR5 desktop RAM kit (2×64 GB)
- More DDR4 system RAM (desktop PCs; laptops often have soldered memory): 32 GB DDR4 desktop RAM kit (2×16 GB) · 64 GB DDR4 desktop RAM kit (2×32 GB) · 128 GB DDR4 desktop RAM kit (4×32 GB)
- Mac: see Mac mini for local AI for each memory tier.
We do not list prices: they change often, and a stale price is worse than none. Each product link opens current listings so you can compare today's prices.
Check your own hardware
Pick your graphics card, Mac or PC and see which models fit, plus the smallest upgrade for the next size up. Open the “Can I run it?” calculator →
How these numbers are worked out
Memory needed = the model's download size at that quantization (from the Ollama library) × 1.1 + 0.8 GB for the conversation cache and buffers. Graphics cards keep 0.7 GB of VRAM free; Macs let the GPU use about 67% of unified memory by default (75% from 64 GB). Speed ≈ 0.6 × memory bandwidth ÷ bytes read per token, so it is a rough tier, not a benchmark. GPU specs from NVIDIA and AMD; Mac configurations and bandwidth from Apple's Mac mini and Mac Studio spec pages. Long contexts need more memory. Same method as the calculator.
More hardware guides
- Best GPU for running local LLMs: Which VRAM tier runs which models, and how fast.
- Mac mini for local AI: which memory tier?: What each Mac mini configuration can run, and when a Mac Studio is worth it.
- Cheapest computer that runs 70B models: The least hardware that runs Llama 3.3 70B and other 70B models, from slowest to fastest.
- Can my computer run it? Check your own GPU, Mac or PC.
- Best open-source and local chat apps · all open-source and local AI tools