unilab.training.dp_config.apply_dp_rank_config¶
- unilab.training.dp_config.apply_dp_rank_config(cfg, rank)[source]¶
Apply the per-rank seed and return this rank’s visibility-local device.
Rank 0 keeps the configured seed; rank i>0 trains with
seed + iuntil init broadcast lands in a later stage. The resolved rank-local device is returned instead of being written back into a synthetictraining.devicekey; with rank-local CUDA visibility this is alwayscuda:0.