Gemma 4: Your Definitive Evaluation Playbook — What to Benchmark, What to Skip, and Where the Bugs Are
Why This Release Is Different
Gemma 4 isn't just another open model drop — it's the first time a top-3 Arena model ships under Apache 2.0. The 31B dense variant ties with Kimi K2.5 (744B) and GLM-5 (1T) while being 20-30× smaller. The 26B MoE activates just 3.8B parameters per forward pass (14.6% utilization), hitting ELO 1441 and decoding at 162 tok/s on a single RTX 4090. Edge models (E2B, E4B) bring native text/vision/audio to Raspberry Pis and phones. All under a license that requires zero legal review for commercial deployment.
Fifteen independent sources converged on this story today. None provided controlled benchmark results beyond Arena Elo. The signal is directionally strong; the specifics demand your own eval suite.
Architecture: What Actually Changed
Sebastian Raschka's reverse-engineering is the critical finding: Gemma 4 31B is architecturally near-identical to Gemma 3 27B. It retains the hybrid 5:1 local/global sliding-window attention, Grouped-Query Attention, and the same positional encoding family. If architecture barely moved but performance jumped dramatically, training data and recipe are doing the heavy lifting.
The MoE variant takes an unusual path: MoE blocks are added alongside normal MLP blocks (outputs summed), rather than replacing them as in DeepSeek/Qwen. Every token still passes through dense computation and routed expert computation. With 5/6 layers using sliding-window attention (constant memory), the 26B-A4B fits 256K context in manageable VRAM — TurboQuant cuts KV cache from 13.3GB to 4.9GB at 128K, albeit with decode-speed penalties.
The Competitive Landscape Is Forking
| Dimension | Gemma 4 (best) | Qwen3.5/3.6 | Winner |
|---|---|---|---|
| Frontier difficulty (no tools) | Lower | Higher | Qwen |
| Local inference efficiency | Excellent (MoE + SWA) | Good | Gemma 4 |
| License | Apache 2.0 | Shifting to API-only | Gemma 4 |
| Ecosystem day-0 support | vLLM, Ollama, Unsloth | Good | Gemma 4 |
The Alibaba counterpoint matters: Qwen3.6-Plus claims Opus 4.5 parity on SWE-bench with 1M-token context — but it's API-only, self-reported benchmarks, and signals Alibaba's shift toward monetization. If you have Qwen models in production, build swap-ready abstractions. Gemma 4 under Apache 2.0 is the obvious fallback.
Critical Caveats Before You Deploy
- Tokenizer bugs: 10-15 open issues in llama.cpp (PR #21343 pending). Unsloth quants produce garbage output. Use vLLM or native HuggingFace for any production evaluation.
- Missing benchmarks: No published MMLU, HumanEval, GSM8K, MATH, or BigBench scores. Arena Elo measures crowd preference, not your classification task.
- 300 tok/s claim: The M2 Ultra figure may involve prompt recitation or speculative decoding, not pure autoregressive generation. Wait for independent verification.
- No technical report: All architecture analysis comes from reverse-engineering weights.
Run your own evals. Arena rankings are necessary for shortlisting, not sufficient for production decisions.
What to do
Benchmark Gemma 4 26B MoE and 31B dense against your current production model on your domain-specific eval suite this week — prioritize structured output, function calling, and classification tasks
Test Gemma 4 E2B/E4B on target edge hardware with INT4 quantization for any on-device use cases — measure actual tok/s, accuracy degradation, and memory footprint
Audit model dependency chain for Qwen/Chinese open-source models and create tested fallback plans using Gemma 4 or other Apache 2.0 alternatives
Do NOT deploy Gemma 4 via llama.cpp with Unsloth quants until PR #21343 merges — production evals must use vLLM or native HF inference