Google · 25B · UD-Q4_K_M · 15.8 GiB

Gemma 4 26B-A4B at UD-Q4_K_M needs about 17.5 GiB at 8K context, and the smallest listed machine that fits it is GeForce RTX 3090.

MoE Gemma 4. config top_k_experts is 8 of num_experts 128, moe_intermediate_size 704. 25 sliding layers and 5 full layers.

ollama run gemma4:26b-a4b

Weights: gemma-4-26B-A4B-it-UD-Q4_K_M.gguf. Architecture: config source. Hugging Face repo created 2026-03-11. License field: apache-2.0.

Quants with a measured file size

QuantFileSize
UD-Q4_K_M · recommendedgemma-4-26B-A4B-it-UD-Q4_K_M.gguf15.8 GiB
UD-Q5_K_Mgemma-4-26B-A4B-it-UD-Q5_K_M.gguf19.7 GiB
UD-Q6_Kgemma-4-26B-A4B-it-UD-Q6_K.gguf21.6 GiB
Q8_0gemma-4-26B-A4B-it-Q8_0.gguf25.0 GiB

Machines

Same quant and 8,192 tokens on every row.
MachineMemoryTotalVerdictSpeed
Apple M1, 8 GB8 GB unified17.5 GiBNo—
Apple M2, 8 GB8 GB unified17.5 GiBNo—
Apple M3, 8 GB8 GB unified17.5 GiBNo—
GeForce RTX 3060 Ti8 GB GDDR17.5 GiBOffload10–15 tok/s
GeForce RTX 30708 GB GDDR17.5 GiBOffload10–15 tok/s
GeForce RTX 40608 GB GDDR17.5 GiBOffload10–14 tok/s
GeForce RTX 4060 Ti 8GB8 GB GDDR17.5 GiBOffload10–14 tok/s
GeForce RTX 50608 GB GDDR17.5 GiBOffload19–28 tok/s
GeForce RTX 5060 Ti 8GB8 GB GDDR17.5 GiBOffload19–28 tok/s
Radeon RX 66008 GB GDDR617.5 GiBOffload9–14 tok/s
Radeon RX 76008 GB GDDR617.5 GiBOffload10–14 tok/s
GeForce RTX 3080 10GB10 GB GDDR17.5 GiBOffload13–19 tok/s
GeForce RTX 3060 12GB12 GB GDDR17.5 GiBOffload16–24 tok/s
GeForce RTX 407012 GB GDDR17.5 GiBOffload17–25 tok/s
GeForce RTX 4070 Super12 GB GDDR17.5 GiBOffload17–25 tok/s
GeForce RTX 4070 Ti12 GB GDDR17.5 GiBOffload17–25 tok/s
GeForce RTX 507012 GB GDDR17.5 GiBOffload33–47 tok/s
Intel Arc B58012 GB GDDR617.5 GiBOffload17–25 tok/s
Radeon RX 6700 XT12 GB GDDR617.5 GiBOffload17–24 tok/s
Radeon RX 7700 XT12 GB GDDR617.5 GiBOffload17–25 tok/s
Apple M1 Pro, 16 GB16 GB unified17.5 GiBNo—
Apple M1, 16 GB16 GB unified17.5 GiBNo—
Apple M2 Pro, 16 GB16 GB unified17.5 GiBNo—
Apple M2, 16 GB16 GB unified17.5 GiBNo—
Apple M3, 16 GB16 GB unified17.5 GiBNo—
Apple M4, 16 GB16 GB unified17.5 GiBNo—
GeForce RTX 4060 Ti 16GB16 GB GDDR17.5 GiBOffload43–62 tok/s
GeForce RTX 4070 Ti Super16 GB GDDR17.5 GiBOffload70–102 tok/s
GeForce RTX 408016 GB GDDR17.5 GiBOffload73–106 tok/s
GeForce RTX 4080 Super16 GB GDDR17.5 GiBOffload73–107 tok/s
GeForce RTX 5060 Ti 16GB16 GB GDDR17.5 GiBOffload72–104 tok/s
GeForce RTX 5070 Ti16 GB GDDR17.5 GiBOffload113–165 tok/s
GeForce RTX 508016 GB GDDR17.5 GiBOffload118–172 tok/s
Intel Arc A770 16GB16 GB GDDR617.5 GiBOffload61–89 tok/s
Legion Go16 GB LPDDR5X-750017.5 GiBNo—
Radeon RX 6800 XT16 GB GDDR617.5 GiBOffload61–89 tok/s
Radeon RX 7800 XT16 GB GDDR617.5 GiBOffload68–99 tok/s
Radeon RX 9060 XT 16GB16 GB GDDR617.5 GiBOffload55–80 tok/s
Radeon RX 9070 XT16 GB GDDR617.5 GiBOffload92–134 tok/s
ROG Ally16 GB LPDDR5-640017.5 GiBNo—
Steam Deck LCD16 GB LPDDR5-550017.5 GiBNo—
Steam Deck OLED16 GB LPDDR5-640017.5 GiBNo—
Apple M3 Pro, 18 GB18 GB unified17.5 GiBNo—
Radeon RX 7900 XT20 GB GDDR617.5 GiBTight167–284 tok/s
Apple M2, 24 GB24 GB unified17.5 GiBTight21–35 tok/s
Apple M3, 24 GB24 GB unified17.5 GiBTight21–35 tok/s
Apple M4 Pro, 24 GB24 GB unified17.5 GiBTight57–97 tok/s
Apple M4, 24 GB24 GB unified17.5 GiBTight25–43 tok/s
GeForce RTX 309024 GB GDDR17.5 GiBFits195–332 tok/s
GeForce RTX 409024 GB GDDR17.5 GiBFits210–357 tok/s
Radeon RX 7900 XTX24 GB GDDR617.5 GiBFits200–340 tok/s
ROG Ally X24 GB LPDDR5X-750017.5 GiBTight25–43 tok/s
Apple M1 Max, 32 GB32 GB unified17.5 GiBFits83–142 tok/s
Apple M1 Pro, 32 GB32 GB unified17.5 GiBFits42–71 tok/s
Apple M2 Max, 32 GB32 GB unified17.5 GiBFits83–142 tok/s
Apple M2 Pro, 32 GB32 GB unified17.5 GiBFits42–71 tok/s
Apple M4, 32 GB32 GB unified17.5 GiBFits25–43 tok/s
GeForce RTX 509032 GB GDDR17.5 GiBFits374–635 tok/s
Apple M3 Pro, 36 GB36 GB unified17.5 GiBFits31–53 tok/s
Apple M4 Max 14-core, 36 GB36 GB unified17.5 GiBFits86–145 tok/s
Apple M3 Max 16-core, 48 GB48 GB unified17.5 GiBFits83–142 tok/s
Apple M4 Max 16-core, 48 GB48 GB unified17.5 GiBFits114–193 tok/s
Apple M4 Pro, 48 GB48 GB unified17.5 GiBFits57–97 tok/s
Apple M1 Max, 64 GB64 GB unified17.5 GiBFits83–142 tok/s
Apple M2 Max, 64 GB64 GB unified17.5 GiBFits83–142 tok/s
Apple M3 Max 16-core, 64 GB64 GB unified17.5 GiBFits83–142 tok/s
Apple M4 Max 16-core, 64 GB64 GB unified17.5 GiBFits114–193 tok/s
Apple M4 Pro, 64 GB64 GB unified17.5 GiBFits57–97 tok/s
Apple M2 Max, 96 GB96 GB unified17.5 GiBFits83–142 tok/s
Apple M3 Max 16-core, 128 GB128 GB unified17.5 GiBFits83–142 tok/s
Apple M4 Max 16-core, 128 GB128 GB unified17.5 GiBFits114–193 tok/s

FAQ

Why UD-Q4_K_M?

UD-Q4_K_M is the quant this page recommends. The file is gemma-4-26B-A4B-it-UD-Q4_K_M.gguf at 15.8 GiB. Other single-file quants are in the table when a real size was available.

Where do the architecture numbers come from?

Official text_config: layer_types, sliding_window, head_dim, global_head_dim, num_key_value_heads, num_global_key_value_heads. Source: https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/config.json

Does this include a long context?

The fit uses 8,192 tokens, or less when that is all the fast memory can hold. The model file allows up to 262,144 tokens, and KV cache grows as you use more of that.

What is the Ollama command?

ollama run gemma4:26b-a4b. The library tag is Q4-class or the vendor quant. Compare it with the GGUF linked on this page before you treat the sizes as identical.

Does this include image input?

No. Weight memory is the cited language-model GGUF. A separate vision projector, when one exists, needs more memory.