Gemma 4 26B-A4B

25.8B total, 4B active · 256k context · apache-2.0 · released 2026-03-11

chatcodingagenticreasoningvision

In short

Gemma 4 26B-A4B is an open model from Google with 25.8B parameters (4B active per token). At UD-Q4_K_M, Gemma 4 26B-A4B needs about 17 GB of memory at 8k context and 18 GB at 64k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in Germany that runs Gemma 4 26B-A4B fully in memory at 64k context is the NVIDIA Tesla P40, 389 € at eBay, at about 27 tok/s (estimated).

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

Cheapest way to run it in Germany today

NVIDIA Tesla P40, used at eBay

Runs Gemma 4 26B-A4B at UD-Q5_K_M fully in memory at 64k context, about 27 tok/sest.

389 €

In stock, checked

What to run it on in Germany

Fully in memory at 64k 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 Tesla P40UD-Q5_K_Mfits27 tok/s389 €68.4
AMD Radeon RX 7900 XTQ4_K_Mfits63 tok/s999 €63.1
Intel Arc Pro B60UD-Q5_K_Mfits26 tok/s1.184 €22.0
Mac mini M4 32GBQ5_K_Mfits10 tok/s1.330 €7.7
AMD Radeon RX 7900 XTXUD-Q5_K_Mfits66 tok/s1.555 €42.2
Intel Arc Pro B70Q8_0fits29 tok/s1.749 €16.8
AMD Radeon AI PRO R9700Q8_0fits37 tok/s2.300 €16.1
Mac mini M4 Pro 48GBQ8_0fits19 tok/s2.549 €7.3
NVIDIA GeForce RTX 3090UD-Q5_K_Mfits72 tok/s2.790 €25.8
Mac mini M4 Pro 64GBQ8_0fits19 tok/s2.934 €6.3
NVIDIA RTX PRO 4000 BlackwellUD-Q5_K_Mfits52 tok/s3.339 €15.5
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits15 tok/s3.850 €3.8
NVIDIA GeForce RTX 3090 TiUD-Q5_K_Mfits78 tok/s4.284 €18.1
Mac Studio M4 Max 64GBQ8_0fits37 tok/s4.299 €8.7
NVIDIA GeForce RTX 4090UD-Q5_K_Mfits78 tok/s4.790 €16.2
NVIDIA RTX PRO 4500 BlackwellQ8_0fits58 tok/s4.878 €12.0
Mac Studio M4 Max 128GBQ8_0fits37 tok/s5.499 €6.8
Mac Studio M3 Ultra 96GBQ8_0fits56 tok/s5.999 €9.3
NVIDIA GeForce RTX 5090Q8_0fits117 tok/s6.888 €16.9
ASUS Ascent GX10 128GBQ8_0fits18 tok/s7.306 €2.4
Dell Pro Max with GB10 128GBQ8_0fits18 tok/s8.063 €2.2
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits88 tok/s8.866 €9.9
NVIDIA DGX Spark 128GBQ8_0fits18 tok/s9.091 €2.0
Mac Studio M3 Ultra 256GBQ8_0fits56 tok/s15.555 €3.6
Mac Studio M3 Ultra 512GBQ8_0fits56 tok/s17.995 €3.1
NVIDIA RTX PRO 6000 BlackwellQ8_0fits117 tok/s18.327 €6.4
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits15 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits15 tok/s––
NVIDIA RTX PRO 4000 Blackwell SFF EditionUD-Q5_K_Mfits33 tok/s––
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits15 tok/s––
NVIDIA RTX 6000 Ada GenerationQ8_0fits63 tok/s––
NVIDIA RTX A6000Q8_0fits50 tok/s––
Lenovo ThinkStation PGX GB10 128GBQ8_0fits18 tok/s––
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits88 tok/s––
AMD Radeon PRO W7900Q8_0fits50 tok/s––
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits15 tok/s––
Intel Arc B570MXFP4offload11 tok/s282 €38.7
NVIDIA GeForce RTX 3060 12GBMXFP4offload15 tok/s415 €35.2
NVIDIA GeForce RTX 5050MXFP4offload11 tok/s428 €25.2
NVIDIA GeForce RTX 5060MXFP4offload11 tok/s469 €23.9
Intel Arc B580MXFP4offload13 tok/s498 €26.5
NVIDIA GeForce RTX 3080 10GBMXFP4offload14 tok/s518 €26.8
NVIDIA GeForce RTX 5060 Ti 8GBMXFP4offload11 tok/s520 €21.5
NVIDIA GeForce RTX 4060MXFP4offload11 tok/s556 €18.9
NVIDIA GeForce RTX 4060 Ti 16GBMXFP4offload19 tok/s625 €30.9
Intel Arc Pro B50MXFP4offload13 tok/s648 €19.6
AMD Radeon RX 9060 XT 16GBMXFP4offload19 tok/s650 €28.6
NVIDIA GeForce RTX 4070 SuperMXFP4offload16 tok/s700 €22.7
Intel Arc A770 16GBMXFP4offload22 tok/s787 €27.8
NVIDIA GeForce RTX 5060 Ti 16GBMXFP4offload25 tok/s799 €31.2
AMD Radeon RX 9070MXFP4offload27 tok/s807 €32.8
AMD Radeon RX 7600 XTMXFP4offload17 tok/s833 €20.9
NVIDIA GeForce RTX 4070MXFP4offload16 tok/s843 €18.9
NVIDIA GeForce RTX 5070MXFP4offload17 tok/s877 €19.2
NVIDIA GeForce RTX 4060 Ti 8GBMXFP4offload11 tok/s878 €12.1
NVIDIA RTX PRO 2000 BlackwellMXFP4offload19 tok/s880 €21.9
AMD Radeon RX 9070 XTMXFP4offload27 tok/s903 €29.3
AMD Radeon RX 7800 XTMXFP4offload26 tok/s1.069 €24.6
NVIDIA GeForce RTX 5070 TiMXFP4offload34 tok/s1.389 €24.3
NVIDIA GeForce RTX 4070 Ti SuperMXFP4offload30 tok/s1.500 €20.1
NVIDIA GeForce RTX 5080MXFP4offload35 tok/s1.889 €18.3
NVIDIA GeForce RTX 4080 SuperMXFP4offload31 tok/s3.263 €9.6

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
UD-Q4_K_Mgguf15.8 GB16.9 GB17.5 GB18.3 GB19.9 GB
mlx-4bitmlx14.3 GB15.4 GB16.0 GB16.8 GB18.4 GB
MXFP4gguf15.4 GB16.5 GB17.1 GB17.9 GB19.6 GB
Q4_K_Mgguf15.9 GB17.0 GB17.6 GB18.4 GB20.0 GB
Q5_K_Mgguf18.0 GB19.1 GB19.7 GB20.5 GB22.1 GB
UD-Q5_K_Mgguf19.7 GB20.8 GB21.4 GB22.2 GB23.8 GB
mlx-6bitmlx20.2 GB21.3 GB21.9 GB22.7 GB24.3 GB
Q6_Kgguf21.3 GB22.4 GB23.0 GB23.8 GB25.4 GB
UD-Q6_Kgguf21.6 GB22.7 GB23.3 GB24.1 GB25.7 GB
Q8_0gguf25.0 GB26.1 GB26.7 GB27.5 GB29.2 GB
mlx-8bitmlx26.0 GB27.1 GB27.7 GB28.6 GB30.2 GB

