inferencebench-leaderboard
Static-site renderer that turns a directory of signed InferenceBench envelope
JSONs into a plain HTML+CSS+JSON leaderboard suitable for GitHub Pages
(https://yobitelcomm.github.io/bench). Vendor-neutral, no JavaScript
frameworks; the only client-side code is a ~40-line vanilla sorter for the
tables.
Install (workspace)
This package is a uv workspace member of the root bench/ monorepo:
# bench/pyproject.toml
[tool.uv.workspace]
members = [..., "tools/leaderboard"]
Then uv sync from the repo root.
Build a site
python -m inferencebench_leaderboard build envelopes/ site/
# or
inferencebench-leaderboard build envelopes/ site/ --base-url /bench/
envelopes/ must contain *.json files that parse against the canonical
inferencebench.envelope.Envelope Pydantic model. Files that don't parse
are logged and skipped; the rest of the site still renders.
Output layout
site/
index.html — category index
static/site.css — Hacker News-style table CSS
static/sort.js — vanilla sort for tables
envelopes/<file>.json — verbatim copies for `bench verify`
<suite_id>/index.html — per-category table
<suite_id>/<run_id>.html — per-entry detail (verify snippet)
data/leaderboard.json — machine-readable index
Public API
from inferencebench_leaderboard import (
render_site, # main entry point
SiteRenderResult, # return type
load_envelopes, # directory -> [LoadedEnvelope]
compute_pareto, # Pareto-frontier classifier
LoadedEnvelope,
PARETO_DIRECTIONS,
)
compute_pareto accepts per-axis direction={"min","max"} so the same
function works for throughput-vs-latency, latency-vs-cost, etc.
Tests
pytest tools/leaderboard/tests/
Covers: smoke render, Pareto math on synthetic data, schema-validation skipping.
Hosted at GitHub Pages
The marathon corpus committed at
validation-runs/2026-05-18-multi-vendor-marathon/marathon/all/ is rendered
and deployed to https://yobitelcomm.github.io/bench/ by
.github/workflows/deploy-pages.yml. The workflow re-runs on push to main
(when leaderboard code or corpus envelopes change), weekly on schedule, and on
manual dispatch from the Actions tab.
To preview locally before pushing:
uv run bench leaderboard --build \
--envelopes validation-runs/2026-05-18-multi-vendor-marathon/marathon/all \
--out _site --base-url /bench/
python3 -m http.server --directory _site 8080
# open http://localhost:8080/bench/ (note the /bench/ prefix matches --base-url)
Metadata
Release files for inferencebench-leaderboard 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inferencebench_leaderboard-0.1.0.tar.gz | 17.3 kB | Without provenance | Details for inferencebench_leaderboard-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inferencebench_leaderboard-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for inferencebench_leaderboard-0.1.0-py3-none-any.whl |
Total release size: 35.3 kB
Release files / inferencebench_leaderboard-0.1.0.tar.gz
| Download URL | inferencebench_leaderboard-0.1.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
396f6a602eee78011c4567e6c56cbce10d6071a402a3108f5988f1731d1803f0
|
|
BLAKE2b-256 checksum How to use checksums |
2986adfc592cfa819b00fe4927c8ea97d3182ea3376a3d9ea794c0a63e5c90c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / inferencebench_leaderboard-0.1.0-py3-none-any.whl
| Download URL | inferencebench_leaderboard-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbd16cef741ec85eb1bd902b09814eb0f09b5ad877068a7aaf4e36e1978cb7b7
|
|
BLAKE2b-256 checksum How to use checksums |
30871f3c7b43792e9f038515cba9381e7dbd1f145aeffbd4d77e08a1708f8c24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for inferencebench-leaderboard 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.