Can It Run?
HomeGemma 2 27B › M3 Pro 18GB

Can an M3 Pro 18GB Mac run Gemma 2 27B?

M3 Pro · 18 GB unified memory · 150 GB/s · MacBook Pro 14" (M3 Pro), MacBook Pro 16" (M3 Pro)

No — not at Q4_K_M.

Gemma 2 27B needs about 20.0 GiB but an M3 Pro 18GB Mac has only ~15.0 GiB available for a model — you are 5.0 GiB short. macOS will swap to SSD and generation will crawl. There is a smaller quantisation that fits: see below.

Weights
15.5 GiB
27.2B params @ Q4_K_M
KV cache
2.9 GiB
8K context, FP16
Overhead
1.6 GiB
runtime + activations
Total needed
20.0 GiB
of ~15.0 GiB usable
Est. speed
7 tok/s
150 GB/s bandwidth
Max context
n/a
at Q4_K_M

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.

QuantisationWeightsTotalTok/sFits?
FP1650.7 GiB56.9 GiB2No
Q8_026.9 GiB31.9 GiB4No
Q6_K20.9 GiB25.6 GiB5No
Q5_K_M18.0 GiB22.6 GiB6No
Q4_K_M15.5 GiB20.0 GiB7No
Q3_K_M12.3 GiB16.6 GiB9No
Q2_K9.5 GiB13.6 GiB12Yes, 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.

ContextKV cacheTotalFP16 KVQ8 KV
2K0.7 GiB17.6 GiBNoNo
4K1.4 GiB18.4 GiBNoNo
8K2.9 GiB20.0 GiBNoNo

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.

ModelSizeTotalTok/s
DeepSeek-R1-Distill-Qwen-14B14.8B11.2 GiB13Yes, comfortably
Qwen2.5 14B14.8B11.2 GiB13Yes, comfortably
Qwen2.5-Coder 14B14.8B11.2 GiB13Yes, comfortably
Qwen3 14B14.8B10.9 GiB13Yes, comfortably
Phi-4 14B14.7B11.2 GiB13Yes, comfortably
Gemma 3 12B12.2B11.1 GiB16Yes, comfortably

Macs that run Gemma 2 27B comfortably

The smallest configuration that handles it is the M1 Max 32GB (MacBook Pro 14" (M1 Max)).

MacMemoryBandwidthTok/s
M1 Max 32GB32 GB400 GB/s19
M2 Max 32GB32 GB400 GB/s19
M4 32GB32 GB120 GB/s6
M3 Max 36GB36 GB300 GB/s14
M4 Max 36GB36 GB410 GB/s20
M4 Pro 48GB48 GB273 GB/s13
M4 Max 48GB48 GB546 GB/s26
M1 Max 64GB64 GB400 GB/s19
M2 Ultra 64GB64 GB800 GB/s38
M4 Pro 64GB64 GB273 GB/s13
M4 Max 64GB64 GB546 GB/s26
M2 Max 96GB96 GB400 GB/s19

Common questions

Can an M3 Pro 18GB Mac run Gemma 2 27B?
No. At Q4_K_M it needs about 20.0 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 2 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 2 27B need?
15.5 GiB for the weights at Q4_K_M, plus 2.9 GiB for an 8K-token KV cache and about 1.6 GiB of runtime overhead — 20.0 GiB in total.