Skip to content

Encourage NumPy dependent projects to upgrade to version >=2.5.0 #20527

@adosar

Description

@adosar

📚 Documentation

As mentioned in the Changelog, version 2.5.0 introduces a robust scheme for seeding NumPy dependent dataloader workers.

As described in the related PR #20369, until this version Lightning was not handling correctly the seeding for NumPy, meaning that all projects using NumPy for controlling randomness (e.g. random transformations for augmentation) are affected (see here and also here).

Since NumPy is commonly used for augmentations in deep learning projects (see also the example from PyTorch docs) and proper control of seeding/randomness is essential for any project, I think it would be beneficial to add a note/warning in the docs to use version 2.5.0 or higher if randomness depends on NumPy.

cc @Borda

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions