Run Gemma 4 26B-A4B on M5 Max

Yes — Gemma 4 26B-A4B (26B) runs at 50 tok/s on M5 Max with 128 GB RAM using Q4_K_M quantization via MLX. First token latency is 0.5s. Google's 26B MoE model activating only 3.8B params — near-frontier quality at 24 GB.

Speed
50
tok/s
First Token
0.5
seconds
RAM Needed
128
GB minimum
Engine
MLX
recommended

Benchmark Details

LLMCheck measured Gemma 4 26B-A4B on M5 Max using the standard methodology: Q4_K_M quantization, 256-token input, 512-token output, 3 runs averaged on a freshly-booted system.

MetricValue
Tokens per second50 tok/s
Time to first token0.5s
QuantizationQ4_K_M
Minimum RAM128 GB
Recommended engineMLX
Parameters26B
Benchmark date2026-04

Q4_K_M 26B MLX M5 Max

Setup Guide: Run Gemma 4 26B-A4B on M5 Max

The recommended engine for Gemma 4 26B-A4B on M5 Max is MLX. Install with pip and pull the model:

pip install mlx-lm
mlx_lm.generate --model mlx-community/gemma-4-26b-a4b-q4_k_m --prompt "Hello!"

Alternatively, you can use Ollama for a simpler setup:

ollama run gemma4:26b-a4b

Performance on Other Apple Silicon Chips

ChipSpeedFirst TokenMin RAMEngine
M4 Max 40 tok/s 0.7s 48 GB MLX
M5 Pro 35 tok/s 0.8s 24 GB Ollama
M4 Pro 28 tok/s 1.0s 24 GB Ollama

System Requirements

To run Gemma 4 26B-A4B on M5 Max you need:

Compare More Models

See how Gemma 4 26B-A4B stacks up against other models on your specific Mac hardware.

Open Compare Tool Full Leaderboard