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”

ModelQ4 needsQ8 needsSmallest GPU (Q4)Smallest Mac (Q4)PC RAM, CPU only (Q4)
Llama 3.2 1B
Meta · 1.2B
1.7 GB2.2 GB8 GB8 GB8 GB
DeepSeek-R1 distill 1.5B (Qwen)
DeepSeek · 1.8B
2.0 GB2.9 GB8 GB8 GB16 GB
Llama 3.2 3B
Meta · 3.2B
3.0 GB4.5 GB8 GB8 GB16 GB
Phi-4-mini 3.8B
Microsoft · 3.8B
3.5 GB5.3 GB8 GB8 GB16 GB
Qwen3 4B
Alibaba · 4B
3.7 GB5.6 GB8 GB8 GB16 GB
Gemma 3 4B
Google · 4.3B
4.5 GB6.3 GB8 GB8 GB16 GB
Mistral 7B v0.3
Mistral AI · 7.2B
5.6 GB9.3 GB8 GB16 GB16 GB
Qwen2.5-Coder 7B
Alibaba · 7.6B
6.0 GB9.7 GB8 GB16 GB16 GB
Llama 3.1 8B
Meta · 8B
6.2 GB10.2 GB8 GB16 GB16 GB
Qwen3 8B
Alibaba · 8.2B
6.5 GB10.6 GB8 GB16 GB16 GB
DeepSeek-R1-0528 distill 8B (Qwen3)
DeepSeek · 8.2B
6.5 GB10.6 GB8 GB16 GB16 GB
Gemma 4 E4B
Google
8.1 GB10.7 GB12 GB16 GB16 GB
Mistral NeMo 12B
Mistral AI · 12.2B
9.1 GB15.1 GB12 GB16 GB16 GB
Gemma 3 12B
Google · 12.2B
9.8 GB15.1 GB12 GB16 GB16 GB
DeepSeek-R1 distill 14B (Qwen)
DeepSeek · 14.8B
10.7 GB18.4 GB12 GB16 GB24 GB
Phi-4 14B
Microsoft · 14.7B
10.8 GB18.4 GB12 GB18 GB24 GB
Qwen3 14B
Alibaba · 14.8B
11.0 GB18.4 GB12 GB18 GB24 GB
gpt-oss 20B (mixture of experts)
OpenAI · 21B, 3.6B active
16.2 GB—20 GB32 GB24 GB
Mistral Small 3.2 24B
Mistral AI · 24B
17.3 GB29.4 GB20 GB32 GB24 GB
Gemma 3 27B
Google · 27.4B
19.5 GB33.8 GB24 GB32 GB32 GB
Qwen3 30B-A3B (mixture of experts)
Alibaba · 30.5B, 3.3B active
21.7 GB37.1 GB24 GB36 GB32 GB
Qwen3-Coder 30B-A3B (mixture of experts)
Alibaba · 30.5B, 3.3B active
21.7 GB36.0 GB24 GB36 GB32 GB
Qwen3 32B
Alibaba · 32.8B
22.8 GB39.3 GB24 GB36 GB32 GB
Qwen2.5-Coder 32B
Alibaba · 32.8B
22.8 GB39.3 GB24 GB36 GB32 GB
Gemma 4 31B
Google · 31B
22.8 GB38.2 GB24 GB36 GB32 GB
DeepSeek-R1 distill 32B (Qwen)
DeepSeek · 32.8B
22.8 GB39.3 GB24 GB36 GB32 GB
Llama 3.3 70B
Meta · 70.6B
48.1 GB83.3 GB> 32 GB96 GB64 GB
DeepSeek-R1 distill 70B (Llama)
DeepSeek · 70.6B
48.1 GB83.3 GB> 32 GB96 GB64 GB
gpt-oss 120B (mixture of experts)
OpenAI · 117B, 5.1B active
72.3 GB—> 32 GB128 GB96 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.

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