Gemma 3 27B
27.4B parameters · 128k context · gemma · released 2025-03-01
chatvision
In short
Gemma 3 27B is an open model from Google with 27.4B parameters. At Q4_K_M, Gemma 3 27B needs about 17 GB of memory at 8k context and 22 GB at 64k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the UK that runs Gemma 3 27B fully in memory at 64k context is the NVIDIA GeForce RTX 3090, £1,330 at Amazon, at about 26 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the UK today
AMD Radeon RX 7900 XTX, used at eBay
Runs Gemma 3 27B at Q4_K_M fully in memory at 64k context, about 24 tok/sest.
£999
In stock, checked
What to run it on in the UK
Fully in memory at 64k context, priced at retailers today.
Cheapest
NVIDIA GeForce RTX 309026tok/sest.Q4_K_M
£1,330
Best value
NVIDIA GeForce RTX 309026tok/sest.Q4_K_M
£1,330
Fastest
NVIDIA GeForce RTX 509040tok/sest.Q6_K
£5,000
Mac
Mac Studio M3 Ultra 96GB15tok/sest.Q8_0
£4,949
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
2 other cards and machines we price cannot hold it at this context.
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| Q4_K_Mgguf | 15.4 GB | 17.2 GB | 19.2 GB | 21.9 GB | 27.3 GB |
| mlx-4bitmlx | 15.7 GB | 17.5 GB | 19.5 GB | 22.2 GB | 27.5 GB |
| Q5_K_Mgguf | 17.9 GB | 19.7 GB | 21.7 GB | 24.4 GB | 29.8 GB |
| Q6_Kgguf | 20.6 GB | 22.4 GB | 24.4 GB | 27.1 GB | 32.5 GB |
| Q8_0gguf | 26.7 GB | 28.5 GB | 30.5 GB | 33.2 GB | 38.6 GB |
| mlx-8bitmlx | 28.9 GB | 30.7 GB | 32.7 GB | 35.4 GB | 40.8 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q4_K_M - LM Studio
lms get unsloth/gemma-3-27b-it-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/gemma-3-27b-it-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/gemma-3-27b-it-4bit - MLX
mlx_lm.server --model mlx-community/gemma-3-27b-it-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q5_K_M - LM Studio
lms get unsloth/gemma-3-27b-it-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/gemma-3-27b-it-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q6_K - LM Studio
lms get unsloth/gemma-3-27b-it-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/gemma-3-27b-it-GGUF:Q6_K
- Ollama
- Q8_0
- Ollama
ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q8_0 - LM Studio
lms get unsloth/gemma-3-27b-it-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/gemma-3-27b-it-GGUF:Q8_0
- Ollama
- mlx-8bit
- LM Studio
lms get mlx-community/gemma-3-27b-it-8bit - MLX
mlx_lm.server --model mlx-community/gemma-3-27b-it-8bit
- LM Studio
Questions
- How much VRAM does Gemma 3 27B need?
- At Q4_K_M, Gemma 3 27B needs about 17 GB of memory at 8k context and 22 GB at 64k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running Gemma 3 27B locally?
- The cheapest hardware in the UK that runs Gemma 3 27B fully in memory at 64k context is the NVIDIA GeForce RTX 3090, £1,330 at Amazon, at about 26 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 40 tok/s.
- What is the cheapest way to run Gemma 3 27B in the UK today?
- The AMD Radeon RX 7900 XTX, £999 used at eBay, in stock: it runs Gemma 3 27B at Q4_K_M fully in memory at 64k context, at about 24 tok/s (estimated).
- Can I run Gemma 3 27B on a 16 GB GPU?
- Only partly: at 64k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 5 tok/s on the Intel Arc A770 16GB (estimated).
- Can I run Gemma 3 27B on a 24 GB GPU?
- Yes: at Q4_K_M it fits fully in 24 GB at 64k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 28 tok/s (estimated).
- How do I run Gemma 3 27B locally?
- With Ollama: ollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is Gemma 3 27B released under?
- gemma, which allows commercial use.