Can It Run?
Home โ€บ gpt-oss-20b โ€บ M3 Pro 18GB

Can an M3 Pro 18GB Mac run gpt-oss-20b?

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

Just barely โ€” and you will feel it.

gpt-oss-20b at Q4_K_M needs about 13.7 GiB against roughly 15.0 GiB usable โ€” that is 91% of your budget. It will load, but close your browser first, keep the context short, and expect memory pressure. Around 34 tokens/sec.

Weights
11.9 GiB
20.9B params @ Q4_K_M
KV cache
0.4 GiB
8K context, FP16
Overhead
1.4 GiB
runtime + activations
Total needed
13.7 GiB
of ~15.0 GiB usable
Est. speed
34 tok/s
150 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?
FP1638.9 GiB42.1 GiB10No
Q8_020.7 GiB22.9 GiB20No
Q6_K16.1 GiB18.0 GiB25No
Q5_K_M13.9 GiB15.7 GiB29No
Q4_K_M11.9 GiB13.7 GiB34Yes, but tight
Q3_K_M9.5 GiB11.1 GiB43Yes, comfortably
Q2_K7.3 GiB8.8 GiB56Yes, 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.1 GiB13.2 GiBYes, but tightYes, but tight
4K0.2 GiB13.4 GiBYes, but tightYes, but tight
8K0.4 GiB13.7 GiBYes, but tightYes, but tight
16K0.8 GiB14.4 GiBYes, but tightYes, but tight
32K1.5 GiB15.7 GiBNoNo
128K6.0 GiB23.8 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

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 gpt-oss:20b

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/gpt-oss-20b-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=15667. This resets on reboot. Quantising the KV cache (--kv-cache-type q8_0 in llama.cpp) buys back 0.2 GiB.

Macs that run gpt-oss-20b comfortably

The smallest configuration that handles it is the M2 24GB (MacBook Air 15" (M2)).

MacMemoryBandwidthTok/s
M2 24GB24 GB100 GB/s23
M4 24GB24 GB120 GB/s27
M4 Pro 24GB24 GB273 GB/s62
M1 Max 32GB32 GB400 GB/s91
M2 Max 32GB32 GB400 GB/s91
M4 32GB32 GB120 GB/s27
M3 Max 36GB36 GB300 GB/s68
M4 Max 36GB36 GB410 GB/s93
M4 Pro 48GB48 GB273 GB/s62
M4 Max 48GB48 GB546 GB/s124
M1 Max 64GB64 GB400 GB/s91
M2 Ultra 64GB64 GB800 GB/s181

Common questions

Can an M3 Pro 18GB Mac run gpt-oss-20b?
Yes. At Q4_K_M it needs about 13.7 GiB of the roughly 15.0 GiB available, generating around 34 tokens per second.
How fast is gpt-oss-20b on an Mac?
Around 34 tokens per second. Token generation on Apple Silicon is limited by memory bandwidth, and this machine has 150 GB/s. Because this is a mixture-of-experts model only 3.6B of its 20.9B parameters are read per token, which is why it is faster than its size suggests.
How much memory does gpt-oss-20b need?
11.9 GiB for the weights at Q4_K_M, plus 0.4 GiB for an 8K-token KV cache and about 1.4 GiB of runtime overhead โ€” 13.7 GiB in total.