Overview
Anyone who has deployed a model has hit this: the same weights score one number on an official leaderboard and a different number on your own machine, sometimes ten points apart. When the score drops, there is no way to tell whether the model is weak or the chat template is wrong, a system prompt slipped in, or server parameters are misaligned. gBench, open sourced by Google's Gemma team, exists to make that distinction.
Its position is not another academic eval set. It puts model capability and the running service into one toolchain. Official wording names three things: evaluation, serving performance and release readiness. The distinction is practical, because whether a model serves reliably on vLLM and how it scores on MMLU are independent questions, and earlier tools handled one or the other.
The academic layer holds 86 evaluation suites grouped into six capability areas: general knowledge and scientific reasoning, mathematics and proof, coding and algorithm design, long context and retrieval, tool use and agentic workflows, and multimodal vision and localization. Familiar names like MMLU, GPQA and GSM8K sit alongside tool-calling sets and visual grounding tasks.
The smoke checks are where it behaves most like an engineering tool. There are 16 Golden Set checks that run before the full suite to confirm three things: the model is wired up correctly, the chat template is not broken, and it can answer at all. If any of those fails, every number from the 86 suites is worthless. Isolating that step saves hours of wasted benchmarking.
Installation is light. One pip install gbench on Python 3.11 or newer. The interface speaks the OpenAI-compatible /v1 path, so --remote-endpoint points at anything, and official docs confirm testing on vLLM and Ollama. Without a remote endpoint it starts a local vLLM server, then shuts it down afterward, managing memory and ports itself.
Dependencies are layered. The base package benchmarks a remote endpoint from a laptop, while the 86 academic suites need extra dependencies through pip install gbench[evals], and running vLLM locally requires installing vllm as well. That design serves two audiences: deployers who want a health check on their own service, and researchers running the full suite.
Multi-model comparison is a strength. Same question bank, same scoring logic, and a different --remote-endpoint gives you another model with alignment built in. Run everything with --evals all, or name specific suites such as --evals gpqa mmlu. Adding --eval-thinking enables reasoning mode, and --max-output-tokens caps per-question output so reasoning models do not run away.
Be clear about what it is not. It is a framework, not a leaderboard, and it will not hand you a cross-model ranking. The provenance of the 86 suites and their scoring implementations deserve a look before you make release decisions with them. It comes from the Gemma team, so Gemma models are the best-tuned path; other families run, but whether defaults are optimal is your call. A full run takes hours.
The fit is concrete. Teams running their own inference do a full health check before shipping. Comparing one model across quantizations or serving backends shows where the losses land. Wiring the smoke checks into CI runs a quick pass on every weight or template change. None of these need a ranking; they need a comparable yardstick.
Key Features
- 86 evaluation suites: Covers general knowledge, mathematics, coding, long context, tool use and multimodal vision
- 16 smoke checks: Golden Set confirms wiring, chat template and basic answering before the full suite runs
- Capability and serving together: Measures model quality, serving performance and release readiness in one toolchain
- Any OpenAI-compatible endpoint: --remote-endpoint targets any /v1 interface, verified on vLLM and Ollama
- Manages local serving: Starts a local vLLM when no endpoint is given, then shuts it down with memory and ports handled
- Layered dependencies: Base package benchmarks remote endpoints from a laptop, academic suites install through gbench[evals]
Use Cases
- Health checking a self-hosted inference service before release
- Comparing one model across quantizations or serving backends
- Running smoke checks in CI on every weight or template change
- Re-benchmarking open weight models under one consistent setup
- Diagnosing why local scores differ from published numbers
Pros
- Separates wiring correctness from model capability so score gaps can be traced
- 86 suites work out of the box without assembling test scripts
- Swapping endpoints swaps models with alignment built in
- Manages local vLLM memory and ports, shutting down after the run
- Apache 2.0 on PyPI, installed with one pip command
Pricing
Apache 2.0 and free to install from PyPI. Benchmarking consumes whatever inference compute the endpoint uses, billed by your hardware or provider.
Summary
An evaluation framework from Google's Gemma team with 86 suites and 16 smoke checks against any OpenAI-compatible endpoint, built to separate a weak model from a broken setup.
Version History
- gBench (2026-11-24): Google open sourced gBench with 86 evaluation suites across six areas, 16 Golden Set smoke checks, any OpenAI-compatible endpoint and automatic local vLLM management