If you've been shipping agents on top of a closed API and wincing every time the token meter spins, Gemma 4 is the release that should make you stop and rethink your stack.
Google dropped Gemma 4 on April 2, 2026, with the 12B variant following on June 3. The pitch is blunt: open-weight models built for reasoning and agentic workflows, under a real Apache 2.0 license, that you can run on hardware you already own. No 700-million-user clause. No "acceptable use" rider that lawyers have to bless. Just weights you can fine-tune, ship, and commercialize.
That last part is the actual headline. Let me explain why.
Who should care
Not everyone. If you're calling a frontier model twice a day for a side project, the math says keep using the API and move on. Gemma 4 matters if you're one of these people:
- You're building an agent that makes lots of tool calls, and inference cost is eating your margin.
- You have data that can't leave your network — health, legal, internal docs.
- You want on-device or edge inference with predictable latency and no network dependency.
- You got burned by a license change and want weights nobody can pull out from under you.
If that's you, this is the most interesting open release of the year so far.
The lineup, in plain numbers
Gemma 4 ships as a family, not a single model. Per Google's model card and developer blog:
- E2B (~2B effective) — phone-class. Runs in under 1.5GB with 2-bit/4-bit quantization.
- E4B (~4B effective) — edge devices, with native audio input.
- 26B MoE — a mixture-of-experts model that activates only 3.8B parameters per forward pass. Runs on a consumer GPU.
- 31B dense — the workstation flagship.
Context windows run 128K on the edge models and up to 256K on the larger ones. All of them natively process images and video; the E2B and E4B variants add audio input for speech. Trained on 140+ languages. There's native support for system instructions and structured JSON output, which — if you've fought a model that ignores your schema — you'll appreciate immediately.
The efficiency story is the genuinely impressive bit. That 26B MoE ranks #6 on Arena AI's open leaderboard while activating under 4B params, and Google claims it "outcompetes models 20x its size." The 31B dense lands #3 on the open-source board.
Why "built for agents" isn't marketing here
Plenty of models claim agentic chops. What Gemma 4 actually gives you is the boring infrastructure that makes agents not fall over in production:
- Native function calling — the model emits tool calls in a structured format instead of you regex-parsing prose.
- Constrained decoding via LiteRT-LM, so structured outputs stay valid every time. This is the part that keeps tool-calling scripts from blowing up at 2am.
- Native system role, so you can actually separate instructions from user input in a controllable way.
Google's demo agent queries Wikipedia, turns inputs into flashcards or visualizations, and chains multi-step workflows — "all without specialized fine-tuning." Whether that holds for your workflow is the real test, but the primitives are there.
The edge numbers are what made me sit up. On a Raspberry Pi 5 (CPU only), E2B does ~133 prefill / 7.6 decode tokens per second. On a Qualcomm Dragonwing NPU, that jumps to 3,700 prefill / 31 decode. You can put a tool-using agent on a $80 board. That's not a benchmark flex, that's a deployment category that didn't exist cheaply before.
How it stacks up against Llama, Qwen, and Mistral
Let's be honest about where Gemma 4 wins and where it doesn't.
On raw benchmarks it's competitive, not dominant. The 31B trades blows with Qwen 3.5 27B: Qwen edges it on MMLU Pro (86.1% vs 85.2%) and GPQA Diamond, while Gemma 4 takes math (AIME 2026: 89.2%) and coding (HumanEval ~87%, Codeforces ELO 2150). DeepSeek V4 sits at the top of the open agentic heap. Llama 4 Scout owns the absurd-long-context niche at 10M tokens but starts at 109B params, so it's server-only.
The real differentiators are licensing and sizing:
- License: Gemma 4 and Qwen are clean Apache 2.0. Llama 4 still carries Meta's community license with its MAU threshold. If you're a startup that might get big, that clause is a landmine. Apache 2.0 isn't.
- The small-and-edge end: Gemma 4 spans 2B to 31B. Llama 4 doesn't go small. If your target is a laptop, a phone, or a Pi, Gemma 4 and Qwen are the conversation; Llama isn't in it.
- Multilingual / very-long-context: Qwen still wins. It covers 200+ languages and native 262K across the board.
My read: Gemma 4 is the strongest default for on-device agentic work, especially if you want audio in. For multilingual or extreme context, look at Qwen first.
The catch nobody should skip
Here's the thing that matters more than any benchmark, and it comes from someone who watches this space closely. Nathan Lambert at Interconnects argues that Gemma 4's success comes down to tooling, not scores: "a 5-10% swing on benchmarks wouldn't matter at all." What kills open models is friction.
And Gemma has history here. Earlier Gemma releases were, in his words, "plagued by tooling issues and poorer performance when being finetuned." Qwen didn't win on benchmarks — it won because the ecosystem around it just worked. vLLM, llama.cpp, LoRA, the whole chain.
So the open question for Gemma 4 isn't "is it smart enough." It's "does fine-tuning actually behave, and do the export paths to vLLM, Ollama, and LiteRT not fight you." Early signs are good — it's on Ollama, LM Studio, and Hugging Face from day one — but if you're betting a product on it, fine-tune a small variant on your real data before you commit. Don't take the launch demo's word for it.
Getting your hands on it
The fastest path to a local agent loop is Ollama:
ollama run gemma4:12b
For production tool-calling, you'll want the structured-output path (constrained decoding via LiteRT-LM for edge, or vLLM's JSON mode on a GPU box). The unquantized bf16 31B fits on a single 80GB H100; quantized versions drop onto consumer cards.
The bottom line
Gemma 4 won't dethrone the closed frontier on a leaderboard, and it doesn't need to. The value is owning the whole stack: capable agents, native tool calling, a license with no strings, and weights that run from a Pi to an H100. For a lot of teams paying per-token to do high-volume agent work, that combination quietly changes the build-vs-buy math.
Try it on a real workload this week. If your agent's tool calls hold up and the fine-tune doesn't fight you, you may not need that API bill at all.
Some links may earn us a commission at no extra cost to you.
Waqas Ahmed Waseer
Waqas Ahmed Waseer is a developer and automation builder with 8+ years shipping production systems used by 100k+ people. He builds custom multi-tenant SaaS, AI automation (n8n, LLM workflows, WhatsApp bots) and hosting infrastructure (WHM/cPanel, CloudLinux) — and is the maker of WaSphere, FlowMaticX, and the WaseerHost hosting brand. 100+ projects delivered for SMBs, agencies and funded startups.



