jaxrens.cli.restart_validate¶
Strict restart-compatibility validator.
Compares the snapshot YAML written by the original run against the current run’s config and refuses to start when any immutable field differs. Soft differences (move retuning, logging cadence, …) are logged as warnings.
Immutables are fields whose change would silently break the statistical contract or produce a meaningless concatenated trace:
walker-population shape (
run.n_live,run.n_gpu,run.n_per_gpu)prior-mass ladder (
run.n_cull— mixing cull widths within one run breaks the per-dead-point weights)energy function (
backendsubtree, including model file)physics conditions (
ensemble,inter_resubtrees)cell topology (
cellsubtree)
Walker-shape consistency between the checkpoint and the new config
(n_atoms, symbol_map, cell ndim) is not checked here — that
falls out of the resolver’s Mode-D load path and is enforced when JAX
materialises the walker arrays.
This module is only invoked from the restart branch in
jaxrens.cli.cli._cmd_run(); library callers that bypass the CLI
must do their own validation.
Functions
Refuse-or-warn on snapshot/current-config differences. |