A modular, open-source LLM experiment execution, evaluation, statistical comparison, and benchmarking platform.
pip install openbench-ai Copy PIP instructions
OpenBench AI is a Python toolkit for running reproducible language model benchmarks. It evaluates model responses against standardized JSONL datasets, repeats experiments, compares models with appropriate statistics, collects blinded human preferences, and audits dataset and run quality. The core installation has no external runtime dependencies, and nothing requires a paid API.
Note: OpenBench AI is maintained by its project owner, and its initial development was AI-assisted. Contributions, bug reports, and new datasets are welcome!
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:
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:
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.
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.
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_ # a repeat group openbench runs verify grp_ --quality-checks openbench runs resume grp_ # finish an interrupted group 3. Compare stored results (no provider calls) openbench analyze --runs grp_ run_ --baseline run_ --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_ --output results/variability.json # one repeat group: variability report 4. Collect blinded human preferences openbench preferences create --runs run_ run_ --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 A complete runnable walkthrough using the mock provider is in examples/v040_workflow.py.
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.
The kind (score_kind) selects the statistical procedure in analyze. Metric scores and versions are unchanged in v0.4.0.
Both files in this release have provenance metadata.
dev huggingface config metrics semantic stats-ref all
llm evaluation benchmarking ai metrics reproducibility experiments statistics human-preference
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




