Skip to content
Closed
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
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = [
"torch==2.7.0",
"torchvision==0.22.0",
"torch>=2.7.0",
Copy link

Choose a reason for hiding this comment

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

Bug: Unpinned torch conflicts with torch2.7-specific gptqmodel wheel

Unpinning torch to >=2.7.0 creates a version mismatch with the gptqmodel==4.0.0.dev0+cu126torch2.7 dependency (in the gptq extra). The gptqmodel wheel's version string explicitly indicates it was built for torch 2.7 (torch2.7 suffix), but users may now install torch 2.8+ while getting a gptqmodel binary compiled against torch 2.7's ABI. This can cause runtime errors or crashes when using GPTQ functionality due to binary incompatibility between the torch version and the gptqmodel extension.

Fix in Cursor Fix in Web

"torchvision>=0.22.0",
"torchmetrics[image]==1.7.4",
"requests>=2.31.0",
"transformers",
Expand Down Expand Up @@ -128,7 +128,7 @@ dependencies = [
"ctranslate2==4.6.0",
"whisper-s2t==1.3.1",
"hqq==0.2.7.post1",
"torchao==0.12.0", #ref: https://github.com/pytorch/ao/issues/2919#issue-3375688762
"torchao>=0.12.0", #ref: https://github.com/pytorch/ao/issues/2919#issue-3375688762
"llmcompressor",
"gliner; python_version >= '3.10'",
"piq",
Expand All @@ -142,7 +142,7 @@ dependencies = [

[project.optional-dependencies]
stable-fast = [
"xformers==0.0.30",
"xformers>=0.0.30",
"stable-fast-pruna==1.0.7",
]
# dependencies are added here because the wheels aren't bundling them
Expand All @@ -156,7 +156,7 @@ gptq = [
"gptqmodel; sys_platform == 'darwin' and platform_machine == 'arm64'",
]
full = [
"xformers==0.0.30",
"xformers>=0.0.30",
"stable-fast-pruna==1.0.7",
]
dev = [
Expand Down