r/LocalLLaMA • llama.cpp • 17h ago

News GitHub - google-deepmind/gbench: Evaluation, serving performance, and release-readiness benchmark harness for Gemma and open-weights LLMs.

https://github.com/google-deepmind/gbench

announced by googlegemma today:

gBench: performance and capability benchmarks for open models

gBench is an open-source benchmarking and evaluation suite for open large language models (LLMs) and vision-language models (VLMs). It measures serving performance on the hardware it runs on, and model capability in three tiers: academic eval suites, the Golden Set smoke tests and the agentic quality suite.

It works with any OpenAI-compatible /v1 server through --remote-endpoint (validated on vLLM and Ollama; on Cloud Run, a service that allows unauthenticated calls), or starts and stops a local vLLM server itself.

Key features

  • OpenAI API compatibility: measure any OpenAI-compatible /v1 endpoint with --remote-endpoint <URL>/v1 (validated on vLLM and Ollama; on Cloud Run, a service that allows unauthenticated calls; see Remote Endpoint Mode).
  • Three capability tiers:

    1. Academic and domain evals (--evals): 86 canonical Python suites in --evals all (plus ui_control_osworld and swe_lancer, which run only when named) across 6 core capability pillars (General Knowledge & Scientific Reasoning, Mathematics & Proofs, Coding & Algorithmic Design, Long Context & Retrieval, Tool Use & Agentic Workflows, Multimodal Vision & Grounding) with the model's reasoning mode on request (--eval-thinking), images sent as their original bytes where the dataset stores them (no re-encoding), plugin discovery (--eval-plugins-dir) and custom JSONL datasets (--eval-custom-jsonl).
    2. Golden Set smoke tests (--golden-only): 16 deterministic capability checks (code_canonical, function_call_single, structured_json, etc.) with two-sided presence assertions and python_exec unit-test matching, including a labelled chat template subset that separates a broken chat template from a weak model.
    3. Agentic quality suite (--quality-only): the GemmaClaw / OpenClaw QA suite (the QA scenarios of the pinned GemmaClaw commit, 60 at d8bc6989; scenarios that need another model provider are listed apart and not scored) testing multi-turn tool calling, session memory and plugin routing, run in gBench's local gbench-quality Docker image (built once per GemmaClaw commit).
  • Model discovery and GPU sizing: model properties read from the HuggingFace config.json (parameter count, MoE topology, vision/audio tokens), a recommended GPU tier per model size (1 GPU up to 20B, 2 GPUs up to 80B, 8 GPUs above) that is checked against the required --num-gpus (a warning when off the tier, a refusal when the model will not fit), and a server startup timeout that scales with model size (max(600, min(3600, (300 + params_b * 10) * 3 * (1.3 if MoE)))).
  • Repeatability checks: several iterations per configuration with mean, median, standard deviation, P50, P95, P99 and the coefficient of variation, checked against --max-cv-percent (default 5.0).
  • Open-loop stress sweep (--stress-test): one merged Poisson schedule per rate point at increasing rates (x2 per step) until a point fails; each of --stress-reps repeats gives a bracket [pass, fail], and the median repeat's limit is then certified with probes sized for the P99 SLO (a cohort of >= 1099 requests, about 1400 sent, the same rule on every device) to +-9% when that resolution is reached (otherwise a certified lower bound with its resolution, a lower bound censored at --stress-max-qps, or no limit when certification refutes the sweep), or reported UNCERTIFIED with the time certifying would need (--stress-certify-budget). A point passes when, on the requests planned after the point's ramp-up: the queue is not growing, >= 90% finish within the end-to-end time the SLOs imply, P99 TTFT and P99 ITL meet their SLOs, failures stay under 2% and the client kept to its schedule. The queue-growth test reads TTFT; overload that shows only as longer end-to-end times (for example KV-cache preemption) is left to the completion-fraction and ITL gates. SLOs are per campaign (5000 ms TTFT and 200 ms ITL without --campaign), overridden by --stress-threshold and --itl-slo-ms.

74 Upvotes

9 comments sorted by

19

u/Izento 16h ago

This should be very good. One massively annoying thing about the local LLM community is we all have our own personal benchmarks. Hopefully this gives us a unified benchmark to rally around to get solid consistent numbers. That way it's only harness and small tweaks that change the underlying model.

11

u/Hrethric 16h ago

It's also a unified benchmark for model- makers to target for benchmaxing, but it still sounds like a nice tool, and good of Deepmind to share it.

5

u/Kolkoris 13h ago

I completely disagree. Everyone must have their own private benchmarks to evaluate LLMs on their own tasks and be sure that the model developer hasn't benchmaxxed the model for popular benchmarks. I personally ignore any benchmarks nowadays, because everyone benchmaxxes.

3

u/readreaddrawdraw 10h ago

For specific tasks yes - but it's more a coarse/fine situation. Standardised benchmarks are good for "IQ testing" and specific task benchmarks are "job interviews". Both still useful

5

u/YogurtExternal7923 11h ago

quick! benchmark everything before they get benchmaxxed

2

u/No-Library8065 13h ago

glad it pins the serving side too. half the "x beats y" posts here are really just different chat templates and sampler settings

1

u/readreaddrawdraw 10h ago

I've been digging through the repo this morning and just put a write-up on my eval/benchmarking blog about it

It has a lot of good stuff in it:
-the chat-template twin pairs in the golden set
-open-loop Poisson stress sweeps

Couple of smaller issues to, like what seems to be an unintentional judge fallback that would mess up the judging quietly if there were ever outages on your main judge model - but it's still early days for it so I'd imagine they'll fix that soon.

I'm honestly pretty impressed overall though. My eval app doesn't suit local testing very well so I get a lot of questions on what would work well for that, and before this repo I honestly had nothing I'd feel comfortable recommending. I'm going to do a bit more testing over today/tomorrow but it looks like this could become my go-to for offline testing

1

u/Milk_Bots 9h ago

Sweet, this way only deepmind can benchmaxx their model with future benchmark test. 🙄 Good for benchmarking older models on your drive thou, more standardized test results, for easier comparison