Can I run it?

Can I run gemma 4 26B A4B it on Apple M5?

Tight fit

Tight fit fully in unified memory on your Apple M5 at UD-Q2_K_XL, 8K context, about 23–31 tok/s. Weights 9.82 GB plus 0.51 GB of KV cache — 10.7 GB of 11.0 GB usable.

Best quantUD-Q2_K_XL
Working context8K
Max that fits8K
Speed23–31 tok/s
Weights9.82 GB
KV cache0.51 GB
Total10.7 GB
Usable11.0 GB

gemma 4 26B A4B it details · Apple M5 page · How this estimate is made

Run commands

llama.cpp
llama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q2_K_XL -c 8192 -ngl 30
Ollama
ollama run gemma
LM Studio
lms get unsloth/gemma-4-26B-A4B-it-GGUF
# Then load quant UD-Q2_K_XL

Assumptions

Larger models that also fit

Updated 2026-10-17. Profile on this page is the device default.