Can It Run?
Home โ€บ Gemma 3 4B โ€บ M1 8GB

Can an M1 8GB Mac run Gemma 3 4B?

M1 ยท 8 GB unified memory ยท 68 GB/s ยท MacBook Air (M1), MacBook Pro 13" (M1)

Just barely โ€” and you will feel it.

Gemma 3 4B at Q4_K_M needs about 4.4 GiB against roughly 5.0 GiB usable โ€” that is 89% of your budget. It will load, but close your browser first, keep the context short, and expect memory pressure. Around 21 tokens/sec.

Weights
2.5 GiB
4.3B params @ Q4_K_M
KV cache
1.1 GiB
8K context, FP16
Overhead
0.9 GiB
runtime + activations
Total needed
4.4 GiB
of ~5.0 GiB usable
Est. speed
21 tok/s
68 GB/s bandwidth
Max context
8K 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?
FP168.0 GiB10.3 GiB6No
Q8_04.3 GiB6.3 GiB12No
Q6_K3.3 GiB5.3 GiB15No
Q5_K_M2.9 GiB4.9 GiB18Yes, but tight
Q4_K_M2.5 GiB4.4 GiB21Yes, but tight
Q3_K_M2.0 GiB3.9 GiB26Yes, comfortably
Q2_K1.5 GiB3.4 GiB34Yes, 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.3 GiB3.4 GiBYes, comfortablyYes, comfortably
4K0.5 GiB3.8 GiBYes, comfortablyYes, comfortably
8K1.1 GiB4.4 GiBYes, but tightYes, comfortably
16K2.1 GiB5.8 GiBNoYes, but tight
32K4.3 GiB8.5 GiBNoNo
128K17.0 GiB24.9 GiBNoNo

What to run instead on an M1 8GB Mac

These are the largest models that fit comfortably on this machine at Q4_K_M with an 8K context.

ModelSizeTotalTok/s
Llama 3.2 3B3.21B3.6 GiB28Yes, comfortably
Qwen2.5 3B3.09B2.9 GiB29Yes, comfortably
Gemma 2 2B2.61B3.0 GiB34Yes, comfortably
Qwen2.5 1.5B1.54B1.9 GiB58Yes, comfortably
Llama 3.2 1B1.24B1.8 GiB72Yes, comfortably

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:4b

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-4B-4bit --prompt "Hello"
You are close to the limitIf it stutters or gets killed, raise the Metal memory cap before loading: sudo sysctl iogpu.wired_limit_mb=6963. This resets on reboot. Quantising the KV cache (--kv-cache-type q8_0 in llama.cpp) buys back 0.5 GiB.

Macs that run Gemma 3 4B comfortably

The smallest configuration that handles it is the M1 16GB (MacBook Air (M1)).

MacMemoryBandwidthTok/s
M1 16GB16 GB68 GB/s21
M1 Pro 16GB16 GB200 GB/s61
M2 16GB16 GB100 GB/s30
M4 16GB16 GB120 GB/s36
M3 Pro 18GB18 GB150 GB/s46
M2 24GB24 GB100 GB/s30
M4 24GB24 GB120 GB/s36
M4 Pro 24GB24 GB273 GB/s83
M1 Max 32GB32 GB400 GB/s121
M2 Max 32GB32 GB400 GB/s121
M4 32GB32 GB120 GB/s36
M3 Max 36GB36 GB300 GB/s91

Common questions

Can an M1 8GB Mac run Gemma 3 4B?
Yes. At Q4_K_M it needs about 4.4 GiB of the roughly 5.0 GiB available, generating around 21 tokens per second.
How fast is Gemma 3 4B on an Mac?
Around 21 tokens per second. Token generation on Apple Silicon is limited by memory bandwidth, and this machine has 68 GB/s.
How much memory does Gemma 3 4B need?
2.5 GiB for the weights at Q4_K_M, plus 1.1 GiB for an 8K-token KV cache and about 0.9 GiB of runtime overhead โ€” 4.4 GiB in total.