Trainset Configuration¶
Source code:
bff/workflows/configs.pybff/workflows/trainset.pybff/workflows/runsims.py
Purpose¶
bff trainset samples parameter vectors, writes a trainset directory, and runs
the corresponding GROMACS training campaign.
Minimal Example¶
mol_resname: ACE
trainset_dir: ./trainset
systems:
- assets: ../01-prepare/colvars/ace-colvars/training/system-000
n_steps: 1000
- assets: ../01-prepare/colvars/ace-colvars/training/system-001
n_steps: 1000
bounds:
charge C2: [0.0, 1.0]
charge O1 O2: [-0.8, -0.3]
implicit_atoms: [C2]
total_charge: -0.8
n_samples: 10
gmx_cmd: gmx
job_scheduler: local
Top-Level Keys¶
mol_resnameResidue name of the parameterized molecule in the GROMACS topology.trainset_dirOutput directory for sampled topologies, metadata, and trajectories.systemsNon-empty list of prepared asset directories plus system-specific MD lengths.boundsMapping from parameter label to lower and upper bounds.implicit_atomsAtom group whose charge is determined by the total-charge constraint.total_chargeTarget total molecular charge used when buildingspecs.yaml.n_samplesNumber of force-field vectors sampled for the campaign.gmx_cmdGROMACS executable.job_schedulerEitherlocalorslurm.dispatchIftrue, launch jobs immediately after staging them.compressIftrue, compress finished simulation outputs.cleanupIftrue, remove temporary files after successful runs.storeWhich trajectory outputs to keep. Defaults to["xtc"].slurmSlurm-only runtime settings.
systems[] Keys¶
assetsDirectory created bybff prepare, for exampletraining/system-000.n_stepsProduction MD length for this prepared system within the sampled campaign.
slurm Keys¶
slurm.max_parallel_jobsMaximum number of submitted jobs.-1means no client-side limit.slurm.sbatchMapping passed to the submission script generator.slurm.setupShell commands executed before the BFF MD job.slurm.teardownShell commands executed after the BFF MD job.
Outputs¶
bff trainset writes:
trainset/specs.yamltrainset/samples.yaml- per-sample job configs
- per-sample modified topologies
- stored trajectories and energy files