Run A Small Benchmark¶
For the complete executable walkthrough, use 02 Benchmark Models With The CLI in Google Colab.
Goal¶
Run a small benchmark across several presets on one dataset using the CLI/config path. This records presets, data source, seed, overrides, and benchmark artifacts.
When To Use This Instead Of The Python API¶
Use this workflow when you want to compare several presets, keep reproducible run directories, or scale later to more datasets, seeds, or HPO. Use the Python API when you only want one model in a script or notebook.
Input Data Layout¶
The benchmark CLI receives the dataset directory with --dataset; it does not
take separate --train, --val, or --test flags.
Run The Benchmark¶
python -m seahorse bench \
--presets poisson_gmm hawkes_gmm auto_stpp deep_stpp \
--dataset data/my_dataset \
--seeds 1 \
--out runs/examples/small_benchmark \
--n_workers 1
Show CLI command — quick smoke test with training overrides
python -m seahorse bench \
--presets poisson_gmm hawkes_gmm auto_stpp deep_stpp \
--dataset data/my_dataset \
--seeds 1 \
--out runs/examples/small_benchmark \
--n_workers 1 \
--override training.n_epochs=1 training.batch_size=2 data.num_workers=0
The notebook uses additional compact-model overrides so auto_stpp and
deep_stpp finish quickly on CPU.
Inspect Output Directory¶
Common campaign artifacts under runs/examples/small_benchmark/:
Show expected output
runs/examples/small_benchmark/
bench_meta.json
cell_index.json
results.json
report.html
table_test_nll_all.csv
Use cell_index.json to map benchmark cells to saved run directories.
Evaluate Metrics¶
Show CLI command
Common Errors¶
- Missing
train.jsonlorval.jsonl: check the--datasetdirectory. Unknown model preset: check preset spelling.- Out of memory: start with one seed,
--n_workers 1, smaller batch size, or fewer presets. - HPO dependency errors: remove
--tuneunless you intend to run HPO.
Scaling Up¶
Add more presets to --presets, add more seeds with --seeds 1 2 3, or use
--splits_dir for multi-dataset benchmark collections. Use HPO only when you
have selected a tuning dataset.