GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - modelsphere/llm-bench: An open benchmark platform for LLM serving endpoints: throughput sweeps, functional acceptance, real-traffic replay, scored leaderboards

BranchesTags
Open more actions menu

Latest commit

 

History

88 Commits
88 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bench
bench
 
 
benchmarks
benchmarks
 
 
deploy/helm/llm-bench
deploy/helm/llm-bench
 
 
docs
docs
 
 
platform
platform
 
 
scripts
scripts
 
 
tests
tests
 
 
utils
utils
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
docker-compose.yml
docker-compose.yml
 
 
mock_server.py
mock_server.py
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

LLMBench

Point it at an OpenAI-compatible endpoint; it runs a benchmark suite against it and puts the result on a leaderboard.

A benchmark is an ordered list of modules, each with locked parameters and its own scoring rules. Anyone with an account submits an endpoint (URL, model name, key); a worker runs every module against it and records the raw metrics, a per-module score, and pass/fail against the benchmark's redlines. Submissions to the same benchmark configuration rank against each other.

What it measures

Module What it does
perf_guidellm_sweep Throughput and latency (TTFT, TPOT, ITL at p50/p90/p99) across concurrency levels, via guidellm. Grid mode, or auto mode: it searches for the highest concurrency that still meets your SLO — doubling, then binary search, then a confirmation run — with each probe isolated in its own process.
perf_guidellm The same measurement at one concurrency level.
replay Replays captured production requests and reports what the endpoint actually does with real traffic: errors, TTFT by input length, truncation, repetition, throughput, cache hits, and an optional LLM judge. The dataset can be a fixed file or a rolling one rebuilt from live gateway traffic, with every run pinned to — and recording — the exact build it replayed.
functional_acceptance 56 pass/fail checks: streaming, tool calling, reasoning switches, structured output, sampling-parameter boundaries, auth, multimodal, request validation. Detects a bare engine vs a gateway and adjusts. Catalog.
opencompass Academic accuracy: AIME 2025, GPQA-Diamond, IFEval, MMLU-Pro, HLE, LiveCodeBench, SimpleQA, LongBench v2.
case_truncation Very long outputs, checked for truncation.
agentic Multi-turn agent sessions under concurrent virtual users.
hallucination, tool_call_success Replays one request many times and checks every answer.

Throughput is also reported card-normalized — rescaled to a common GPU count from the hardware the submitter declares — so an 8-GPU and a 2-GPU deployment can be compared.

Quickstart — one machine, no GPU

You need Docker (with Compose) and openssl.

git clone https://github.com/modelsphere/llm-bench && cd llm-bench
scripts/gen-prod-secrets.sh --env        # writes .env and prints the admin login
docker compose --profile mock up -d

This runs the released images; add --build to run the checkout instead. Open http://localhost:8080 and sign in with the email and password the script printed. The mock profile runs a fake model: submit http://mock-llm:8000/v1, model mock, to perf-suite-v1, and watch it go through every module in a few minutes. The numbers mean nothing about any real model; the point is to see the whole pipeline work. Drop --profile mock once you are benchmarking real endpoints.

Nothing is downloaded while a benchmark runs: the image carries the tokenizer the throughput modules size their prompts with.

Optional: datasets. Every module runs on the example data in the image. For the academic suites, fetch the public datasets into dataset/ first: uv run --project platform/backend python scripts/fetch_academic_datasets.py. For replaying your own traffic, see docs/replay-datasets.md.

On Kubernetes

scripts/gen-prod-secrets.sh --out secrets.prod.yaml     # prints the admin login
helm upgrade --install llm-bench deploy/helm/llm-bench -n llm-bench --create-namespace -f secrets.prod.yaml
kubectl -n llm-bench port-forward svc/llm-bench-frontend 8080:80

Open http://localhost:8080 and sign in with the admin the script printed. docs/deploying.md covers sizing, storage, the rolling dataset collector, upgrades that don't kill running benchmarks, and backups.

Used by LLM AutoTune

LLM AutoTune searches for better serving configurations by launching them and measuring each one here. It talks to LLMBench as a service account — seeded by the deployment, able to manage only the benchmarks it created. Setup is two values, one on each side: Connecting LLM AutoTune. What it depends on is written down in docs/api/for-autotune.md.

To see both working together, LLM AutoTune's quickstart installs this platform and AutoTune on one Kubernetes cluster, connects them, and runs a demo campaign, in one command and without GPUs.

Documentation

docs/platform-architecture.md How it fits together: API, worker, crash recovery, scoring, datasets
docs/deploying.md Helm install, operations, upgrades
docs/replay-datasets.md Rolling replay datasets, end to end
docs/functional-acceptance-checks.md The 56 checks
docs/api/for-autotune.md The contract another platform relies on
platform/README.md Developer guide and API reference

Layout

bench/        the benchmark modules and the tests they drive (a plain library)
benchmarks/   benchmark definitions; perf-suite-v1 is seeded on install
platform/     backend/ (FastAPI + Dramatiq worker), frontend/ (Vue), cli.py
deploy/helm/  the Helm chart
scripts/      dataset fetching and conversion, secrets, operations
tests/        module tests, run against a mock server — no GPU, no network
docs/

Contributing

See CONTRIBUTING.md.

License

Apache License 2.0.

About

An open benchmark platform for LLM serving endpoints: throughput sweeps, functional acceptance, real-traffic replay, scored leaderboards

Topics

benchmarkinferenceleaderboardllmmodelsphereopenai-apiperformancepythonvue

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.