Can It Run?
Home โ€บ Gemma 3 12B โ€บ M4 Pro 24GB

Can an M4 Pro 24GB Mac run Gemma 3 12B?

M4 Pro ยท 24 GB unified memory ยท 273 GB/s ยท Mac mini (M4 Pro), MacBook Pro 14" (M4 Pro)

Yes โ€” Gemma 3 12B runs on an M4 Pro 24GB Mac.

At Q4_K_M it needs about 11.1 GiB, leaving 9.3 GiB spare out of the ~20.4 GiB macOS will let you use. Expect roughly 29 tokens/sec โ€” comfortable for interactive chat.

Weights
7.0 GiB
12.2B params @ Q4_K_M
KV cache
3.0 GiB
8K context, FP16
Overhead
1.1 GiB
runtime + activations
Total needed
11.1 GiB
of ~20.4 GiB usable
Est. speed
29 tok/s
273 GB/s bandwidth
Max context
16K tokens
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?
FP1622.7 GiB27.7 GiB9No
Q8_012.1 GiB16.5 GiB17Yes, comfortably
Q6_K9.4 GiB13.6 GiB22Yes, comfortably
Q5_K_M8.1 GiB12.3 GiB25Yes, comfortably
Q4_K_M7.0 GiB11.1 GiB29Yes, comfortably
Q3_K_M5.5 GiB9.6 GiB37Yes, comfortably
Q2_K4.3 GiB8.3 GiB48Yes, comfortably

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.8 GiB8.6 GiBYes, comfortablyYes, comfortably
4K1.5 GiB9.5 GiBYes, comfortablyYes, comfortably
8K3.0 GiB11.1 GiBYes, comfortablyYes, comfortably
16K6.0 GiB14.4 GiBYes, comfortablyYes, comfortably
32K12.0 GiB21.0 GiBNoYes, comfortably
128K48.0 GiB60.6 GiBNoNo

How to run it

Ollama is the shortest path. It picks a quantisation automatically โ€” usually Q4_K_M, which is what the numbers above assume.

brew install ollama
ollama serve &
ollama run gemma3:12b

For MLX โ€” Apple's own array framework, typically a little faster than llama.cpp on Apple Silicon:

pip install mlx-lm
mlx_lm.generate --model mlx-community/Gemma-3-12B-4bit --prompt "Hello"

Macs that run Gemma 3 12B comfortably

The smallest configuration that handles it is the M3 Pro 18GB (MacBook Pro 14" (M3 Pro)).

MacMemoryBandwidthTok/s
M3 Pro 18GB18 GB150 GB/s16
M2 24GB24 GB100 GB/s11
M4 24GB24 GB120 GB/s13
M4 Pro 24GB24 GB273 GB/s29
M1 Max 32GB32 GB400 GB/s43
M2 Max 32GB32 GB400 GB/s43
M4 32GB32 GB120 GB/s13
M3 Max 36GB36 GB300 GB/s32
M4 Max 36GB36 GB410 GB/s44
M4 Pro 48GB48 GB273 GB/s29
M4 Max 48GB48 GB546 GB/s58
M1 Max 64GB64 GB400 GB/s43

Common questions

Can an M4 Pro 24GB Mac run Gemma 3 12B?
Yes. At Q4_K_M it needs about 11.1 GiB of the roughly 20.4 GiB available, generating around 29 tokens per second.
How fast is Gemma 3 12B on an Mac?
Around 29 tokens per second. Token generation on Apple Silicon is limited by memory bandwidth, and this machine has 273 GB/s.
How much memory does Gemma 3 12B need?
7.0 GiB for the weights at Q4_K_M, plus 3.0 GiB for an 8K-token KV cache and about 1.1 GiB of runtime overhead โ€” 11.1 GiB in total.