From 2ba0cb17d5b2087520d7e32c5bb9153fcabcb18d Mon Sep 17 00:00:00 2001 From: "Antonios P. Sarikas" Date: Thu, 23 Oct 2025 18:07:29 +0300 Subject: [PATCH] docs(trainer): add note for NumPy randomness --- docs/source-pytorch/common/trainer.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/source-pytorch/common/trainer.rst b/docs/source-pytorch/common/trainer.rst index 369a33514c7e5..80d68b83534b4 100644 --- a/docs/source-pytorch/common/trainer.rst +++ b/docs/source-pytorch/common/trainer.rst @@ -165,6 +165,11 @@ By setting ``workers=True`` in :func:`~lightning.pytorch.seed_everything`, Light unique seeds across all dataloader workers and processes for :mod:`torch`, :mod:`numpy` and stdlib :mod:`random` number generators. When turned on, it ensures that e.g. data augmentations are not repeated across workers. +.. note:: + + If your project depends on NumPy for randomness (e.g. for data + augmentation), it is recommended to use version 2.5.0 or higher. + ------- .. _trainer_flags: