Skip to main content

OpenBench AI (v0.5.1)

Is the difference between two LLMs real, or noise?

Statistically sound LLM benchmarking in Python: any model, paired comparison and ranking with confidence intervals and exact tests, sample-size planning, repeated runs, blinded human preferences, an LLM judge you can measure, and dataset audits. No runtime dependencies.

Tests Release PyPI Docs Python 3.10–3.13 Runtime dependencies: none License: MIT

Full documentation: OpenBench AI docs.

Terminal demo: a read-only dataset audit, then the end-to-end example running repeated runs, a paired comparison with an adjusted p-value and confidence interval, variability, blinded preferences and a group audit

Why OpenBench AI?

Most model comparisons report two averages and pick the higher one. On a benchmark of 20 to 200 questions, a gap of a few points is often within run-to-run noise. Re-running a model can also return cached answers and look more stable than it really is. OpenBench AI answers the question behind the leaderboard:

You want to know OpenBench AI gives you
Which of these models should we ship? openbench rank: several models ranked with rank intervals and "tied with top" flags.
How many questions do I need? openbench plan: exact sample sizes for the paired test, or what a given number of items can detect.
Is model B really better than model A? openbench analyze: item-by-item pairing, bootstrap confidence intervals, an exact McNemar or sign-flip test, Holm or BH correction, and effect sizes. A non-significant result is never reported as "equivalent".
How much do scores move between runs? openbench run --repetitions N --seed S: repeat groups with full lineage. Within-item noise, item spread and failures are reported separately.
Which answers do people prefer? openbench preferences: blinded A/B task files, validated annotations, clustered win rates, position bias and inter-annotator agreement.
Can I trust an LLM judge? openbench judge: both display orders, position and length bias checks, and agreement with people.
Can I trust the dataset and the runs? --quality-checks, audit-contamination, dataset-card: read-only audits for duplicates (lexical or semantic), overlap with a corpus, broken references, incomplete runs and integrity failures.
Can someone else check my numbers? JSON, Markdown, CSV and self-contained HTML reports with provenance (input SHA-256s, seeds, parameters, environment), and a read-only local dashboard (openbench serve).

Try the whole workflow in under a minute, with no API keys and no network:

git clone https://github.com/lakshaychhaba0001-sys/openbench-ai.git && cd openbench-ai
python -m pip install -e .
python examples/v040_workflow.py demo   # writes comparison, variability, preference and audit reports to demo/

Note: OpenBench AI is maintained by its project owner, and its initial development was AI-assisted. Contributions, bug reports, and new datasets are welcome: see CONTRIBUTING.md, the good first issues and the roadmap.


What's new in v0.5.0

v0.5.1 adds smaller commands, fixes and documentation from contributors: history compare, cache maintenance, run filters, a Docker image, and output formats chosen from the --output file name. See the changelog.

  • Any model. --provider openai_compatible runs any server with a /v1/chat/completions endpoint: vLLM, LM Studio, llama.cpp server or a hosted API. The API key is read from an environment variable and never stored. --max-requests-per-minute and Retry-After handling keep hosted runs under rate limits. (providers)
  • Rank several models: openbench rank gives rank intervals from Holm-corrected pairwise tests, so you can see which models the data can tell apart. (ranking and planning)
  • Plan before you run: openbench plan computes exact sample sizes for the paired McNemar test, from a disagreement rate, a baseline accuracy or two pilot runs.
  • An LLM judge you can measure: openbench judge judges both display orders and reports position consistency, position and length bias, self-preference risk and agreement with human annotations. preferences analyze --compare-metric checks any metric against people. (LLM judge)
  • Variance components: repeat-group analyses say how much of the variation comes from re-running and how much from the choice of questions, with a two-level CI.
  • Equivalence for continuous metrics: an opt-in bounded test (--continuous-equivalence empirical_bernstein) with a finite-sample guarantee.
  • Benchmarks you can trust: import-dataset converts local QA and multiple-choice files; audit-contamination checks overlap with a corpus you supply; dataset-card writes a card; --near-duplicate-method semantic finds paraphrases. (benchmark tools)
  • Results anyone can read: --format html writes one self-contained, escaped report; openbench serve is a read-only local dashboard. (HTML reports and dashboard)
  • A platform others build on: plugins for metrics, providers and dataset sources (plugins); Windows and macOS in CI; cross-process cache locking; a documentation site; and a troubleshooting page.

