load_checkpoint¶
- jaxrens.io.checkpoint.load_checkpoint(path)[source]¶
Load NS state from HDF5 checkpoint.
Handles checkpoints written by any of the three run variants:
run_ns(scalar fields),run_ns_parallel(1-D), andrun_ns_multi_gpu(2-D(G, P)).The returned
log_evidencehas whatever shape was stored. Callstate["log_evidence"].shapeto infer the batch configuration.Dead-array padding is only applied for scalar (single-run) checkpoints where
n_deadis a plain integer. For batched checkpoints the full stored arrays are returned as-is.All array fields — including
rng_key_data— are returned asnumpy.ndarray(notjax.Array) so this function does not import or touch jax. Restart-path callers that need a typed PRNGKeyre-wrap withjax.random.wrap_key_data(...)themselves (seeinit/restart.py); the wrapping must happen there, not here, to keep headless postprocess paths jax-free.