Gemma 2 9B hardware requirements

9.24B parameters. Needs about 9 GB at Q4_K_M with 8K context. Model card.

Memory needed at each quantization

QuantQuality8K context32K context
FP16Full quality21.9 GB30.4 GB
Q8_0Near-lossless13.2 GB21.7 GB
Q6_KExcellent11 GB19.5 GB
Q5_K_MVery good10 GB18.4 GB
Q4_K_MGood, most popular9 GB17.5 GB
Q3_K_MNoticeably degraded7.9 GB16.4 GB
Q2_KHeavily degraded6.9 GB15.3 GB

Run it with Ollama: ollama run gemma2:9b (downloads Q4_K_M by default).

Run it in the cloud

Don't want to buy hardware? Run Gemma 2 9B on a rented GPU today.

Rent a cloud GPU by the hour. No upfront cost, cancel any time.

Every GPU and Mac checked

GPURuns?Best fit
NVIDIA RTX 3060 12GBYesQ6_K · ~11 GB · ~29 tok/s
NVIDIA RTX 3070Yes, with heavy quantizationQ3_K_M · ~7.9 GB · ~60 tok/s
NVIDIA RTX 3080 10GBYesQ5_K_M · ~10 GB · ~69 tok/s
NVIDIA RTX 3090YesFP16 · ~21.9 GB · ~30 tok/s
NVIDIA RTX 4060Yes, with heavy quantizationQ3_K_M · ~7.9 GB · ~36 tok/s
NVIDIA RTX 4060 Ti 16GBYesQ8_0 · ~13.2 GB · ~18 tok/s
NVIDIA RTX 5060 Ti 16GBYesQ8_0 · ~13.2 GB · ~27 tok/s
NVIDIA RTX 4070YesQ6_K · ~11 GB · ~40 tok/s
NVIDIA RTX 4070 Ti SuperYesQ8_0 · ~13.2 GB · ~41 tok/s
NVIDIA RTX 4080YesQ8_0 · ~13.2 GB · ~44 tok/s
NVIDIA RTX 4090YesFP16 · ~21.9 GB · ~33 tok/s
NVIDIA RTX 5070YesQ6_K · ~11 GB · ~53 tok/s
NVIDIA RTX 5070 TiYesQ8_0 · ~13.2 GB · ~55 tok/s
NVIDIA RTX 5080YesQ8_0 · ~13.2 GB · ~59 tok/s
NVIDIA RTX 5090YesFP16 · ~21.9 GB · ~58 tok/s
AMD Radeon RX 7800 XTYesQ8_0 · ~13.2 GB · ~38 tok/s
AMD Radeon RX 7900 XTXYesFP16 · ~21.9 GB · ~31 tok/s
Apple M4 (16GB)YesQ5_K_M · ~10 GB · ~11 tok/s
Apple M1 (16GB)YesQ5_K_M · ~10 GB · ~6 tok/s
Apple M2 Pro (32GB)YesQ8_0 · ~13.2 GB · ~12 tok/s
Apple M3 Max (64GB)YesFP16 · ~21.9 GB · ~13 tok/s
Apple M4 Pro (48GB)YesFP16 · ~21.9 GB · ~9 tok/s
Apple M4 Max (128GB)YesFP16 · ~21.9 GB · ~18 tok/s
Apple M2 Ultra (192GB)YesFP16 · ~21.9 GB · ~26 tok/s