Every new statistical method has reference tests and a committed calibration study (methodology, sections 18–22). v0.4.0 commands, public Python names, run directories, datasets and scores keep working, and the core install still has no runtime dependencies. See the changelog.

What was new in v0.4.0
  • Repeated-run benchmarking: openbench run --repetitions N --seed S creates a repeat group. Each repetition is its own run with recorded lineage: group ID, repetition index, seeds and seed status, the exact record IDs, per-record content hashes, and cache provenance.

  • Interrupted groups resume without re-requesting completed items (openbench runs resume grp_...).

  • Fix: repetitions no longer reuse cached responses. In v0.3.1, repeated runs reused cached responses across repetitions, which understated variability.

  • Paired model comparison: openbench analyze aligns stored runs, repeat groups or evaluation files on stable record IDs, with no provider calls. It reports the following, with Holm (or BH) correction, an explicit missing-data policy, coverage and failure-rate comparisons, and category and difficulty breakdowns:

    • percentile bootstrap confidence intervals;
    • an exact McNemar test (binary metrics) or a paired sign-flip permutation test;
    • effect sizes;
    • wins, losses and ties;
    • optional equivalence testing (TOST) with a pre-specified margin.
  • Compatibility checks: incompatible inputs, such as different record content, metric versions or scoring options, are refused unless you request a clearly labelled exploratory comparison.

  • Repeated-run variability: generation variability (within items), item-to-item variation and provider failures are reported separately.

  • Human preference evaluation: openbench preferences create|validate|analyze is a local-first, blinded A/B workflow. The task file contains no model identities; the identity key is a separate file. Analysis covers validated annotation import, task-weighted win rates with task-clustered CIs, tie and neither outcomes, position bias, Cohen's and Fleiss' kappa, and optional Elo with stated limitations.

  • Quality audits: openbench validate-dataset PATH --quality-checks and openbench runs verify ID --quality-checks run read-only checks for:

    • duplicate IDs, and exact and near-duplicate prompts (a lexical 5-gram heuristic);
    • malformed or placeholder references, and keyword expectations missing from references;
    • invalid metric configurations and inconsistent versions;
    • missing outputs, incomplete runs and groups, integrity failures, and insufficient data.

    Audits never modify data.

  • Reports: every new analysis renders to JSON, Markdown and CSV, with provenance (software, environment, input SHA-256s, seeds, parameters). CSV cells are protected against spreadsheet formula injection.

  • Opt-in evaluation CIs: openbench evaluate --confidence-intervals. Output is unchanged without the flag.

v0.3.1 commands, flags, public Python names, the 200 dataset records and existing scores are preserved, and v0.3.1 run directories can be read without modification. See the migration guide for the details and the few documented behaviour changes.


Installation

# From PyPI: the library and the `openbench` CLI (no runtime dependencies)
python -m pip install openbench-ai

The built-in datasets, example profiles and examples/ live in the repository rather than the package, so clone it to use them or to develop:

git clone https://github.com/lakshaychhaba0001-sys/openbench-ai.git
cd openbench-ai

# Core installation (zero external runtime dependencies)
python -m pip install -e .

# Development + YAML config + JSON Schema validation
python -m pip install -e ".[dev]"

# Optional integration groups
python -m pip install -e ".[huggingface]"  # transformers + torch for local HF models
python -m pip install -e ".[semantic]"     # sentence-transformers for neural embeddings
python -m pip install -e ".[all]"          # All optional runtime integrations

# Statistical reference cross-checks (tests only; never imported by the library)
python -m pip install -e ".[dev,stats-ref]"

The Ollama adapter needs no extra packages: it uses the Python standard library HTTP client. All v0.4.0 statistics, preference and audit features use the standard library only.


Quick Start

1. Evaluate response files

openbench evaluate --dataset datasets/reasoning/sample.jsonl --responses examples/sample_responses.json \
  --metrics exact_match accuracy keyword_coverage --output results/

# With percentile bootstrap confidence intervals over items (v0.4.0, opt-in)
openbench evaluate --dataset datasets/reasoning/sample.jsonl --responses examples/sample_responses.json \
  --confidence-intervals --seed 0 --output results/ci/

2. Run models, with repetitions

