unilab.training.seed¶
Shared training seed contract helpers.
Functions
|
Resolve and apply the configured training seed before runtime construction. |
|
Apply a seed to the runtimes used by training entrypoints. |
|
Derive deterministic subprocess seeds from the effective run seed. |
Resolve the configured seed, preferring the algorithm-level contract. |
Classes
Configured and effective seed metadata for a training run. |
- class unilab.training.seed.TrainingSeedInfo[source]¶
Bases:
objectConfigured and effective seed metadata for a training run.
- Parameters:
- unilab.training.seed.resolve_training_seed(cfg)[source]¶
Resolve the configured seed, preferring the algorithm-level contract.
- Parameters:
cfg (
Any)- Return type:
- unilab.training.seed.derive_worker_seed(base_seed, worker_index=0)[source]¶
Derive deterministic subprocess seeds from the effective run seed.