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 19 GB at 32k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the US that runs Gemma 3 27B fully in memory at 32k context is the NVIDIA RTX PRO 4000 Blackwell, $339 at Amazon, at about 19 tok/s (estimated).

Updated . Speeds are estimates; how they are worked out.

Cheapest way to run it in the US today

NVIDIA RTX PRO 4000 Blackwell, new at Amazon

Runs Gemma 3 27B at Q5_K_M fully in memory at 32k context, about 19 tok/sest.

$339

In stock, checked

What to run it on in the US

Fully in memory at 32k context, priced at retailers today.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
NVIDIA RTX PRO 4000 BlackwellQ5_K_Mfits19 tok/s$33954.9
NVIDIA Tesla P40Q5_K_Mfits10 tok/s$44921.4
Intel Arc Pro B60Q5_K_Mfits10 tok/s$89911.3
Mac mini M4 32GBQ4_K_Mfits4 tok/s$1,1993.3
AMD Radeon RX 7900 XTXQ5_K_Mfits24 tok/s$1,40016.9
AMD Radeon AI PRO R9700Q8_0fits11 tok/s$1,7006.5
Intel Arc Pro B70Q8_0fits10 tok/s$1,8005.3
NVIDIA GeForce RTX 3090Q5_K_Mfits26 tok/s$1,97913.1
Mac mini M4 Pro 48GBQ8_0fits6 tok/s$2,0252.8
NVIDIA GeForce RTX 3090 TiQ5_K_Mfits28 tok/s$2,03313.7
NVIDIA GeForce RTX 4090Q5_K_Mfits28 tok/s$2,07313.5
Mac mini M4 Pro 64GBQ8_0fits6 tok/s$2,3992.3
NVIDIA RTX PRO 4000 Blackwell SFF EditionQ5_K_Mfits12 tok/s$2,9804.0
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits4 tok/s$3,5001.3
Mac Studio M4 Max 64GBQ8_0fits11 tok/s$3,5003.2
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits4 tok/s$3,8001.2
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits4 tok/s$3,9591.1
NVIDIA RTX PRO 4500 BlackwellQ8_0fits18 tok/s$4,0004.4
AMD Radeon PRO W7900Q8_0fits15 tok/s$4,0003.7
Mac Studio M3 Ultra 96GBQ8_0fits17 tok/s$4,7583.5
Mac Studio M4 Max 128GBQ8_0fits11 tok/s$5,4002.1
NVIDIA RTX A6000Q8_0fits15 tok/s$5,9892.5
ASUS Ascent GX10 128GBQ8_0fits5 tok/s$6,1000.9
NVIDIA GeForce RTX 5090Q8_0fits35 tok/s$6,4955.4
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits26 tok/s$6,9993.7
NVIDIA DGX Spark 128GBQ8_0fits5 tok/s$7,8000.7
NVIDIA RTX 6000 Ada GenerationQ8_0fits19 tok/s$8,4952.2
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits26 tok/s$8,4993.1
Mac Studio M3 Ultra 256GBQ8_0fits17 tok/s$9,5001.8
NVIDIA RTX PRO 6000 BlackwellQ8_0fits35 tok/s$16,0002.2
Mac Studio M3 Ultra 512GBQ8_0fits17 tok/s$30,0000.6
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits4 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits4 tok/s––
Lenovo ThinkStation PGX GB10 128GBQ8_0fits5 tok/s––
Dell Pro Max with GB10 128GBQ8_0fits5 tok/s––
Intel Arc B570Q4_K_Moffload4 tok/s$30413.2
NVIDIA GeForce RTX 5050Q4_K_Moffload4 tok/s$35910.3
NVIDIA GeForce RTX 3060 12GBQ4_K_Moffload5 tok/s$38812.4
NVIDIA GeForce RTX 4060Q4_K_Moffload4 tok/s$4009.0
Intel Arc B580Q4_K_Moffload5 tok/s$42511.3
NVIDIA GeForce RTX 5060Q4_K_Moffload4 tok/s$4358.7
NVIDIA GeForce RTX 3080 10GBQ4_K_Moffload5 tok/s$5009.2
NVIDIA GeForce RTX 5060 Ti 8GBQ4_K_Moffload4 tok/s$5117.4
NVIDIA GeForce RTX 4060 Ti 8GBQ4_K_Moffload4 tok/s$5366.7
NVIDIA GeForce RTX 4070Q4_K_Moffload5 tok/s$5709.1
Intel Arc Pro B50Q4_K_Moffload5 tok/s$6007.7
NVIDIA GeForce RTX 5060 Ti 16GBQ4_K_Moffload8 tok/s$61812.3
AMD Radeon RX 9060 XT 16GBQ4_K_Moffload6 tok/s$7208.2
Intel Arc A770 16GBQ4_K_Moffload7 tok/s$7459.8
AMD Radeon RX 7800 XTQ4_K_Moffload8 tok/s$75710.4
NVIDIA RTX PRO 2000 BlackwellQ4_K_Moffload6 tok/s$7957.7
NVIDIA GeForce RTX 4070 SuperQ4_K_Moffload5 tok/s$8006.5
AMD Radeon RX 9070 XTQ4_K_Moffload8 tok/s$8109.9
AMD Radeon RX 9070Q4_K_Moffload8 tok/s$8609.3
AMD Radeon RX 7900 XTQ4_K_Moffload22 tok/s$88024.4
NVIDIA GeForce RTX 5070Q4_K_Moffload6 tok/s$9006.1
NVIDIA GeForce RTX 4060 Ti 16GBQ4_K_Moffload6 tok/s$9186.6
AMD Radeon RX 7600 XTQ4_K_Moffload6 tok/s$9595.8
NVIDIA GeForce RTX 4070 Ti SuperQ4_K_Moffload9 tok/s$1,1407.7
NVIDIA GeForce RTX 5070 TiQ4_K_Moffload10 tok/s$1,3007.4
NVIDIA GeForce RTX 4080 SuperQ4_K_Moffload9 tok/s$1,4696.2
NVIDIA GeForce RTX 5080Q4_K_Moffload10 tok/s$1,9005.2

