Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Quickstart

The local test scripts are end-to-end software checks. The CMS, CLD, and CLIC scripts download small ROOT samples, convert the detector data, build a TFDS split, and train an MLPF model for two CPU steps. Unit tests run separately in CI.

Run one detector path

After installing the main environment, choose one:

# CLD: EDM4hep postprocessing, parquet checks, TFDS, and CPU training
uv run ./scripts/local_test_cld.sh

# CLIC: EDM4hep postprocessing, parquet checks, TFDS, and CPU training
uv run ./scripts/local_test_clic.sh

# CMS: postprocessing, TFDS, CPU training, checkpoint loading, and ONNX check
uv run ./scripts/local_test_cms.sh

Runtime depends on the machine and dependency/download caches. To run the unit suite separately:

PYTHONPATH="$PWD" KERAS_BACKEND=torch uv run python3 -m pytest tests

The CI detector matrix also runs bash scripts/local_test_colliderml.sh, which creates an offline synthetic fixture, converts it, builds TFDS, and trains on CPU. Its validator runs in report mode, so inspect its findings separately from the script exit status. For real ColliderML data and the local MAIA smoke test, see the detector-comparison runbook.

What success looks like

For CLD or CLIC, a successful run produces:

The CMS script also starts a second experiment from the first checkpoint and writes an ONNX comparison under onnx_validation_cms/.

Run only data preparation

To focus on data preparation, fetch and postprocess the two Key4HEP files directly:

./scripts/fetch_test_data_cld.sh

uv run python3 tests/validate_parquet.py \
  --input local_test_data/cld/p8_ee_ttbar_ecm365/reco_p8_ee_ttbar_ecm365_300000.parquet \
  --detector cld \
  --max-events 20 \
  --plots-dir plots/cld

Use scripts/fetch_test_data_clic.sh and --detector clic for the equivalent CLIC path.

Scope of this check

A two-step CPU run checks installation, schema, data loading, and model shapes. Dedicated validation on statistically useful samples establishes convergence, particle reconstruction quality, jet resolution, missing momentum, and inference throughput.