Skip to content

Run an end-to-end evaluation with EvalKit

Generate SciTS NEU06 predictions, resume a run, and score the saved answers on CPU.

A SciTS NEU06 run goes from raw EEG to REVE-base features, then through the released EEG projector to GLM completions. EvalKit joins saved answers to a frozen reference set and scores them on CPU. Generation and scoring use the same eval_id, prefixed with NEU06: for this dataset.

Generate a prediction file

Follow the NEU06 example to install the client dependencies and download the pinned SciTS, REVE, position table, GLM, and projector inputs. Start the vLLM service using the example’s arguments. Then run these commands from the repository root with paths pointing to your downloads. Feature extraction runs on CPU. For an initial smoke run, add --limit 16 and use a separate --out path.

SCITS=./SciTS
RUN=./neu06-run
REVE=/path/to/reve-base
POSITIONS=/path/to/reve-positions/positions.json
GLM=/path/to/matching-base-model
PROJECTOR=./checkpoints/projectors/glm-5.3-flash/eeg/neu06

python examples/neu06/reve_features.py --scits "$SCITS" --reve "$REVE" \
  --positions "$POSITIONS" --out "$RUN/features"
python examples/neu06/generate_neu06.py --features "$RUN/features" \
  --projector "$PROJECTOR" --projector-code modeling_projector.py \
  --base-model "$GLM" --api-base http://127.0.0.1:8000/v1 \
  --model sage-sciperception --out "$RUN/responses.jsonl"

The generator saves a run_id on each response and the corresponding run identity in responses.jsonl.run.json. Run the same command against the same file to skip IDs already written. A different identity, including changed ordered inputs or decoding settings, needs a new output path. Keep a single writer per file.

Score the saved answers on CPU

Use Python 3.12 or later and uv. From the public repository root, fetch the pinned reference metadata and pass it with the response log to scip-eval.

SCITS=./SciTS
RUN=./neu06-run

uvx --from huggingface-hub hf download OpenTSLab/SciTS meta_data.jsonl \
  --repo-type dataset --revision 6ce690e904898cc8fd9014ea2e5bebdfa749c1d2 \
  --local-dir "$SCITS"

uv run --project evalkit scip-eval score --task scits-neu06 \
  --references "$SCITS/meta_data.jsonl" --responses "$RUN/responses.jsonl" \
  --out-dir "$RUN/score"

The NEU06 loader checks the count and SHA-256 of its frozen reference pairs. Scores include macro-F1 and accuracy over Wake, N1, N2, N3, and REM. Read the aggregate summary.json and per-item scores.jsonl in the output directory. The default scores the whole reference set, treating missing predictions as empty. Add --only-responded to score the smoke run on just the IDs with response records. The output marks this as a subset.

Choose another dataset

Use --dataset as an alias for --task. Pass --workers to set the number of processes for metrics that support parallel scoring, such as QM9S. Install any additional packages into the scoring environment for the corresponding task.

Dataset IDEvaluation taskAdditional CPU dependencies
scits-neu06Sleep staging—
scits-phu01ECG classification—
llm4mat-jarvisCrystal formation energy—
qm9s-allspectraThree-spectrum molecular structure identificationrdkit, myopic-mces, pulp
atom3d-psrProtein structure rankingscipy
gue-spliceSplice-site classification—
beacon-ncrnaRNA family classification—
mpbind-ba1Protein interface sites—
simxrd-olCrystal-system classification—

Reference formats and protocol versions are linked from the evaluation guide.