Skip to content

Google open-sources gBench to test Gemma and other open models

Comic-style engineer tunes a test rig as a wired AI robot points at a speed gauge and a wall of pass and fail lights Models

Google DeepMind has open-sourced gBench, a benchmarking framework for Gemma and other open AI models. The Gemma team announced it on November 23, 2026. Out of the box, gBench ships 86 evaluation suites, chat-template checks, agentic tests and several tiers of smoke tests.

It works with any OpenAI-compatible endpoint, so you can point it at a model served by vLLM, Ollama or a cloud service. The code is on GitHub under the Apache 2.0 license.

What gBench measures

gBench does two jobs that are usually split across separate tools. It measures how well a model answers, and how fast the server running it responds under load. Both work for text models and for vision-language models.

Capability is tested in three tiers. The first holds 86 academic and domain evaluation suites. They cover general knowledge and science, math, coding, long context, tool use and agentic work, and vision. Familiar names include MMLU, GPQA, GSM8K and the Berkeley function-calling benchmark. You can also turn on the model's reasoning mode for these runs.

The other two tiers are faster checks. They target problems that benchmark scores often hide.

Smoke tests and agent tests

The Golden Set is 16 deterministic checks for code, math, tool calling, structured JSON, translation, safety, vision and audio. A labelled subset tests chat templates. Google says it separates a broken chat template from a weak model, a common source of bad results when people run open models locally.

The agentic tier runs the GemmaClaw QA suite, built from the OpenClaw agent framework. It covers 60 multi-turn scenarios that test tool calls, memory between sessions and plugin routing. The suite runs inside a locked-down Docker container with no network access, and some helper steps use Google's Gemini API.

Performance testing goes further than a single speed number. gBench repeats each run and reports P50, P95 and P99 latency, and it flags runs whose results vary too much. A stress mode keeps raising the request rate until the server misses its latency targets, then certifies the highest rate it can sustain.

How to run gBench

Install it with pip install gbench on Python 3.11 or newer. One command starts a local vLLM server, runs the chosen tests and shuts the server down. The Gemma team's example tests Gemma 4 12B under agent-style, long-context traffic:

gbench --models google/gemma-4-12B-it --campaign agentic

To test a model that is already running, you pass its address with --remote-endpoint. That covers OpenClaw setups on Ollama and similar local agents. gBench reads each model's configuration from Hugging Face and suggests how many GPUs it needs. That means one GPU up to 20B parameters, two up to 80B and eight above that.

You can add your own suites as Python plugins or as plain JSONL files without code. Five notebooks walk through the main modes, and they run on Colab or locally.

Is gBench worth using for open models

For teams that serve open models, yes. Most leaderboards report scores from the model maker's own setup. gBench lets you check a model on your own hardware, server and settings. It also shows whether a low score comes from the model or from a broken template.

There are limits. The academic suites load third-party datasets with their own licenses, some of them non-commercial, so check those before you publish scores. The agentic tier also needs a Gemini API key. Even so, a free tool that tests quality and speed in one run is useful. It helps anyone choosing between models like Gemma 4 and its open rivals.

Sources

Portrait of Felix Laurent, author at thehype.news

Felix Laurent

News Writer at thehype. Felix is a journalist with experience in marketing. He covers artificial intelligence and emerging technologies, focusing on the ideas, innovations, and trends shaping the future of tech.

More articles by Felix Laurent →
On air · radio.thehype.news ↗ AI news radio — 24/7