Gemma 3 27B is the largest Gemma 3 model, released by Google in March 2025. It reads text and images, supports over 140 languages and has a 128K tokens token context window.
At Q4_K_M it needs about 18.3 GB with an 8K conversation, which makes a 24GB card the natural home for it. Only one in six layers keeps a full-length cache, so long documents cost less memory than on other 27B to 32B models.
gemma3:27b-it-qat with a short context, or offload a few layers to system RAM.mmproj file.ollama run gemma3:27bLicence: Gemma Terms of Use, which allow commercial use under Google's prohibited use policy.
Last reviewed · How we calculate
gemma3:27bThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M the longest conversation this device can hold is about 62K tokens.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | 32K | Quality |
|---|---|---|---|---|---|---|
| Q4_K_Mrecommended | 16.6 GB | 18.0 GB | 18.3 GB | 19.0 GB | 20.3 GB | Small loss, best default |
| Q5_K_M | 19.5 GB | 20.9 GB | 21.2 GB | 21.9 GB | 23.2 GB | Very close to Q8 |
| Q6_K | 22.5 GB | 23.8 GB | 24.2 GB | 24.8 GB | 26.2 GB | Hard to tell from Q8 |
| Q8_0 | 29.1 GB | 30.5 GB | 30.8 GB | 31.5 GB | 32.8 GB | Near full quality |
| F16 | 54.8 GB | 56.2 GB | 56.5 GB | 57.2 GB | 58.5 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Slow, uses RAM | Won't run | about 3.5 tok/s | Doesn't fit | |
| RTX 3060 12GB | Slow, uses RAM | Slow, uses RAM | about 4.9 tok/s | Doesn't fit | |
| RTX 4070 12GB | Slow, uses RAM | Slow, uses RAM | about 5.2 tok/s | Doesn't fit | |
| RTX 4060 Ti 16GB | Slow, uses RAM | Slow, uses RAM | about 6.8 tok/s | Doesn't fit | |
| Radeon RX 7600 XT 16GB | Slow, uses RAM | Slow, uses RAM | about 6.8 tok/s | Doesn't fit | |
| RTX 5060 Ti 16GB | Slow, uses RAM | Slow, uses RAM | about 8.3 tok/s | Doesn't fit | |
| Intel Arc A770 16GB | Slow, uses RAM | Slow, uses RAM | about 9.1 tok/s | Doesn't fit | |
| Radeon RX 9070 XT 16GB | Slow, uses RAM | Slow, uses RAM | about 9.5 tok/s | Doesn't fit | |
| RTX 4070 Ti Super 16GB | Slow, uses RAM | Slow, uses RAM | about 9.6 tok/s | Doesn't fit | |
| RTX 4080 Super 16GB | Slow, uses RAM | Slow, uses RAM | about 9.9 tok/s | Doesn't fit | |
| RTX 5080 16GB | Slow, uses RAM | Slow, uses RAM | about 11 tok/s | Doesn't fit | |
| RTX 3090 24GB | Runs well | Slow, uses RAM | about 37 tok/s | 62K | |
| Radeon RX 7900 XTX 24GB | Runs well | Slow, uses RAM | about 38 tok/s | 62K | |
| RTX 4090 24GB | Runs well | Slow, uses RAM | about 39 tok/s | 62K | |
| RTX 5090 32GB | Runs well | Slow, uses RAM | about 70 tok/s | 128K, full | |
| Mac mini M4 16GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 24GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 48GB | Runs well | Runs well | about 11 tok/s | 128K, full | |
| Mac M4 Max 64GB | Runs well | Runs well | about 21 tok/s | 128K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 21 tok/s | 128K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run gemma3:27b
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkInstall Ollama 0.6 or newer and run ollama run gemma3:27b (about 17 GB). For the quantization-aware build, run ollama run gemma3:27b-it-qat.
Only with compromises: the QAT 4-bit build, a short context, or some layers in system RAM. A 24GB card such as an RTX 3090 or 4090 runs it fully at Q4_K_M.
Yes. It answers questions about images and documents. Ollama handles this directly; llama.cpp needs the mmproj vision file next to the model.
Gemma 3 27B reads images and handles 128K tokens; Mistral Small 24B is text only with a 32K window but is a little smaller and faster. Both fit a 24GB card at Q4.
Yes. The Gemma Terms of Use allow commercial use and fine-tuning under Google's prohibited use policy.
About 18.3 GB at Q4_K_M with an 8K conversation, 21.2 GB at Q5_K_M, 30.8 GB at Q8_0 and 56.5 GB at full F16 precision. Longer conversations add about 1.1 GB for every 8,000 tokens.
Only partly. It doesn't fit in 8 GB, so part of it moves to system RAM and speed drops to roughly 3.5 tokens a second.
Only partly. It doesn't fit in 12 GB, so part of it moves to system RAM and speed drops to roughly 4.9 tokens a second.
Only partly. It doesn't fit in 16 GB, so part of it moves to system RAM and speed drops to roughly 6.8 tokens a second.
Yes. A Mac with 48 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.