1 other card or machine we price cannot hold it at this context.

Memory needed

Weights, KV cache and runtime buffers at each context length (KV cache at fp16).

QuantFile@8k@32k@64k@128k
Q4_K_Mgguf15.4 GB17.2 GB19.2 GB21.9 GB27.3 GB
mlx-4bitmlx15.7 GB17.5 GB19.5 GB22.2 GB27.5 GB
Q5_K_Mgguf17.9 GB19.7 GB21.7 GB24.4 GB29.8 GB
Q6_Kgguf20.6 GB22.4 GB24.4 GB27.1 GB32.5 GB
Q8_0gguf26.7 GB28.5 GB30.5 GB33.2 GB38.6 GB
mlx-8bitmlx28.9 GB30.7 GB32.7 GB35.4 GB40.8 GB

Run it

Copy a command for the runtime you use.

  • Q4_K_M
    • Ollamaollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q4_K_M
    • LM Studiolms get unsloth/gemma-3-27b-it-GGUF@q4_k_m
    • llama.cppllama-server -hf unsloth/gemma-3-27b-it-GGUF:Q4_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/gemma-3-27b-it-4bit
    • MLXmlx_lm.server --model mlx-community/gemma-3-27b-it-4bit
  • Q5_K_M
    • Ollamaollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q5_K_M
    • LM Studiolms get unsloth/gemma-3-27b-it-GGUF@q5_k_m
    • llama.cppllama-server -hf unsloth/gemma-3-27b-it-GGUF:Q5_K_M
  • Q6_K
    • Ollamaollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q6_K
    • LM Studiolms get unsloth/gemma-3-27b-it-GGUF@q6_k
    • llama.cppllama-server -hf unsloth/gemma-3-27b-it-GGUF:Q6_K
  • Q8_0
    • Ollamaollama run hf.co/unsloth/gemma-3-27b-it-GGUF:Q8_0
    • LM Studiolms get unsloth/gemma-3-27b-it-GGUF@q8_0
    • llama.cppllama-server -hf unsloth/gemma-3-27b-it-GGUF:Q8_0
  • mlx-8bit
    • LM Studiolms get mlx-community/gemma-3-27b-it-8bit
    • MLXmlx_lm.server --model mlx-community/gemma-3-27b-it-8bit

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 19 GB at 32k, 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 US that runs Gemma 3 27B fully in memory at 32k context is the NVIDIA RTX PRO 4000 Blackwell, $339 at Amazon, at about 19 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 35 tok/s.
What is the cheapest way to run Gemma 3 27B in the US today?
The NVIDIA RTX PRO 4000 Blackwell, $339 new at Amazon, in stock: it runs Gemma 3 27B at Q5_K_M fully in memory at 32k context, at about 19 tok/s (estimated).
Can I run Gemma 3 27B on a 16 GB GPU?
Only partly: at 32k 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 Pro B50 (estimated).
Can I run Gemma 3 27B on a 24 GB GPU?
Yes: at Q5_K_M it fits fully in 24 GB at 32k 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.

More hardware for local AI