Run it

Copy a command for the runtime you use.

  • UD-Q4_K_M
    • Ollamaollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_M
    • LM Studiolms get unsloth/gemma-4-26B-A4B-it-GGUF@ud-q4_k_m
    • llama.cppllama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/gemma-4-26B-A4B-it-4bit
    • MLXmlx_lm.server --model mlx-community/gemma-4-26B-A4B-it-4bit
  • MXFP4
    • Ollamaollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:MXFP4
    • LM Studiolms get unsloth/gemma-4-26B-A4B-it-GGUF@mxfp4
    • llama.cppllama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:MXFP4
  • Q4_K_M
    • Ollamaollama run hf.co/bartowski/google_gemma-4-26B-A4B-it-GGUF:Q4_K_M
    • LM Studiolms get bartowski/google_gemma-4-26B-A4B-it-GGUF@q4_k_m
    • llama.cppllama-server -hf bartowski/google_gemma-4-26B-A4B-it-GGUF:Q4_K_M
  • Q5_K_M
    • Ollamaollama run hf.co/bartowski/google_gemma-4-26B-A4B-it-GGUF:Q5_K_M
    • LM Studiolms get bartowski/google_gemma-4-26B-A4B-it-GGUF@q5_k_m
    • llama.cppllama-server -hf bartowski/google_gemma-4-26B-A4B-it-GGUF:Q5_K_M
  • UD-Q5_K_M
    • Ollamaollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q5_K_M
    • LM Studiolms get unsloth/gemma-4-26B-A4B-it-GGUF@ud-q5_k_m
    • llama.cppllama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q5_K_M
  • mlx-6bit
    • LM Studiolms get mlx-community/gemma-4-26b-a4b-it-6bit
    • MLXmlx_lm.server --model mlx-community/gemma-4-26b-a4b-it-6bit
  • Q6_K
    • Ollamaollama run hf.co/bartowski/google_gemma-4-26B-A4B-it-GGUF:Q6_K
    • LM Studiolms get bartowski/google_gemma-4-26B-A4B-it-GGUF@q6_k
    • llama.cppllama-server -hf bartowski/google_gemma-4-26B-A4B-it-GGUF:Q6_K
  • UD-Q6_K
    • Ollamaollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q6_K
    • LM Studiolms get unsloth/gemma-4-26B-A4B-it-GGUF@ud-q6_k
    • llama.cppllama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q6_K
  • Q8_0
    • Ollamaollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:Q8_0
    • LM Studiolms get unsloth/gemma-4-26B-A4B-it-GGUF@q8_0
    • llama.cppllama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:Q8_0
  • mlx-8bit
    • LM Studiolms get mlx-community/gemma-4-26B-A4B-it-8bit
    • MLXmlx_lm.server --model mlx-community/gemma-4-26B-A4B-it-8bit

