Can MacBook Air M2 8 GB run Gemma 4 31B?
8 GB unified · 100 GB/s memory bandwidth · Gemma 4 31B has 31.3B parameters.
Short answer
No. It doesn't fit in memory.
Needs ≈16 GB but only ≈0.5 GB is available after the OS, other apps and Open WebUI.
Why it doesn’t fit
Even its smallest practical version (3-bit) needs about 16 GB for the model, its context memory and the runtime. After macOS (≈3.5 GB), a browser with a few tabs (≈3.0 GB) and Open WebUI (≈1.0 GB), MacBook Air M2 8 GB has about 0.5 GB left, so it’s 15 GB short.
Ways to make it work
Close everything else
Not enough on its own: with every other app closed it’s still about 12 GB short.
Pick a smaller model from the same family
No smaller Gemma 4 model in our catalog runs well here. See the other models below.
Get more memory
You’d want at least 23 GB of memory in total. The machines below are the cheapest that run it comfortably.
Check your exact setup
These pages assume typical settings. A shorter context or a lighter chat app can change the answer.
Check MacBook Air M2 8 GB
The same applies to every workload we rate (chat, coding questions, coding in a repository, agentic coding and long documents): they all need at least as much memory as chat.
Other models for MacBook Air M2 8 GB
The best-rated models for chat on this machine.
Nothing runs well next to other apps on this machine. With everything else closed, try MiniCPM5 2B, Llama 3.2 3B Instruct or Qwen3.5 4B; expect it to feel tight.
Everything MacBook Air M2 8 GB can runCheapest machines for Gemma 4 31B
Hardware rated comfortable or better for chat, lowest price first.
- Desktop PC · Intel Arc Pro B60 24GB · 32 GB RAM$1,500 · 9–16 tok/sComfortable
- Ryzen AI Max+ 395 mini PC / Framework Desktop · 64 GB$1,600 · 10–14 tok/sComfortable
- Desktop PC · Intel Arc Pro B60 24GB · 64 GB RAM$1,628 · 9–16 tok/sComfortable
- Desktop PC · GeForce RTX 3090 · 32 GB RAM$1,700 · 30–40 tok/sExcellent
- Desktop PC · Radeon RX 7900 XTX · 32 GB RAM$1,800 · 30–45 tok/sExcellent
- Desktop PC · GeForce RTX 3090 · 64 GB RAM$1,828 · 30–40 tok/sExcellent
Different tool, context size or workload?
These pages use typical settings. The full check models your exact setup.