惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Cisco Blogs
爱范儿
爱范儿
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
Jina AI
Jina AI
Project Zero
Project Zero
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
Simon Willison's Weblog
Simon Willison's Weblog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tenable Blog
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
Last Week in AI
Last Week in AI
月光博客
月光博客
雷峰网
雷峰网
G
Google Developers Blog
V
V2EX
T
Tor Project blog
罗磊的独立博客
Schneier on Security
Schneier on Security
Know Your Adversary
Know Your Adversary
W
WeLiveSecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
S
Securelist
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
Scott Helme
Scott Helme
I
Intezer
T
Threat Research - Cisco Blogs
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
C
CERT Recently Published Vulnerability Notes
Security Archives - TechRepublic
Security Archives - TechRepublic
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LINUX DO - 最新话题
N
News | PayPal Newsroom
L
Lohrmann on Cybersecurity
T
Troy Hunt's Blog
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
人人都是产品经理
人人都是产品经理
Latest news
Latest news
AWS News Blog
AWS News Blog
Apple Machine Learning Research
Apple Machine Learning Research

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Gemma 4 Didn't Just Get Smarter. It Became a Different Kind of Model. Here's What the Agentic Numbers Actually Mean.
Om Shree · 2026-05-20 · via DEV Community

This is a submission for the Gemma 4 Challenge: Write About Gemma 4


Every open-weight model release in 2026 comes with a benchmark table and a claim about efficiency. Most of them are incremental. Gemma 4 has one number that isn't: 6.6% to 86.4% on agentic tool use. That's not an improvement. That's a category change.

The Number That Actually Matters

