ResolvedPlan¶
- class jaxrens.cli.resolve.ResolvedPlan(root, n_total, n_gpu, n_per_gpu, ensemble_params_per_run, n_atoms, topology)[source]¶
Bases:
objectWhat the resolver can decide without materialising anything.
Splitting the resolver in two lets
jaxrens validateanswer the questions people actually ask of it — is the topology legal, do the referenced files exist, does the cell prior fit the cutoff — without loading an energy model, placing walkers, or compiling a kernel. On the Lennard-Jones example that is ~0.4 s of work instead of ~15 s, and the gap is far wider for an MLIP backend.A plan is not enough to run: it deliberately holds no backend, no positions and no energies.
resolve()builds on top of it.- Variables:
root (RootSpec) – The config after interval-unit scaling — every iteration-counted field is in absolute iterations.
n_total (int) – Total replica count implied by the config.
n_gpu (int) – Devices the replicas are spread over.
n_per_gpu (int) – Replicas per device (
n_total // n_gpu).ensemble_params_per_run (list[dict]) – Per-replica ensemble params; empty when
n_total == 1(see_derive_replica_axes).n_atoms (int | None) – Atom count when it is derivable from the config alone, else
None— a walker-set or restart file carries it in the data, and reading that is materialisation.topology (str) – Human-readable one-line description of the dispatch shape.
- Parameters: