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
2 changes: 2 additions & 0 deletions examples/textual_inversion/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ transformers>=4.25.1
ftfy
tensorboard
Jinja2
torch>=2.10.0 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The version specified for torch (>=2.10.0) appears to be incorrect as this version does not exist on PyPI. This will cause the installation to fail. Based on the Snyk vulnerability report IDs in the PR description (e.g., SNYK-PYTHON-TORCH-10332644), the vulnerability is fixed in torch version 2.1.0. Please update the requirement to a valid and correct version.

torch>=2.1.0 # not directly required, pinned by Snyk to avoid a vulnerability

wheel>=0.46.2 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

There are two issues with the dependencies:

  1. (Critical) The wheel version >=0.46.2 is invalid as it doesn't exist on PyPI (the latest is 0.43.0). This will break the installation.
  2. (Medium) The safetensors package is a missing dependency. It's required by transformers and used directly in textual_inversion.py. It should be added to prevent runtime errors.

Please correct the wheel version and add safetensors.

wheel>=0.43.0 # not directly required, pinned by Snyk to avoid a vulnerability
safetensors