Metadata-Version: 2.5
Name: hermeval
Version: 0.7.0
Summary: Hermetic LLM evaluation: pinned engines, models, prompts and settings
Project-URL: Homepage, https://github.com/bharatsikka/hermeval
Project-URL: Documentation, https://github.com/bharatsikka/hermeval/tree/main/docs
Project-URL: Source, https://github.com/bharatsikka/hermeval
Project-URL: Issues, https://github.com/bharatsikka/hermeval/issues
Project-URL: Changelog, https://github.com/bharatsikka/hermeval/blob/main/CHANGELOG.md
Author: Bharat Sikka
Maintainer-email: Bharat Sikka <contact.hermeval@proton.me>
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: benchmark,evaluation,llm,nix,reproducibility
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.12
Requires-Dist: jinja2
Requires-Dist: numpy
Requires-Dist: pyyaml
Requires-Dist: scipy
Provides-Extra: hub
Requires-Dist: pyarrow==23.0.1; extra == 'hub'
Provides-Extra: reference
Requires-Dist: torch>=2.6; extra == 'reference'
Requires-Dist: transformers>=5; extra == 'reference'
Provides-Extra: ui
Requires-Dist: shiny>=1.5; extra == 'ui'
Description-Content-Type: text/markdown

# hermeval

**Hermetic LLM evaluation.** hermeval runs a question set against an LLM
inference engine (llama.cpp, Ollama, vLLM, SGLang, a transformers reference
engine, or a hosted API) and records everything the score depends on: the
weights, the engine and its version, the dataset, the prompt as the model
receives it, the sampling settings, the hardware and the software
environment. Where the engine reports them, hermeval checks these against
the engine before the first question and refuses to run on a mismatch;
then it compares runs answer by answer. `hermeval suite core` runs GSM8K,
ARC-Challenge and MMLU from lm-evaluation-harness's own task files, and on
the CPU reference engine gives the harness's verdict on every question
([the parity results](https://github.com/bharatsikka/hermeval/blob/main/experiments/parity-core/RESULTS.md)).

```sh
pip install hermeval            # Python 3.12+; bring your own engine
pip install "hermeval[ui]"      # with the browser UI
```

**pip or Nix?** Both run every check: the weights, the dataset and the
rendered prompt are hashed and verified however hermeval is installed, so a
pip install reaches *verified*. *Hermetic* also needs hermeval's own
environment pinned (its Python and libraries), which today only its Nix
flake does: `nix run github:bharatsikka/hermeval`. See
[Installing hermeval](https://github.com/bharatsikka/hermeval/blob/main/docs/install.md#pip-or-nix).

```sh
hermeval guide                  # the steps, in a few minutes
hermeval check run.toml         # the checklist, before any question
hermeval run run.toml --out results
hermeval report results/<baseline> results/<other>
```

The quick start, the spec format and every guide are in the repository:
https://github.com/bharatsikka/hermeval.

Status: beta. The spec format and output files may still change before
1.0; every change is in the
[changelog](https://github.com/bharatsikka/hermeval/blob/main/CHANGELOG.md).
Licensed under the Apache License 2.0.
