What Models?

Pick the right model for your GPU — in seconds.

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

QuantizationWeightsFull 8K
Q4_K_M15.5 GB18.3 GB
Q8_026.9 GB29.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

AMD

Intel

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
Check your exact setup in the full tool →