When Google DeepMind dropped Gemma 4 on April 2, 2026, the coverage focused on the headline scores - AIME 2026, LiveCodeBench, Arena AI rankings. Those numbers are impressive. The 31B dense model scores 89.2% on AIME (up from Gemma 3 27B's 20.8%), 80% on LiveCodeBench (up from 29.1%), and sits third among all open models on Arena AI.

But the benchmark that actually changes what developers can build is τ2-bench - the agentic tool use evaluation that measures whether a model can reliably execute multi-step tasks across real tool schemas, partial information, and policy constraints. Gemma 3 27B scored 6.6% on τ2-bench Retail. Gemma 4 31B scores 86.4%.

Put that concretely: Gemma 3 failed 93 times out of 100 on structured tool use. Gemma 4 fails roughly 14 times out of 100. Those aren't the same class of model for anyone building agents.

The 26B MoE variant scores 85.5% on the same benchmark while activating only 3.8 billion of its 26 billion parameters per forward pass. You get near-flagship agentic capability at a fraction of the inference cost.

What Changed Architecturally

The τ2-bench jump didn't happen because Google made a bigger model. Gemma 4 31B has roughly the same parameter count as Gemma 3 27B. What changed is how the model was trained and what capabilities were baked in natively.

Gemma 4 ships with native function calling via dedicated control tokens - structured tool use is built into the model's vocabulary rather than bolted on through prompt engineering. It has configurable thinking modes where the model can generate 4,000+ tokens of step-by-step reasoning before committing to a tool call, which directly improves accuracy on complex multi-step pipelines. And it has native system prompt support, meaning you can define agent behavior, tool schemas, and constraints in the system turn without workarounds.

The architecture also came from the same research stack as Gemini 3, Google's closed frontier family. The knowledge transfer is visible in the benchmark gaps - particularly on tasks requiring multi-turn planning and policy-compliant tool execution, which are exactly the conditions τ2-bench tests.

One important hardware caveat on the 26B MoE: while it activates only 3.8B parameters per token during generation, all 26 billion parameters must be loaded into memory for routing. Its memory footprint is close to a dense 26B model, not a 4B one. The speed advantage is real - the MoE reaches 40+ tokens per second on consumer GPUs versus 10+ for the dense 31B - but size your VRAM accordingly before assuming it runs like a small model.

Why This Matters for Developers Building Agents

Before Gemma 4, the honest answer to "should I use a local open model for my agent?" was usually no - at least not for anything where tool call reliability mattered. A 6.6% success rate on structured tool use means the agent fails almost every time it needs to call a function, check a schema, or chain tool outputs. That's not a foundation for anything in production.

86.4% changes the calculation. It's not at parity with frontier closed models - GPT-5.4 still leads on complex multi-step benchmarks - but it's in the range where developers can build real agentic workflows locally, catch edge cases with retries and error handling, and ship something that actually works. The failure modes are now manageable rather than fundamental.

This matters especially for three deployment contexts that couldn't practically use local models before.

Privacy-sensitive agentic applications. Healthcare tools, legal review pipelines, financial compliance agents - any workflow where raw query data can't leave the device. Gemma 4's native function calling running locally means the model decides which tool to call on-device, and only the structured API request goes out over the network. Your prompt, your context, and your intermediate reasoning stay local.

Cost-controlled production agents. Per-token API costs accumulate fast in multi-step agentic workflows where each task triggers 5–20 tool calls. Running Gemma 4 26B MoE locally on a consumer GPU eliminates that variable entirely. The 26B MoE's inference speed (40+ tokens/sec on an RTX 4090) is fast enough for real-time agentic loops without the latency penalty you'd expect from a model this capable.

MCP-integrated local pipelines. Gemma 4's native function calling maps directly to Model Context Protocol tool schemas. The setup is straightforward: run Gemma 4 via llama.cpp or vLLM with an OpenAI-compatible endpoint, point your MCP client at it, and the model handles tool selection and call generation locally. What previously required a cloud model API can now run on your own infrastructure with no per-call cost and no data leaving your server.

Picking the Right Model for Agentic Work

Gemma 4 ships as a family of four, and the right choice for agentic deployment isn't automatically the biggest one.

The 31B dense model is the accuracy ceiling - highest τ2-bench score, best reasoning on complex multi-step tasks, strongest fine-tuning base. It runs unquantized on a single 80GB H100, and quantized (Q4_K_M) on consumer GPUs with 24GB+ VRAM. If you're building a server-side agent where quality is the constraint and hardware isn't, start here.

The 26B MoE is the practical production choice for most agentic deployments. 85.5% on τ2-bench is close enough to the 31B that the tradeoff is almost always worth it: 4x faster token generation, lower GPU memory pressure during inference, same 256K context window. For agents running continuous loops or handling high request volume, the speed difference compounds significantly.

The E4B (4B edge model) hits 52% on LiveCodeBench and supports native audio input - the only model in the family that handles speech natively. If you're building on-device Android agents that need voice input or mobile-first agentic workflows, this is your model. The agentic tool use scores are lower, but the hardware targets are completely different: this runs on a phone.

The E2B (2B edge model) reaches 133 prefill tokens/sec on a Raspberry Pi 5 CPU. For IoT agents, offline-first deployments, or anything constrained to sub-1.5GB RAM, it's the only viable option in this family and still handles multimodal input.

The Apache 2.0 License Is Not a Minor Detail

Every previous Gemma release shipped under a Google proprietary license. Gemma 4 is the first under Apache 2.0.

For agentic AI specifically, this matters more than it does for general language model use. Agents get embedded in products. They get fine-tuned on proprietary data. They get wrapped in commercial services that customers pay for. All of that required legal review and negotiation under the old Gemma license. Under Apache 2.0, you can build, ship, fine-tune, and commercialize without clearing Google's terms first.

For startups and solo developers building on open-weight models, this is one less legal headache at exactly the moment when the model became capable enough to actually deploy in production.

Getting Started

# Pull with Ollama - fastest path to a running model
ollama pull gemma4:31b
ollama pull gemma4:26b-moe

# Or via Hugging Face
pip install transformers

Enter fullscreen mode Exit fullscreen mode

Google AI Studio has the 31B and 26B MoE available in-browser with no local setup. Google AI Edge Gallery covers the E4B and E2B for on-device testing. Full framework support at launch includes Hugging Face Transformers, vLLM, llama.cpp, MLX, NVIDIA NIM, SGLang, Ollama, LM Studio, and more.

For MCP integration, the gemma-mcp package handles client setup against a locally-served Gemma 4 endpoint.

One practical note if you're running the 26B MoE via Ollama on Apple Silicon: as of v0.20.3 there's a known streaming bug that routes tool-call responses to the wrong field. Use llama.cpp directly or wait for the Ollama fix before deploying in an agentic context.

The Honest Caveat

86.4% on τ2-bench Retail is not 100%. In agentic pipelines where tool calls chain across 10–20 steps, a 14% per-call failure rate compounds. Production deployments need retry logic, error handling, and validation layers between tool outputs - the same engineering discipline you'd apply to any distributed system with failure modes.

Gemma 4 doesn't eliminate the need for defensive agent architecture. It makes the failure rate manageable enough that the architecture is worth building.

That's the real shift. Not that local open models are now perfect for agentic work. It's that they crossed the threshold from "interesting experiment" to "defensible production choice" - and they did it on your hardware, under a license you can actually ship with.

Follow for more coverage on MCP, agentic AI, and AI infrastructure.