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_live walker population sharded across shard_n_gpu GPUs. Sibling of run_from_config() (one population on one device) and run_multi_gpu_from_config() (G*P independent populations).

The resolver populates resolved.batcher with a ShardedSingleRun(n_gpu=...) and keeps the init arrays in the flat (K, ...) layout — init_ns_sharded (inside run_ns_sharded) does the reshape and per-device placement.

Burn-in (initial_walk) runs through ShardedSingleRun natively — adaptation goes through build_adapt_step() (which dispatches to adjust_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 by run_ns_sharded (which re-shards via init_ns_sharded).

Parameters:

writer_mode (str)

Return type:

dict