load_restart_batched¶
- jaxrens.init.restart.load_restart_batched(path)[source]¶
Multi-replica restart loader: flat-layout walker arrays + nested bundles.
Companion to
load_restart(). Whereload_restartreturns one of three different shapes depending on the checkpoint, this loader is for callers that have already established they are in the multi-replica branch (n_total > 1) and want a uniform(n_total, K, ...)layout with the nested(n_gpu, n_per_gpu)bundle list thatrun_ns_multi_gpuconsumes.Handles both
VmapRuns(1-D) andPmapVmapRuns(2-D) checkpoints; the 1-D case is normalised ton_gpu=1, n_per_gpu=R. ScalarSingleRuncheckpoints raiseValueError— those go throughload_restart+_resolve_init_restart.- Parameters:
- Returns:
A
BatchedRestartcarrying the live-walker arrays in flat(n_total, K, ...)layout plus the(n_gpu, n_per_gpu)nested bundle list.- Raises:
FileNotFoundError – if
pathdoes not exist.ValueError – if the file is a scalar single-run checkpoint, lacks required fields, or has unsupported
log_evidencerank.
- Return type: