Skip to main content
Back

Google DeepMind's gBench Merges Model Evals and Stress Tests Into One Open-Source Tool

Google DeepMind open-sourced gBench, a benchmarking framework with 86 eval suites, agentic tests, and stress sweeps for any OpenAI-compatible endpoint.

Repo, Full Access
  • Google DeepMind open-sourced gBench, a unified benchmarking framework for open LLMs and VLMs.
  • Ships with 86 academic eval suites across 6 capability pillars, plus reasoning-mode support.
  • 16-case Golden Set smoke test isolates broken chat templates from genuinely weak models.
  • Agentic quality tier runs the GemmaClaw QA suite in a sandboxed Docker container.
  • Open-loop Poisson stress sweep certifies throughput limits against P99 TTFT and ITL SLOs.
  • Works with any OpenAI-compatible endpoint; validated on vLLM, Ollama, and Cloud Run.

Google DeepMind has released gBench, an open-source benchmarking suite for deployments of large language models (LLMs) and vision-language models (VLMs). The Apache-2.0-licensed tool combines academic evaluations, deterministic smoke tests, multi-turn agent tests, and load testing against the server and hardware handling inference.

gBench sends requests to any OpenAI-compatible /v1 endpoint through --remote-endpoint, with vLLM and Ollama among the validated servers. Cloud Run targets must accept unauthenticated requests. For local tests, the suite can launch and stop a vLLM server itself.

One CLI, three kinds of evidence

Tier What it runs What it measures
Academic evals
--evals
86 Python-based suites across six categories:
  • General knowledge and scientific reasoning
  • Mathematics and proofs
  • Coding and algorithm design
  • Long-context retrieval
  • Tool use and agent workflows
  • Multimodal vision and grounding
Model capability on established tasks. Reasoning can be enabled per request, and custom JSONL datasets can be loaded from a discovery directory.
Golden Set
--golden-only
16 deterministic checks, including code_canonical, function_call_single, and structured_json. Basic deployment correctness. Presence checks require expected output and reject forbidden output, while python_exec compares generated code with unit tests.
Agentic quality
--quality-only
The GemmaClaw and OpenClaw QA suite inside an isolated Docker container. Multi-turn tool calling, session memory, and plugin routing.

The Golden Set includes labeled chat-template checks that help separate model behavior from serving errors. Open models depend on exact special-token formatting, and malformed templates can depress evaluation scores even when the underlying model is capable.

Finding the serving limit

The --stress-test mode generates requests with an open-loop Poisson process and doubles the target request rate until a configuration fails. Open-loop scheduling sends requests at the planned times regardless of how many earlier requests remain in flight, exposing queue growth under sustained load. After a failure, gBench certifies the highest surviving rate against configured service-level objectives (SLOs).

A stress point passes only when requests scheduled after ramp-up satisfy every condition:

  • Queue depth remains stable.
  • At least 90% of requests finish within the end-to-end budget implied by the SLOs.
  • P99 time to first token (TTFT) remains within its limit.
  • P99 inter-token latency (ITL), the delay between generated tokens, remains within its limit.
  • Failures remain below 2%.
  • The client maintains the planned request schedule.

For standalone runs that omit --campaign, the default limits are 5,000 milliseconds for TTFT and 200 milliseconds for ITL. Both values can be overridden.

Each configuration runs several times and reports the mean, median, standard deviation, P50, P95, P99, and coefficient of variation. The --max-cv-percent option defaults to 5.0; results above that threshold are flagged as unstable instead of presenting a favorable median as representative.

GPU checks before vLLM starts

Before launching a local server, gBench reads the model’s Hugging Face config.json to estimate parameter count, architecture, and memory requirements. It uses those values to compare the requested --num-gpus setting with a recommended tier.

Model size Recommended GPUs
Up to 20 billion parameters 1
More than 20 billion and up to 80 billion parameters 2
Above 80 billion parameters 8

The sizing check warns when a run falls outside the recommended tier and refuses to launch when the estimated model footprint exceeds available capacity. Server startup timeouts also scale with parameter count and mixture-of-experts (MoE) topology, accommodating the longer cold starts common with large vLLM deployments.

From clone to first run

Installation uses an editable Python package. The base package can test remote endpoints such as Ollama, while academic evaluations and local vLLM support use optional dependencies.

git clone https://github.com/google-deepmind/gbench.git
cd gbench
python3 -m venv venv && source venv/bin/activate
pip install -e .
pip install -e ".[evals]"   # academic evaluation dependencies

After an OpenAI-compatible server is listening locally, this command runs GPQA and MMLU, enables reasoning, and caps each response at 65,536 output tokens:

gbench --evals-only \
  --remote-endpoint http://127.0.0.1:8000/v1 \
  --tokenizer google/gemma-4-E4B-it \
  --evals gpqa mmlu \
  --eval-thinking \
  --max-output-tokens 65536

Five runnable notebook examples cover the quickstart, workload campaigns, Golden Set checks, academic evaluations with reasoning, and the GemmaClaw agent suite.

A common layer for fragmented evals

Open-model benchmarking often requires separate tools for academic tasks, inference throughput, and agent behavior. Teams commonly combine lm-evaluation-harness, vLLM benchmark scripts, and custom agent evaluations. gBench places those workflows behind one CLI while keeping their results and pass criteria distinct.

The agentic tier runs inside gBench’s Docker container with networking disabled, cloud metadata services unreachable, the source checkout mounted read-only, and no writable host paths. The container uses an unprivileged account without added Linux capabilities, limiting the access available to generated code and tool calls.

Current examples, tool-call parser options, and the GemmaClaw suite favor the Gemma family. The OpenAI-compatible endpoint contract also supports other models served through vLLM or Ollama. Teams evaluating other model families should verify tokenizer selection, chat templates, and tool-call parsing before comparing results across deployments.