Can an M3 Pro 18GB Mac run Gemma 3 27B?
M3 Pro · 18 GB unified memory · 150 GB/s · MacBook Pro 14" (M3 Pro), MacBook Pro 16" (M3 Pro)
Gemma 3 27B needs about 21.1 GiB but an M3 Pro 18GB Mac has only ~15.0 GiB available for a model — you are 6.1 GiB short. macOS will swap to SSD and generation will crawl. There is a smaller quantisation that fits: see below.
Where the memory goes
Three things occupy memory when a model is loaded: the weights themselves, the KV cache that holds the conversation, and the runtime's own working buffers. Only the first is fixed — the KV cache grows with every token in your context.
| Quantisation | Weights | Total | Tok/s | Fits? |
|---|---|---|---|---|
| FP16 | 51.0 GiB | 58.3 GiB | 2 | No |
| Q8_0 | 27.1 GiB | 33.1 GiB | 4 | No |
| Q6_K | 21.1 GiB | 26.8 GiB | 5 | No |
| Q5_K_M | 18.2 GiB | 23.8 GiB | 6 | No |
| Q4_K_M | 15.6 GiB | 21.1 GiB | 7 | No |
| Q3_K_M | 12.4 GiB | 17.7 GiB | 9 | No |
| Q2_K | 9.6 GiB | 14.7 GiB | 12 | Yes, but tight |
The default. Best quality-per-gigabyte for most people.
How long a context fits
The KV cache is often what breaks a setup that looked fine at load time. Quantising it to 8-bit roughly halves its footprint with little measurable quality cost.
| Context | KV cache | Total | FP16 KV | Q8 KV |
|---|---|---|---|---|
| 2K | 1.0 GiB | 18.0 GiB | No | No |
| 4K | 1.9 GiB | 19.0 GiB | No | No |
| 8K | 3.9 GiB | 21.1 GiB | No | No |
| 16K | 7.8 GiB | 25.3 GiB | No | No |
| 32K | 15.5 GiB | 33.6 GiB | No | No |
| 128K | 62.0 GiB | 83.7 GiB | No | No |
What to run instead on an M3 Pro 18GB Mac
These are the largest models that fit comfortably on this machine at Q4_K_M with an 8K context.
| Model | Size | Total | Tok/s | |
|---|---|---|---|---|
| DeepSeek-R1-Distill-Qwen-14B | 14.8B | 11.2 GiB | 13 | Yes, comfortably |
| Qwen2.5 14B | 14.8B | 11.2 GiB | 13 | Yes, comfortably |
| Qwen2.5-Coder 14B | 14.8B | 11.2 GiB | 13 | Yes, comfortably |
| Qwen3 14B | 14.8B | 10.9 GiB | 13 | Yes, comfortably |
| Phi-4 14B | 14.7B | 11.2 GiB | 13 | Yes, comfortably |
| Gemma 3 12B | 12.2B | 11.1 GiB | 16 | Yes, comfortably |
Macs that run Gemma 3 27B comfortably
The smallest configuration that handles it is the M1 Max 32GB (MacBook Pro 14" (M1 Max)).
| Mac | Memory | Bandwidth | Tok/s |
|---|---|---|---|
| M1 Max 32GB | 32 GB | 400 GB/s | 19 |
| M2 Max 32GB | 32 GB | 400 GB/s | 19 |
| M4 32GB | 32 GB | 120 GB/s | 6 |
| M3 Max 36GB | 36 GB | 300 GB/s | 14 |
| M4 Max 36GB | 36 GB | 410 GB/s | 20 |
| M4 Pro 48GB | 48 GB | 273 GB/s | 13 |
| M4 Max 48GB | 48 GB | 546 GB/s | 26 |
| M1 Max 64GB | 64 GB | 400 GB/s | 19 |
| M2 Ultra 64GB | 64 GB | 800 GB/s | 38 |
| M4 Pro 64GB | 64 GB | 273 GB/s | 13 |
| M4 Max 64GB | 64 GB | 546 GB/s | 26 |
| M2 Max 96GB | 96 GB | 400 GB/s | 19 |
Common questions
- Can an M3 Pro 18GB Mac run Gemma 3 27B?
- No. At Q4_K_M it needs about 21.1 GiB, and an M3 Pro 18GB Mac has roughly 15.0 GiB available for a model after macOS takes its share.
- How fast is Gemma 3 27B on an Mac?
- Around 7 tokens per second. Token generation on Apple Silicon is limited by memory bandwidth, and this machine has 150 GB/s.
- How much memory does Gemma 3 27B need?
- 15.6 GiB for the weights at Q4_K_M, plus 3.9 GiB for an 8K-token KV cache and about 1.6 GiB of runtime overhead — 21.1 GiB in total.