Can It Run?
Home โ€บ Qwen2.5-Coder 14B โ€บ M1 16GB

Can an M1 16GB Mac run Qwen2.5-Coder 14B?

M1 ยท 16 GB unified memory ยท 68 GB/s ยท MacBook Air (M1), Mac mini (M1)

Just barely โ€” and you will feel it.

Qwen2.5-Coder 14B at Q4_K_M needs about 11.2 GiB against roughly 13.0 GiB usable โ€” that is 86% of your budget. It will load, but close your browser first, keep the context short, and expect memory pressure. Around 6 tokens/sec.

Weights
8.4 GiB
14.8B params @ Q4_K_M
KV cache
1.5 GiB
8K context, FP16
Overhead
1.2 GiB
runtime + activations
Total needed
11.2 GiB
of ~13.0 GiB usable
Est. speed
6 tok/s
68 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?
FP1627.6 GiB31.2 GiB2No
Q8_014.6 GiB17.7 GiB3No
Q6_K11.4 GiB14.2 GiB4No
Q5_K_M9.8 GiB12.6 GiB5Yes, but tight
Q4_K_M8.4 GiB11.2 GiB6Yes, but tight
Q3_K_M6.7 GiB9.4 GiB8Yes, comfortably
Q2_K5.2 GiB7.7 GiB10Yes, 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.4 GiB9.8 GiBYes, comfortablyYes, comfortably
4K0.8 GiB10.3 GiBYes, comfortablyYes, comfortably
8K1.5 GiB11.2 GiBYes, but tightYes, comfortably
16K3.0 GiB13.0 GiBYes, but tightYes, but tight
32K6.0 GiB16.6 GiBNoNo
128K24.0 GiB38.2 GiBNoNo

What to run instead on an M1 16GB Mac

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

ModelSizeTotalTok/s
Qwen3 14B14.8B10.9 GiB6Yes, comfortably
Gemma 2 9B9.24B9.0 GiB10Yes, comfortably
Qwen3 8B8.2B6.8 GiB11Yes, comfortably
Llama 3.1 8B8.03B6.6 GiB11Yes, comfortably
DeepSeek-R1-Distill-Qwen-7B7.62B5.8 GiB12Yes, comfortably
Qwen2.5 7B7.62B5.8 GiB12Yes, 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 qwen2.5-coder:14b

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/Qwen2-5-Coder-14B-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=13926. This resets on reboot. Quantising the KV cache (--kv-cache-type q8_0 in llama.cpp) buys back 0.7 GiB.

Macs that run Qwen2.5-Coder 14B comfortably

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

MacMemoryBandwidthTok/s
M3 Pro 18GB18 GB150 GB/s13
M2 24GB24 GB100 GB/s9
M4 24GB24 GB120 GB/s11
M4 Pro 24GB24 GB273 GB/s24
M1 Max 32GB32 GB400 GB/s35
M2 Max 32GB32 GB400 GB/s35
M4 32GB32 GB120 GB/s11
M3 Max 36GB36 GB300 GB/s26
M4 Max 36GB36 GB410 GB/s36
M4 Pro 48GB48 GB273 GB/s24
M4 Max 48GB48 GB546 GB/s48
M1 Max 64GB64 GB400 GB/s35

Common questions

Can an M1 16GB Mac run Qwen2.5-Coder 14B?
Yes. At Q4_K_M it needs about 11.2 GiB of the roughly 13.0 GiB available, generating around 6 tokens per second.
How fast is Qwen2.5-Coder 14B on an Mac?
Around 6 tokens per second. Token generation on Apple Silicon is limited by memory bandwidth, and this machine has 68 GB/s.
How much memory does Qwen2.5-Coder 14B need?
8.4 GiB for the weights at Q4_K_M, plus 1.5 GiB for an 8K-token KV cache and about 1.2 GiB of runtime overhead โ€” 11.2 GiB in total.