# Run an end-to-end evaluation with EvalKit

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

---

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

---

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 {#generate}

Follow the [NEU06 example](https://github.com/InternLM/Sage-SciPerception/blob/main/examples/neu06/README.md) 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.

```bash
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 {#score}

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`.

```bash
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 {#datasets}

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 ID | Evaluation task | Additional CPU dependencies |
| --- | --- | --- |
| `scits-neu06` | Sleep staging | — |
| `scits-phu01` | ECG classification | — |
| `llm4mat-jarvis` | Crystal formation energy | — |
| `qm9s-allspectra` | Three-spectrum molecular structure identification | `rdkit`, `myopic-mces`, `pulp` |
| `atom3d-psr` | Protein structure ranking | `scipy` |
| `gue-splice` | Splice-site classification | — |
| `beacon-ncrna` | RNA family classification | — |
| `mpbind-ba1` | Protein interface sites | — |
| `simxrd-ol` | Crystal-system classification | — |


Reference formats and protocol versions are linked from the [evaluation guide](/docs/guides/evaluation/).