openbench providers list
openbench run --dataset datasets/reasoning/sample.jsonl --provider mock --model model-a --repetitions 3 --seed 100
openbench run --dataset datasets/reasoning/sample.jsonl --provider mock --model model-b

openbench runs list
openbench runs show grp_<id>           # a repeat group
openbench runs verify grp_<id> --quality-checks
openbench runs resume grp_<id>         # finish an interrupted group

3. Compare stored results (no provider calls)

openbench analyze --runs grp_<id> run_<id> --baseline run_<id> --format markdown --output results/comparison.md
openbench analyze --results results/model_a.json results/model_b.json --equivalence-margin 0.05 --output results/cmp.json
openbench analyze --runs grp_<id> --output results/variability.json   # one repeat group: variability report

4. Collect blinded human preferences

openbench preferences create --runs run_<a> run_<b> --seed 7 --output tasks/ --key-output private/tasks.key.json
# annotators fill annotations.jsonl from tasks/tasks.jsonl
openbench preferences validate --key private/tasks.key.json --annotations annotations.jsonl
openbench preferences analyze --key private/tasks.key.json --annotations annotations.jsonl --format markdown --output results/preferences.md

5. Audit quality

openbench validate-dataset datasets/ --quality-checks --format markdown --output results/dataset_audit.md

6. Rank, plan and share (v0.5.0)

openbench rank --runs run_<a> run_<b> grp_<c> --metric exact_match --format html --output results/ranking.html
openbench plan --baseline-accuracy 0.7 --difference 0.05
openbench serve --experiments-dir experiments --reports-dir results

A complete runnable walkthrough using the mock provider is in examples/v040_workflow.py.


CLI Commands

Command Purpose
validate-dataset, list-datasets, inspect-dataset, dataset-stats Dataset validation and exploration (--quality-checks adds the audit)
evaluate, compare, export, history list/show Evaluate response files, descriptive comparison, export, history
run, runs list/show/verify/resume/compare Provider execution, repeat groups, run management and integrity
providers list/check, cache stats/prune/clear Providers and the response cache
analyze v0.4.0 paired comparison or repeated-run variability of stored results
preferences create/validate/analyze v0.4.0 blinded pairwise human preference evaluation (--compare-metric in v0.5.0)
rank, plan v0.5.0 ranking with uncertainty; sample-size planning
judge v0.5.0 pairwise LLM-as-judge with bias checks
import-dataset, audit-contamination, dataset-card v0.5.0 benchmark import, contamination risk, dataset cards
serve, metrics list, plugins list v0.5.0 read-only dashboard; metric and plugin listings

See the CLI reference for every flag.


Built-in Dataset Catalog (200 Examples)

Category Path Examples Highlights
reasoning datasets/reasoning/sample.jsonl 20 Deductive logic, scheduling, combinatorics, rate problems
mathematics datasets/mathematics/sample.jsonl 20 Calculus, linear algebra, number theory, geometry
coding datasets/coding/sample.jsonl 20 Python stdlib, algorithms, Big-O, SQL, HTTP, Git
debugging datasets/debugging/sample.jsonl 20 Root-cause analysis across Python, SQL, C, JS, and Git
instruction_following datasets/instruction_following/sample.jsonl 20 Strict formatting, delimiters, casing, sorting
factual_knowledge datasets/factual_knowledge/sample.jsonl 20 Verifiable science & CS facts with source metadata
safety datasets/safety/sample.jsonl 20 Harm refusal, secure coding, medical boundaries with rationale
multilingual datasets/multilingual/sample.jsonl 20 11 languages (es, fr, de, hi, pt, it, ja, zh, ru, nl, la)
summarization datasets/summarization/sample.jsonl 20 Single-sentence technical and scientific summarization
structured_output datasets/structured_output/sample.jsonl 20 JSON generation with required_keys, field_types, expected_schema

The built-in quality audit reports 0 errors, 6 warnings and 8 informational findings. These are documented historical keyword exceptions, one ambiguous item and accepted answer variants; see quality audits. With 20 items per category, statistical comparisons on one category have low power, and the reports say so.


Metrics Reference

