Can It Run?
HomeModels › Qwen2.5-Coder 14B

Qwen2.5-Coder 14B on a Mac

Alibaba · 14.8B parameters · Apache 2.0 · released 2024-11

Weights @ Q4_K_M
8.4 GiB
the usual download size
KV cache
192 KB
per token, FP16
Max context
128K
tokens
Smallest Mac
16 GB
M1
Short answerA M1 16GB is the smallest Apple Silicon machine that loads Qwen2.5-Coder 14B at Q4_K_M with an 8K context, at roughly 6 tokens/sec. MacBook Air (M1) is the cheapest way to get that configuration.

Every Mac, ranked

MacMemoryNeedsTok/sVerdict
M1 8GB8 GB11.2 GiB6No
M1 16GB16 GB11.2 GiB6Yes, but tight
M2 16GB16 GB11.2 GiB9Yes, but tight
M4 16GB16 GB11.2 GiB11Yes, but tight
M1 Pro 16GB16 GB11.2 GiB18Yes, but tight
M3 Pro 18GB18 GB11.2 GiB13Yes, comfortably
M2 24GB24 GB11.2 GiB9Yes, comfortably
M4 24GB24 GB11.2 GiB11Yes, comfortably
M4 Pro 24GB24 GB11.2 GiB24Yes, comfortably
M4 32GB32 GB11.2 GiB11Yes, comfortably
M1 Max 32GB32 GB11.2 GiB35Yes, comfortably
M2 Max 32GB32 GB11.2 GiB35Yes, comfortably
M3 Max 36GB36 GB11.2 GiB26Yes, comfortably
M4 Max 36GB36 GB11.2 GiB36Yes, comfortably
M4 Pro 48GB48 GB11.2 GiB24Yes, comfortably
M4 Max 48GB48 GB11.2 GiB48Yes, comfortably
M4 Pro 64GB64 GB11.2 GiB24Yes, comfortably
M1 Max 64GB64 GB11.2 GiB35Yes, comfortably
M4 Max 64GB64 GB11.2 GiB48Yes, comfortably
M2 Ultra 64GB64 GB11.2 GiB71Yes, comfortably
M2 Max 96GB96 GB11.2 GiB35Yes, comfortably
M3 Ultra 96GB96 GB11.2 GiB72Yes, comfortably
M3 Max 128GB128 GB11.2 GiB35Yes, comfortably
M4 Max 128GB128 GB11.2 GiB48Yes, comfortably
M2 Ultra 192GB192 GB11.2 GiB71Yes, comfortably
M3 Ultra 256GB256 GB11.2 GiB72Yes, comfortably
M3 Ultra 512GB512 GB11.2 GiB72Yes, comfortably

Download size by quantisation

Weight memory scales linearly with bits per parameter. Everything below assumes an 8K context on top.

QuantisationWeightsTotal @ 8KNotes
FP1627.6 GiB31.2 GiBFull precision. Reference quality, twice the memory of Q8.
Q8_014.6 GiB17.7 GiBIndistinguishable from FP16 in practice, at half the size.
Q6_K11.4 GiB14.2 GiBNear-lossless. A good stop when you have memory to spare.
Q5_K_M9.8 GiB12.6 GiBSlightly better than Q4_K_M, noticeably bigger.
Q4_K_M8.4 GiB11.2 GiBThe default. Best quality-per-gigabyte for most people.
Q3_K_M6.7 GiB9.4 GiBVisible quality loss. Use to squeeze one size class up.
Q2_K5.2 GiB7.7 GiBLast resort. Often worse than a smaller model at Q4.