Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions distributed/rpc/pipeline/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
torch==2.9.0
torchvision==0.7.0
torch==2.10.0
torchvision==0.7.0
numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability
Comment on lines +1 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This automated dependency update introduces several compatibility issues that will likely break the environment setup.

  1. Invalid torch version: torch==2.10.0 is not a valid PyTorch release. It seems to be a typo for 1.10.0, which is the minimum version to fix the reported torch vulnerability.
  2. torch and torchvision incompatibility: torchvision==0.7.0 is only compatible with torch==1.6.0. It is not compatible with torch==1.10.0 or newer versions.
  3. torch and numpy incompatibility: The likely intended torch==1.10.0 requires numpy<1.22.0, which conflicts with the numpy>=1.22.2 pin required to fix the numpy vulnerabilities.

To resolve all these issues, I suggest upgrading torch and torchvision to versions that are compatible with the required numpy version. For example, torch==1.12.0 is compatible with numpy>=1.22.2 and the corresponding torchvision version is 0.13.0.

torch==1.12.0
torchvision==0.13.0
numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability