Evaluate Snapshots Configuration¶
Source code:
bff/workflows/evaluate_snapshots/config.pybff/workflows/evaluate_snapshots/main.py
Purpose¶
bff evaluate-snapshots runs staged CP2K snapshot jobs. The staged assets
normally come from bff prepare-assets.
Run Example¶
output_dir: ./snapshots
job_scheduler: local
cp2k_cmd: cp2k.psmp
single_atoms: true
snapshot_md_steps: 100
train_fraction: 0.8
seed: 2026
systems:
- assets: ../02-assets/reference/system-000
The staged snapshot md.inp uses GFN1-xTB by default. Per-system CP2K input
overrides are optional:
systems:
- assets: ../02-assets/reference/system-000
md: ../inputs/reference-inputs/md-0.inp
sp: ../inputs/reference-inputs/revpbe0-sp.inp
Top-Level Keys¶
output_dirOutput directory written bybff evaluate-snapshots.systemsNon-empty list of systems to evaluate.job_schedulerEitherlocalorslurm.cp2k_cmdCP2K executable used for local execution.single_atomsWhether to also run isolated single-atom reference jobs. Defaults totrue.snapshot_md_stepsOptional override for the staged short GFN1-xTB MD length. When CP2K older than 2025 is detected, BFF removes theGFN_TYPEkeyword from that staged xTB input for compatibility.train_fractionFraction of collected snapshot frames written intotrain.extxyz.seedDeterministic shuffle seed used before the train/validation split.cleanup_snapshotsRemove collected snapshot run directories and the stagedsingle-atoms/run tree after successful collection.collection_wait_secondsGrace period for delayedsp.extxyzfiles on shared filesystems.slurmRequired whenjob_scheduler: slurm.
systems[] Keys¶
assetsPath to one staged reference system directory, usuallyreference/system-XXX/written bybff prepare-assets.mdOptional CP2K MD input override for this system.spOptional CP2K single-point input override for this system.
Outputs¶
bff evaluate-snapshots writes or refreshes one directory per system under
output_dir, for example snapshots/system-000/, containing:
snapshots/snapshot-XXXX/train.extxyzvalid.extxyz- optional
single-atoms.yamlwith atomic-number keys
Reference trajectories for bff analyze are user-provided. A convenient
convention is to place them under 03-reference/trajectories/system-*/
alongside matching system.top and system.gro files.