Skip to content

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

Open
haosenwang1018 wants to merge 2 commits into
NVIDIA: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 into
NVIDIA:mainfrom
haosenwang1018:fix/relax-torch-version-for-python-313

Conversation

@haosenwang1018

Copy link
Copy Markdown

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>
jethac added a commit to jethac/personaplex that referenced this pull request Jul 24, 2026
Scanned all 29 open NVIDIA/personaplex PRs touched-files against our two
branches. Semantic overlaps: NVIDIA#78 (blanket dependency widening; ours
stays torch-only, rebase offered), NVIDIA#63 (same torch upper-bound removal,
credited), NVIDIA#72 (hard removal of other_mimi vs our flag-gated skip with
stock defaults; complementary, coordination offered). Remaining overlaps
are file-level contention on server.py/offline.py/pyproject across the
macOS/security/UI PR population; rebase-at-filing noted.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.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