nemo_automodel.components.training.rng
nemo_automodel.components.training.rng
Module Contents
Classes
Functions
API
Snapshot of Python, NumPy, Torch, and CUDA RNG states.
Context manager for reproducible RNG states across random, NumPy, and PyTorch.
Save current RNG states.
Restore RNG states on context exit.
RNG manager for reproducible RNG states across random, NumPy, and PyTorch.
Restore RNG states from a saved state.
Parameters:
RNG states as returned by state_dict().
Get current RNG states.
Returns:
RNG states for random, NumPy, and PyTorch.
Get current RNG states.
Returns:
RNG states for random, NumPy, and PyTorch.
Restore RNG states from a saved state.
Parameters:
RNG states as returned by state_dict().
Initialize RNGs for Python, NumPy, and PyTorch (incl. CUDA) with a seed.
Parameters:
Base seed value.
Adjust seed by process rank if True.