Gemma 2 27B VRAM requirements: which GPUs can run it locally?
27.2B params 8K max context
72 of 132 GPUs can run Gemma 2 27B, from 16 GB (Q4_K_M, e.g. RTX PRO 2000 Blackwell). Its trained context is only 8K, under the 16K we count as comfortable, so every GPU is listed as a tight fit.
MMLU 75.2
VRAM needed per quantization
| Quantization | Weights | Full 8K |
|---|---|---|
| Q4_K_M | 15.5 GB | 18.3 GB |
| Q8_0 | 26.9 GB | 29.8 GB |
Weights plus fp16 KV cache. Leave ~1 GB headroom for the inference engine.
Run it locally
Each command downloads the GGUF from Hugging Face, then Ollama starts a chat and llama.cpp starts an OpenAI-compatible server with a web UI on port 8080.
Ollama
ollama run hf.co/bartowski/gemma-2-27b-it-GGUF:Q4_K_M llama.cpp
llama-server -hf bartowski/gemma-2-27b-it-GGUF:Q4_K_M Ollama
ollama run hf.co/bartowski/gemma-2-27b-it-GGUF:Q8_0 llama.cpp
llama-server -hf bartowski/gemma-2-27b-it-GGUF:Q8_0 GPUs that can run Gemma 2 27B
Best quantization that fits on each GPU, with the context and speed it gets. For chips with several memory sizes, the smallest that works is shown.
NVIDIA
- RTX 4060 Ti 16GB 16 GB Q4_K_M 1K context · ~16 tok/s tight fit
- RTX 4070 Ti SUPER 16 GB Q4_K_M 1K context · ~38 tok/s tight fit
- RTX 4080 16 GB Q4_K_M 1K context · ~41 tok/s tight fit
- RTX 4080 SUPER 16 GB Q4_K_M 1K context · ~42 tok/s tight fit
- RTX 5060 Ti 16GB 16 GB Q4_K_M 1K context · ~25 tok/s tight fit
- RTX 5070 Ti 16 GB Q4_K_M 1K context · ~51 tok/s tight fit
- RTX 5080 16 GB Q4_K_M 1K context · ~54 tok/s tight fit
- RTX 2000 Ada 16 GB Q4_K_M 1K context · ~13 tok/s tight fit
- RTX A4000 16 GB Q4_K_M 1K context · ~25 tok/s tight fit
- RTX PRO 2000 Blackwell 16 GB Q4_K_M 1K context · ~16 tok/s tight fit
- Tesla T4 16 GB Q4_K_M 1K context · ~18 tok/s tight fit
- Tesla V100 16GB 16 GB Q4_K_M 1K context · ~51 tok/s tight fit
- RTX 4000 Ada 20 GB Q4_K_M 8K context · ~20 tok/s tight fit
- RTX 3090 24 GB Q4_K_M 8K context · ~53 tok/s tight fit
- RTX 3090 Ti 24 GB Q4_K_M 8K context · ~57 tok/s tight fit
- RTX 4090 24 GB Q4_K_M 8K context · ~57 tok/s tight fit
- RTX 4500 Ada 24 GB Q4_K_M 8K context · ~24 tok/s tight fit
- RTX A5000 24 GB Q4_K_M 8K context · ~44 tok/s tight fit
- RTX PRO 4000 Blackwell 24 GB Q4_K_M 8K context · ~38 tok/s tight fit
- RTX Spark 24 GB Q4_K_M 8K context · ~17 tok/s tight fit
- Tesla P40 24 GB Q4_K_M 8K context · ~20 tok/s tight fit
- RTX 5090 32 GB Q8_0 8K context · ~60 tok/s tight fit
- RTX 5000 Ada 32 GB Q8_0 8K context · ~19 tok/s tight fit
- RTX PRO 4500 Blackwell 32 GB Q8_0 8K context · ~30 tok/s tight fit
- Tesla V100 32GB 32 GB Q8_0 8K context · ~30 tok/s tight fit
- L40S 48 GB Q8_0 8K context · ~29 tok/s tight fit
- RTX 6000 Ada 48 GB Q8_0 8K context · ~32 tok/s tight fit
- RTX A6000 48 GB Q8_0 8K context · ~26 tok/s tight fit
- RTX PRO 5000 Blackwell 48 GB Q8_0 8K context · ~45 tok/s tight fit
- RTX PRO 5000 Blackwell 72GB 72 GB Q8_0 8K context · ~45 tok/s tight fit
- RTX PRO 5500 Blackwell 84 GB Q8_0 8K context · ~47 tok/s tight fit
- RTX PRO 6000 Blackwell 96 GB Q8_0 8K context · ~60 tok/s tight fit
- DGX Spark (GB 10) 128 GB Q8_0 8K context · ~9 tok/s tight fit
AMD
- AMD BC-250 16 GB Q4_K_M 1K context · ~25 tok/s tight fit
- Radeon RX 6800 16 GB Q4_K_M 1K context · ~29 tok/s tight fit
- Radeon RX 6800 XT 16 GB Q4_K_M 1K context · ~29 tok/s tight fit
- Radeon RX 6900 XT 16 GB Q4_K_M 1K context · ~29 tok/s tight fit
- Radeon RX 6950 XT 16 GB Q4_K_M 1K context · ~33 tok/s tight fit
- Radeon RX 7600 XT 16 GB Q4_K_M 1K context · ~16 tok/s tight fit
- Radeon RX 7800 XT 16 GB Q4_K_M 1K context · ~35 tok/s tight fit
- Radeon RX 7900 GRE 16 GB Q4_K_M 1K context · ~33 tok/s tight fit
- Radeon RX 9060 XT 16GB 16 GB Q4_K_M 1K context · ~18 tok/s tight fit
- Radeon RX 9070 16 GB Q4_K_M 1K context · ~36 tok/s tight fit
- Radeon RX 9070 XT 16 GB Q4_K_M 1K context · ~36 tok/s tight fit
- Radeon RX 7900 XT 20 GB Q4_K_M 8K context · ~45 tok/s tight fit
- Radeon RX 7900 XTX 24 GB Q4_K_M 8K context · ~54 tok/s tight fit
- Radeon AI PRO R9700 32 GB Q8_0 8K context · ~21 tok/s tight fit
- Ryzen AI Max (Strix Halo) 32 GB Q8_0 8K context · ~9 tok/s tight fit
- Ryzen AI Max 400 (Gorgon Halo) 64 GB Q8_0 8K context · ~9 tok/s tight fit
Intel
- Arc A770 16GB 16 GB Q4_K_M 1K context · ~32 tok/s tight fit
- Arc Pro B65 32 GB Q8_0 8K context · ~20 tok/s tight fit
- Arc Pro B70 32 GB Q8_0 8K context · ~20 tok/s tight fit
Apple
- M1 16 GB Q4_K_M 1K context · ~4 tok/s tight fit
- M1 Pro 16 GB Q4_K_M 1K context · ~11 tok/s tight fit
- M2 16 GB Q4_K_M 1K context · ~6 tok/s tight fit
- M2 Pro 16 GB Q4_K_M 1K context · ~11 tok/s tight fit
- M3 16 GB Q4_K_M 1K context · ~6 tok/s tight fit
- M4 16 GB Q4_K_M 1K context · ~7 tok/s tight fit
- M5 16 GB Q4_K_M 1K context · ~9 tok/s tight fit
- M6 16 GB Q4_K_M 1K context · ~9 tok/s tight fit
- M3 Pro 18 GB Q4_K_M 7K context · ~9 tok/s tight fit
- M4 Pro 24 GB Q4_K_M 8K context · ~15 tok/s tight fit
- M5 Pro 24 GB Q4_K_M 8K context · ~17 tok/s tight fit
- M1 Max 32 GB Q8_0 8K context · ~13 tok/s tight fit
- M2 Max 32 GB Q8_0 8K context · ~13 tok/s tight fit
- M3 Max 36 GB Q8_0 8K context · ~10 tok/s tight fit
- M4 Max 36 GB Q8_0 8K context · ~14 tok/s tight fit
- M5 Max 36 GB Q8_0 8K context · ~15 tok/s tight fit
- M1 Ultra 64 GB Q8_0 8K context · ~19 tok/s tight fit
- M2 Ultra 64 GB Q8_0 8K context · ~19 tok/s tight fit
- M3 Ultra 96 GB Q8_0 8K context · ~19 tok/s tight fit
- M5 Ultra 96 GB Q8_0 8K context · ~28 tok/s tight fit