# Reproducible evaluation across nine benchmarks

> Frozen inputs, stable prediction logs, and dataset-specific CPU scoring.

---

LLMS index: [llms.txt](/Sage-SciPerception/llms.txt)

---

EvalKit began with SciTS NEU06 sleep staging. It now exposes nine dataset IDs through a single `scip-eval score` command. Each dataset implementation owns its references, answer rules, and metrics. The scorer aligns reference IDs with saved JSONL predictions, then writes per-item results and an aggregate summary.

## Verify the reference set and keep parsing explicit

For SciTS NEU06, the loader compares the number of references and the SHA-256 of ordered `[eval_id, label]` pairs with the frozen protocol. Other suites record fingerprints or validate their own reference artifacts. These checks and metadata identify what was scored even when different suites use different file formats.

The shared `answer_span` takes the text after the final `</think>`, selects the last complete `<answer>…</answer>` span when present, and strips an enclosing Markdown fence. Each dataset still defines what it considers a valid prediction and how to score it. NEU06, for example, can report malformed output separately from the stage labels it extracted.

## Bind each log to a generation run

The generation loop binds a `run_id` to ordered inputs, model and service identity, and decoding settings. A sidecar records the identity, and each append carries the ID. With the same identity, resuming skips IDs already written. Changing settings requires a new file. Existing prediction logs can be scored without a `run_id`. For repeated `eval_id` records the scorer uses the last entry.

By default the scorer includes every frozen ID and treats missing predictions as empty answers. The `--only-responded` mode measures a subset and records that choice in the result.

## Keep CPU dependencies local to each metric

The core package is standard-library first. ATOM3D PSR uses `scipy` for ranking, while QM9S molecular scoring uses `rdkit`, `myopic-mces`, and `pulp`. The root CPU CI job installs the optional dependencies, runs the root, EvalKit, and TrainKit suites, and fails if any test is skipped.

The [evaluation tutorial](/book/04-end-to-end-eval/) walks through NEU06 and lists all nine IDs. [Read the CI workflow](https://github.com/InternLM/Sage-SciPerception/blob/main/.github/workflows/ci.yml).