Metric Identifier Version Kind Description Key Methodological Limitation
exact_match 0.1.0 binary Normalized string equality (1.0 or 0.0). Penalizes conversational framing.
accuracy 0.1.0 binary Deterministic correctness via exact or word-bounded answer containment. Does not parse negation or complex paraphrases.
keyword_coverage 0.1.0 continuous Proportion of expected keywords present in the response. Not equivalent to semantic correctness.
precision 0.2.0 continuous $\text{TP} / (\text{TP} + \text{FP})$ for binary decisions or element sets. Applies to discrete decisions/sets, not free-form prose truth.
recall 0.2.0 continuous $\text{TP} / (\text{TP} + \text{FN})$ for binary decisions or element sets. Does not penalize extra false-positive elements alone.
f1 0.2.0 continuous Harmonic mean of precision and recall. Ignores word order outside discrete elements.
rouge / rouge_1 / rouge_l 0.2.0 continuous Unigram (rouge_1) and LCS (rouge_l) overlap F1. Cannot detect factual hallucinations or antonym flips.
bleu 0.2.0 continuous Smoothed clipped $n$-gram precision with brevity penalty. Penalizes valid synonyms and paraphrases.
semantic_similarity 0.2.0 continuous Embedding cosine similarity via configurable EmbeddingProvider; with the default local_ngram_hash provider it is a legacy alias for lexical_similarity. Not factual correctness; opposite statements can have high similarity.
lexical_similarity 0.3.1 continuous Cosine similarity of hashed word and character 3-gram features. Surface wording only; paraphrases score low and negations score high.
structured_output 0.2.0 continuous Validates JSON syntax, required keys, field types, and JSON Schema. Structural validity is separate from factual value accuracy.

The kind (score_kind) selects the statistical procedure in analyze. Metric scores and versions are unchanged in v0.4.0 and v0.5.0.


Statistical honesty

  • A non-significant difference is never reported as "no difference" or "equivalent". Equivalence requires a pre-specified margin and a TOST, and for continuous metrics equivalence is descriptive only unless you opt in to the bounded test (--continuous-equivalence empirical_bernstein, v0.5.0).
  • Exact binary equivalence p-values are computed in floating point with a documented, tested error allowance. This is an engineering bound, not a machine-checked proof.
  • Confidence intervals describe uncertainty over items for fixed models, prompts and settings. They are labelled as not adjusted for multiple comparisons.
  • A seed passed to a provider does not guarantee deterministic output.
  • SHA-256 checksums show that files match recorded checksums. They do not prove that results are correct or authentic.

See the statistical methodology.


Documentation Index


Sponsors

OpenBench AI is free and open source. If it saves you time, you can support its development on GitHub Sponsors. Sponsorship never affects results, rankings or defaults; see how sponsorship works.


License

Released under the MIT License.


How to cite

If you use OpenBench AI in your research, please cite it using the following BibTeX entry:

@software{chhaba2026openbench,
  author  = {Chhaba, Lakshay},
  title   = {OpenBench AI},
  version = {0.5.1},
  date    = {2026-11-30},
  url     = {https://github.com/lakshaychhaba0001-sys/openbench-ai},
  license = {MIT}
}

Metadata

Release files for openbench-ai 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openbench-ai 0.5.1
File Size Uploaded Provenance Actions
openbench_ai-0.5.1.tar.gz 366.9 kB With provenance Details for openbench_ai-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openbench-ai 0.5.1
File Interpreter ABI Platform Actions
openbench_ai-0.5.1-py3-none-any.whl Python 3 none any Details for openbench_ai-0.5.1-py3-none-any.whl

Total release size: 651.7 kB

Release files / openbench_ai-0.5.1.tar.gz

Download URL openbench_ai-0.5.1.tar.gz
Size 366.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a85db8350d6a3a44b770637fd165eb4106b70d376aa5773c2980428608b572bb
BLAKE2b-256 checksum
How to use checksums
54476d8f73be37bd2b3c8c1bf69b2af7850b54701da0d8e6ee8df4e04d30bdd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / openbench_ai-0.5.1-py3-none-any.whl

Download URL openbench_ai-0.5.1-py3-none-any.whl
Size 284.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ea651f1a400354631ccd5c9fb869453a91c867a862d0009039dd69d7c165206
BLAKE2b-256 checksum
How to use checksums
913af44d47d684741ed267eee82f55cb69a1e0527103a222feb186185c58a049
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for openbench-ai 0.5.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openbench_ai-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page