Skip to content

fix: remove torch upper bound to support Python 3.13#63

Open
haosenwang1018 wants to merge 2 commits intoNVIDIA:mainfrom
haosenwang1018:fix/relax-torch-version-for-python-313
Open

fix: remove torch upper bound to support Python 3.13#63
haosenwang1018 wants to merge 2 commits intoNVIDIA:mainfrom
haosenwang1018:fix/relax-torch-version-for-python-313

Conversation

@haosenwang1018
Copy link

Problem

pyproject.toml specifies torch >= 2.2.0, < 2.5, but torch versions before 2.5 only have wheels for Python 3.10-3.12. Python 3.13 users cannot install the package.

Fix

Remove the < 2.5 upper bound. PyTorch maintains backward compatibility within major versions, and torch >= 2.5 adds Python 3.13 support.

Fixes #22

The hf_hub_download call for config.json (used only to increment
the download counter) fails when HF_HUB_OFFLINE=1. Guard the call
with an environment variable check.

Fixes NVIDIA#54

Signed-off-by: haosenwang1018 <haosenwang1018@users.noreply.github.com>
torch < 2.5 only has wheels for Python 3.10-3.12. Python 3.13
users cannot install the package. Remove the upper bound since
torch >= 2.5 maintains backward compatibility.

Fixes NVIDIA#22

Signed-off-by: haosenwang1018 <haosenwang1018@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Current PyTorch dependencies don't work with CPython 3.13

1 participant