Skip to content

scip-eval CLI

Command-line flags, output schemas, and Python scoring entry points for EvalKit.

scip-eval is the console entry point of EvalKit. Scoring runs on CPU with Python 3.12+ and uv, and needs neither torch, transformers, nor network access.

Global usage

uv run --project evalkit scip-eval --version
uv run --project evalkit scip-eval score --task <TASK> --references <PATH> --responses <PATH> [--out-dir <PATH>] [--only-responded] [--workers <N>]

--dataset is accepted as an alias for --task. The current package version is 0.1.0.

scip-eval score options

OptionRequiredDescription
--task, --datasetYesRegistered dataset task ID from evalkit.datasets.DATASETS: atom3d-psr, beacon-ncrna, gue-splice, llm4mat-jarvis, mpbind-ba1, qm9s-allspectra, scits-neu06, scits-phu01, simxrd-ol. See Registered datasets.
--referencesYesPath to the frozen dataset reference file or directory (e.g., SciTS meta_data.jsonl).
--responsesYesPath to predictions JSONL containing eval_id, content, and optional status / run_id.
--out-dirNoDirectory where summary.json and scores.jsonl are written.
--only-respondedNoScore only frozen IDs that appear in --responses, marking scope as a subset. By default all frozen IDs are scored, with absent IDs treated as empty content.
--workersNoWorker processes for datasets with parallel metrics such as qm9s-allspectra (default: 1).

Most datasets require only the Python 3.12 standard library on CPU; optional runtime extras apply to atom3d-psr (scipy, with lmdb only for raw LMDB input extraction) and qm9s-allspectra (rdkit, myopic-mces, pulp). The command prints summary.json to stdout.

Output files

When --out-dir is given, evalkit.score.write_outputs writes two files. Envelope fields (task, dataset, protocol, source, references_sha256, scope, responses, run) are shared, while metric keys and per-item fields follow the selected dataset protocol (for scits-neu06, shown below):

  • summary.json: contains task, dataset, protocol, source, classes, references_sha256, rules, scope, responses (path, unique_ids, superseded_records, unexpected_ids), run (bound, run_id, unbound_records), rows, macro_f1, accuracy, correct, invalid, missing, statuses, and per_class.
  • scores.jsonl: one JSON object per scored item with eval_id, reference, prediction, valid, correct, and status.

Python API

from pathlib import Path
from evalkit.score import score_files, write_outputs

result = score_files(
    "scits-neu06",
    Path("/path/to/SciTS/meta_data.jsonl"),
    Path("/path/to/run/responses.jsonl"),
    only_responded=False,
    workers=1,
)
write_outputs(result, Path("/path/to/run/score"))

evalkit.contract.read_predictions enforces run consistency: if a JSONL file mixes records from multiple run_id values, or mixes bound and unbound records, scoring fails instead of aggregating across runs.

Training preflight CLI

TrainKit also exposes scip-train preflight for measuring token counts, XTuner packing, and collator alignment on CPU before training (scip-train neu06-preflight remains available as an alias). See the Training guide.