Skip to content

Reproducibility

Ensuring consistent results across runs.

Seeding

Set seeds for all libraries.

from ununennium.utils import seed_everything

seed_everything(42)
# Sets Python, NumPy, PyTorch, CUDA seeds

Deterministic Algorithms

Enable deterministic CUDA operations (slower but reproducible).

torch.use_deterministic_algorithms(True)

Hardware Consistency

Results may still vary slightly between different GPU architectures (e.g., A100 vs V100) due to floating point accumulation order.