Gemma 2 27B hardware requirements

27.2B parameters. Needs about 20.2 GB at Q4_K_M with 8K context. Model card.

Memory needed at each quantization

QuantQuality8K context32K context
FP16Full quality58.1 GB67.3 GB
Q8_0Near-lossless32.6 GB41.8 GB
Q6_KExcellent26 GB35.3 GB
Q5_K_MVery good23 GB32.3 GB
Q4_K_MGood, most popular20.2 GB29.4 GB
Q3_K_MNoticeably degraded17 GB26.2 GB
Q2_KHeavily degraded13.9 GB23.1 GB

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

Run it in the cloud

Don't want to buy hardware? Run Gemma 2 27B 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 12GBNoNeeds ~20.2 GB at Q4_K_M; 12 GB available
NVIDIA RTX 3070NoNeeds ~20.2 GB at Q4_K_M; 8 GB available
NVIDIA RTX 3080 10GBNoNeeds ~20.2 GB at Q4_K_M; 10 GB available
NVIDIA RTX 3090YesQ5_K_M · ~23 GB · ~29 tok/s
NVIDIA RTX 4060NoNeeds ~20.2 GB at Q4_K_M; 8 GB available
NVIDIA RTX 4060 Ti 16GBYes, with heavy quantizationQ2_K · ~13.9 GB · ~17 tok/s
NVIDIA RTX 5060 Ti 16GBYes, with heavy quantizationQ2_K · ~13.9 GB · ~26 tok/s
NVIDIA RTX 4070NoNeeds ~20.2 GB at Q4_K_M; 12 GB available
NVIDIA RTX 4070 Ti SuperYes, with heavy quantizationQ2_K · ~13.9 GB · ~40 tok/s
NVIDIA RTX 4080Yes, with heavy quantizationQ2_K · ~13.9 GB · ~42 tok/s
NVIDIA RTX 4090YesQ5_K_M · ~23 GB · ~31 tok/s
NVIDIA RTX 5070NoNeeds ~20.2 GB at Q4_K_M; 12 GB available
NVIDIA RTX 5070 TiYes, with heavy quantizationQ2_K · ~13.9 GB · ~53 tok/s
NVIDIA RTX 5080Yes, with heavy quantizationQ2_K · ~13.9 GB · ~56 tok/s
NVIDIA RTX 5090YesQ6_K · ~26 GB · ~48 tok/s
AMD Radeon RX 7800 XTYes, with heavy quantizationQ2_K · ~13.9 GB · ~37 tok/s
AMD Radeon RX 7900 XTXYesQ5_K_M · ~23 GB · ~30 tok/s
Apple M4 (16GB)NoNeeds ~20.2 GB at Q4_K_M; 10.7 GB available
Apple M1 (16GB)NoNeeds ~20.2 GB at Q4_K_M; 10.7 GB available
Apple M2 Pro (32GB)YesQ4_K_M · ~20.2 GB · ~7 tok/s
Apple M3 Max (64GB)YesQ8_0 · ~32.6 GB · ~8 tok/s
Apple M4 Pro (48GB)YesQ8_0 · ~32.6 GB · ~6 tok/s
Apple M4 Max (128GB)YesFP16 · ~58.1 GB · ~6 tok/s
Apple M2 Ultra (192GB)YesFP16 · ~58.1 GB · ~9 tok/s