Can It Run?
HomeModels › Gemma 2 2B

Gemma 2 2B on a Mac

Google · 2.61B parameters · Gemma Terms · released 2024-07

Weights @ Q4_K_M
1.5 GiB
the usual download size
KV cache
84 KB
per token, FP16
Max context
8K
tokens
Smallest Mac
8 GB
M1
Short answerA M1 8GB is the smallest Apple Silicon machine that loads Gemma 2 2B at Q4_K_M with an 8K context, at roughly 34 tokens/sec. MacBook Air (M1) is the cheapest way to get that configuration.

Every Mac, ranked

MacMemoryNeedsTok/sVerdict
M1 8GB8 GB3.0 GiB34Yes, comfortably
M1 16GB16 GB3.0 GiB34Yes, comfortably
M2 16GB16 GB3.0 GiB50Yes, comfortably
M4 16GB16 GB3.0 GiB60Yes, comfortably
M1 Pro 16GB16 GB3.0 GiB100Yes, comfortably
M3 Pro 18GB18 GB3.0 GiB75Yes, comfortably
M2 24GB24 GB3.0 GiB50Yes, comfortably
M4 24GB24 GB3.0 GiB60Yes, comfortably
M4 Pro 24GB24 GB3.0 GiB137Yes, comfortably
M4 32GB32 GB3.0 GiB60Yes, comfortably
M1 Max 32GB32 GB3.0 GiB200Yes, comfortably
M2 Max 32GB32 GB3.0 GiB200Yes, comfortably
M3 Max 36GB36 GB3.0 GiB150Yes, comfortably
M4 Max 36GB36 GB3.0 GiB205Yes, comfortably
M4 Pro 48GB48 GB3.0 GiB137Yes, comfortably
M4 Max 48GB48 GB3.0 GiB273Yes, comfortably
M4 Pro 64GB64 GB3.0 GiB137Yes, comfortably
M1 Max 64GB64 GB3.0 GiB200Yes, comfortably
M4 Max 64GB64 GB3.0 GiB273Yes, comfortably
M2 Ultra 64GB64 GB3.0 GiB400Yes, comfortably
M2 Max 96GB96 GB3.0 GiB200Yes, comfortably
M3 Ultra 96GB96 GB3.0 GiB410Yes, comfortably
M3 Max 128GB128 GB3.0 GiB200Yes, comfortably
M4 Max 128GB128 GB3.0 GiB273Yes, comfortably
M2 Ultra 192GB192 GB3.0 GiB400Yes, comfortably
M3 Ultra 256GB256 GB3.0 GiB410Yes, comfortably
M3 Ultra 512GB512 GB3.0 GiB410Yes, comfortably

Download size by quantisation

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

QuantisationWeightsTotal @ 8KNotes
FP164.9 GiB6.6 GiBFull precision. Reference quality, twice the memory of Q8.
Q8_02.6 GiB4.2 GiBIndistinguishable from FP16 in practice, at half the size.
Q6_K2.0 GiB3.6 GiBNear-lossless. A good stop when you have memory to spare.
Q5_K_M1.7 GiB3.3 GiBSlightly better than Q4_K_M, noticeably bigger.
Q4_K_M1.5 GiB3.0 GiBThe default. Best quality-per-gigabyte for most people.
Q3_K_M1.2 GiB2.7 GiBVisible quality loss. Use to squeeze one size class up.
Q2_K0.9 GiB2.4 GiBLast resort. Often worse than a smaller model at Q4.