Skip to content
Merged
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: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"packaging>=20.0",
"psutil",
"pyyaml",
"torch>=2.10,<2.12",
"torch==2.9.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Pinning a dependency to an exact version (==2.9.1) in setup.py is generally discouraged for libraries as it can lead to version conflicts for downstream users. If the intent is to avoid versions 2.10 and 2.11 while ensuring compatibility with the 2.9.x series, consider using a version range like torch>=2.9.1,<2.10.0. This provides more flexibility for patch updates and environment resolution while still achieving the goal of excluding the problematic versions.

Suggested change
"torch==2.9.1",
"torch>=2.9.1,<2.10.0",

"huggingface_hub>=0.21.0",
"safetensors>=0.4.3",
],
Expand Down
Loading