run_sharded_from_config¶
- jaxrens.cli.run.run_sharded_from_config(resolved, *, writer_mode='w')[source]¶
Execute a sharded-single NS dispatch from a sharded
ResolvedConfig.One logical NS run with its
n_livewalker population sharded acrossshard_n_gpuGPUs. Sibling ofrun_from_config()(one population on one device) andrun_multi_gpu_from_config()(G*P independent populations).The resolver populates
resolved.batcherwith aShardedSingleRun(n_gpu=...)and keeps the init arrays in the flat(K, ...)layout —init_ns_sharded(insiderun_ns_sharded) does the reshape and per-device placement.Burn-in (initial_walk) runs through
ShardedSingleRunnatively — adaptation goes throughbuild_adapt_step()(which dispatches toadjust_step_size_sharded) and the walking step shard_maps with per-shard distinct keys. After burn-in the sharded NSState’s(G, K/G, ...)population is flattened back to(K, ...)for the post-burn-in neighbor-count refresh and for re-init byrun_ns_sharded(which re-shards viainit_ns_sharded).