Can MacBook Air M5 (16 GB) run Qwen 2.5 Coder 14B?

Only with tuning. At Q4_K_M Qwen 2.5 Coder 14B needs 12.5 GB, more than the 11.5 GB macOS gives the GPU by default on MacBook Air M5 (16 GB). It loads after raising the memory limit, but expect swapping and about 4.3–10.0 tok/s.

Asking through an AI agent? Point it at llms.txt or the JSON API.

Open in calculator
Over GPU memory limitQ4_K_M · 16K context
4.3–10.0 tok/s
12.5 GBof 11.5 GB usable memory
109% used
Weights8.4 GBKV cache3.0 GBOverhead1.1 GB
+1.0 GB over limit

Every quantization on Air M5 16GB

Q4_K_M (4-bit)
qwen2.5-coder:14b
8.4 GB
real file size
12.5 GBPartial offload8K
4.3–10.0 tok/s
Estimate
Q6_K (6-bit)
qwen2.5-coder:14b-base-q6_K
11.3 GB
real file size
15.6 GBToo large—
—
Q8_0 (8-bit)
qwen2.5-coder:14b-base-q8_0
14.6 GB
real file size
19.0 GBToo large—
—
FP16 / BF16 (16-bit)
qwen2.5-coder:14b-base-fp16
27.5 GB
real file size
32.5 GBToo large—
—

MacBook Air M5 (16 GB) has 11.5 GB usable for models out of 16 GB of unified memory. Max context is the longest window that still loads without spilling out of that memory. The label under each speed says whether it was measured, scaled from measurements on this hardware, or modelled.

Qwen 2.5 Coder 14B on Air M5 16GB by runtime

Command
Ollama
Q4_K_M
qwen2.5-coder:14b
8.4 GB
real file size
12.5 GBPartial offload4.3–10.0 tok/s
LM Studio
Q4_K_M
unsloth/Qwen2.5-Coder-14B-Instruct-GGUF
8.4 GB
real file size
12.5 GBPartial offload4.3–10.0 tok/s
llama.cpp
Q4_K_M
unsloth/Qwen2.5-Coder-14B-Instruct-GGUF
8.4 GB
real file size
12.5 GBPartial offload4.3–10.0 tok/s
MLX
4-bit
mlx-community/Qwen2.5-Coder-14B-Instruct-4bit
7.7 GB
real file size
11.8 GBPartial offload4.6–10.8 tok/s

Each runtime loads its own build, so sizes differ. Ollama, LM Studio and llama.cpp use GGUF files, MLX its own format. Numbers above this table are for Ollama.

Cost per 1M tokens at 1M tokens/day

Local on Air M5 16GB
—

Does not fit

Rented cloud GPU
$0.27

1x RTX 3090 (24 GB) on Vast.ai at $0.18/hr

OpenRouter API
—

Not listed on OpenRouter

Local cost is not shown because the model does not fit. Assumes 75% input and 25% output tokens, one request at a time. Rent on Vast.ai

Questions and answers

Can MacBook Air M5 (16 GB) run Qwen 2.5 Coder 14B?

Only with tuning. At Q4_K_M Qwen 2.5 Coder 14B needs 12.5 GB, more than the 11.5 GB macOS gives the GPU by default on MacBook Air M5 (16 GB). It loads after raising the memory limit, but expect swapping and about 4.3–10.0 tok/s.

How fast is Qwen 2.5 Coder 14B on MacBook Air M5 (16 GB)?

It does not run at a usable speed: Qwen 2.5 Coder 14B does not fit into the memory of MacBook Air M5 (16 GB).

How much context can Qwen 2.5 Coder 14B use on MacBook Air M5 (16 GB)?

None of the standard quantizations fit MacBook Air M5 (16 GB), so there is no usable context length.