Questions

How much VRAM does Gemma 4 26B-A4B need?
At UD-Q4_K_M, Gemma 4 26B-A4B needs about 17 GB of memory at 8k context and 18 GB at 64k, counting the weights, the KV cache and runtime buffers.
What is the best GPU for running Gemma 4 26B-A4B locally?
The cheapest hardware in Germany that runs Gemma 4 26B-A4B fully in memory at 64k context is the NVIDIA Tesla P40, 389 € at eBay, at about 27 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 117 tok/s.
What is the cheapest way to run Gemma 4 26B-A4B in Germany today?
The NVIDIA Tesla P40, 389 € used at eBay, in stock: it runs Gemma 4 26B-A4B at UD-Q5_K_M fully in memory at 64k context, at about 27 tok/s (estimated).
Can I run Gemma 4 26B-A4B 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 19 tok/s on the NVIDIA GeForce RTX 4060 Ti 16GB (estimated).
Can I run Gemma 4 26B-A4B on a 24 GB GPU?
Yes: at UD-Q5_K_M it fits fully in 24 GB at 64k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 78 tok/s (estimated).
How do I run Gemma 4 26B-A4B locally?
With Ollama: ollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_M (the UD-Q4_K_M build). LM Studio and llama.cpp commands are on this page.
What licence is Gemma 4 26B-A4B released under?
apache-2.0, which allows commercial use.

More hardware for local AI