Can It Run?
HomeModels › Qwen2.5 7B

Qwen2.5 7B on a Mac

Alibaba · 7.62B parameters · Apache 2.0 · released 2024-09

Weights @ Q4_K_M
4.3 GiB
the usual download size
KV cache
56 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 7B at Q4_K_M with an 8K context, at roughly 12 tokens/sec. MacBook Air (M1) is the cheapest way to get that configuration.

Every Mac, ranked

MacMemoryNeedsTok/sVerdict
M1 8GB8 GB5.8 GiB12No
M1 16GB16 GB5.8 GiB12Yes, comfortably
M2 16GB16 GB5.8 GiB17Yes, comfortably
M4 16GB16 GB5.8 GiB21Yes, comfortably
M1 Pro 16GB16 GB5.8 GiB34Yes, comfortably
M3 Pro 18GB18 GB5.8 GiB26Yes, comfortably
M2 24GB24 GB5.8 GiB17Yes, comfortably
M4 24GB24 GB5.8 GiB21Yes, comfortably
M4 Pro 24GB24 GB5.8 GiB47Yes, comfortably
M4 32GB32 GB5.8 GiB21Yes, comfortably
M1 Max 32GB32 GB5.8 GiB69Yes, comfortably
M2 Max 32GB32 GB5.8 GiB69Yes, comfortably
M3 Max 36GB36 GB5.8 GiB51Yes, comfortably
M4 Max 36GB36 GB5.8 GiB70Yes, comfortably
M4 Pro 48GB48 GB5.8 GiB47Yes, comfortably
M4 Max 48GB48 GB5.8 GiB94Yes, comfortably
M4 Pro 64GB64 GB5.8 GiB47Yes, comfortably
M1 Max 64GB64 GB5.8 GiB69Yes, comfortably
M4 Max 64GB64 GB5.8 GiB94Yes, comfortably
M2 Ultra 64GB64 GB5.8 GiB137Yes, comfortably
M2 Max 96GB96 GB5.8 GiB69Yes, comfortably
M3 Ultra 96GB96 GB5.8 GiB140Yes, comfortably
M3 Max 128GB128 GB5.8 GiB69Yes, comfortably
M4 Max 128GB128 GB5.8 GiB94Yes, comfortably
M2 Ultra 192GB192 GB5.8 GiB137Yes, comfortably
M3 Ultra 256GB256 GB5.8 GiB140Yes, comfortably
M3 Ultra 512GB512 GB5.8 GiB140Yes, comfortably

Download size by quantisation

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

QuantisationWeightsTotal @ 8KNotes
FP1614.2 GiB16.1 GiBFull precision. Reference quality, twice the memory of Q8.
Q8_07.5 GiB9.2 GiBIndistinguishable from FP16 in practice, at half the size.
Q6_K5.9 GiB7.4 GiBNear-lossless. A good stop when you have memory to spare.
Q5_K_M5.1 GiB6.5 GiBSlightly better than Q4_K_M, noticeably bigger.
Q4_K_M4.3 GiB5.8 GiBThe default. Best quality-per-gigabyte for most people.
Q3_K_M3.5 GiB4.9 GiBVisible quality loss. Use to squeeze one size class up.
Q2_K2.7 GiB4.0 GiBLast resort. Often worse than a smaller model at Q4.