Configuration Reference#
All orchestration happens through YAML configuration files. This page documents every configuration option used by run_training.py, run_finetuning.py and run_eval.py, including which keys are required and which ones have defaults.
How defaults work#
Missing keys fall back to the defaults listed below via
.get(...).Modality blocks (
interpolation,extrapolation,sparse,batch_scaling,uncertainty) are disabled if the entire block is omitted.Evaluation switches (
losses,iterative,gradients,timing,compute,compare) default to False if omitted.Required keys must be provided or the run will fail.
Top-level keys#
Key |
Required |
Default |
Used by |
Notes |
|---|---|---|---|---|
|
Yes |
None |
Training, Eval |
Folder name under |
|
Yes |
None |
Training, Eval |
Ordered list of surrogate class names. |
|
Yes |
None |
Training, Eval |
Int or list aligned with |
|
Yes |
None |
Training, Eval |
Int or list aligned with |
|
Yes |
None |
Training, Eval |
Device string or list ( |
|
No |
|
Training |
PyTorch CPU threads per model worker. Must fit the available CPU affinity and, when set, |
|
No |
|
Training |
|
|
No |
|
Training |
Random seed for training. |
|
No |
|
Training, Eval |
Extra data-loading logs. |
|
No |
|
Training |
Enables best-checkpoint saving per model. |
Dataset block#
Key |
Required |
Default |
Used by |
Notes |
|---|---|---|---|---|
|
Yes |
None |
Training, Eval |
Folder inside |
|
No |
|
Training, Eval |
Log10 transform the data. |
|
No |
|
Training, Eval |
Log10 transform the parameters (if present). |
|
No |
|
Training, Eval |
|
|
No |
|
Training, Eval |
Normalize each species independently. |
|
No |
|
Training, Eval |
Lower bound before log transform ( |
|
No |
|
Training |
Down-samples data (smoke tests). |
|
No |
|
Eval |
Used for plotting/log-time axes. |
|
No |
|
Training, Eval |
Load surrogate-specific defaults from dataset configs. |
Modality blocks (optional)#
All modality blocks are disabled if omitted. If enabled: true, the corresponding list/value is required.
Block |
Required |
Default |
Keys when enabled |
|---|---|---|---|
|
No |
disabled |
|
|
No |
disabled |
|
|
No |
disabled |
|
|
No |
disabled |
|
|
No |
disabled |
|
Evaluation switches#
Inference timing uses one unmeasured warm-up pass and five measured passes. CUDA and MPS work is synchronized around each measured forward call. Data-loader iteration is excluded from the timed intervals. Evaluation results record the timing method, repetition count, device, batch size, and number of predicted states.
All switches default to false if omitted.
Key |
Default |
Notes |
|---|---|---|
|
|
Plots training and test losses. |
|
|
Iterative roll-out evaluation. |
|
|
Gradient vs error analysis. |
|
|
Inference timing benchmarks. |
|
|
Memory/parameter count benchmarks. |
|
|
Cross-surrogate comparison plots/tables. |
Iterative block (optional)#
iterative may be a block instead of true. Details in the evaluation guide, section Iterative rollouts.
Key |
Default |
Notes |
|---|---|---|
|
|
|
|
|
|
|
None |
|
|
None |
|
|
None |
Also report errors separately for trajectories that change by at least this much, in the units of the |
|
|
Plotted sample: |
Inference timing (optional)#
run_eval.py uses these settings when timing: true. run_tuning.py uses the endpoint workload for the second objective when multi_objective: true.
Key |
Default |
Notes |
|---|---|---|
|
|
Evaluation. Number of independent cells per request. |
|
|
Evaluation. Measure the blocking physical-unit call from CPU inputs to CPU outputs for each workload. |
|
|
Multi-objective tuning. Reference number of cells per endpoint request. |
|
None |
Maximum autoregressive substep in dataset time units. Evaluation also accepts a mapping from surrogate names to durations. Without a step size CODES queries the surrogate directly. |
Finetune block (optional)#
Read by run_finetuning.py only. Step sizes are in the units of the dataset timesteps, errors in the units of the *_log metrics. Details in the finetuning guide.
Key |
Default |
Notes |
|---|---|---|
|
None |
Required. Smallest and largest step size to train on. |
|
|
Run the finetuned models are saved as. |
|
|
Surrogates to finetune. |
|
|
Seed of the finetuning and of the search. |
|
|
Finetuning epochs. |
|
|
Trajectories per batch. |
|
|
Adam learning rate. |
|
|
Maximum gradient norm, |
|
|
Share of the loss given to the rollout term. |
|
|
Graded rollout steps per batch. |
|
|
|
|
|
Step weight ratio for |
|
|
Above 1 starts the graded steps earlier. |
|
|
Noise on the rollout start state, normalised units. |
|
|
Cap on the steps without gradients before grading. |
|
|
Step sizes the score is taken over. |
|
|
Number of step sizes in the score. |
|
|
Test trajectories used for the score. |
|
None |
Score only trajectories that change by at least this much. |
|
None |
Search: |
Metric options#
Key |
Default |
Notes |
|---|---|---|
|
|
Denominator floor for relative error. |
|
|
Percentile used in error summaries. |
Full example config (defaults)#
This example includes every key with the default behavior applied. Required values are filled with common placeholders.
# Required
training_id: "example_run"
surrogates: ["MultiONet"]
batch_size: [65536]
epochs: [200]
devices: ["cpu"]
# Optional (defaults)
seed: 42
verbose: false
checkpoint: false
dataset:
name: "osu2008"
log10_transform: true
log10_transform_params: true
normalise: "minmax"
normalise_per_species: false
tolerance: null
subset_factor: 1
log_timesteps: false
use_optimal_params: true
# Modalities (disabled unless enabled)
interpolation:
enabled: false
intervals: [2, 3, 4]
extrapolation:
enabled: false
cutoffs: [50, 60, 70]
sparse:
enabled: false
factors: [2, 4, 8]
batch_scaling:
enabled: false
sizes: ["1/16", "1/8", "1/4", "1/2"]
uncertainty:
enabled: false
ensemble_size: 5
# Evaluation switches (default false)
losses: false
iterative: false
gradients: false
timing: false
compute: false
compare: false
# Metric options
relative_error_threshold: 0.0
error_percentile: 99