Repository navigation
Studio: torch 2.13 for new Linux aarch64 cu130 Python 3.13 installs, existing installs keep their torch #13380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6142,9 +6142,7 @@ _cu130_torch213_route() { | |
| _pypi_unsloth_admits_torch "2.13.0" | ||
| } | ||
|
|
||
| # "yes" when a NEW install here can use the 2.13/2.14 kernel wheels: a GIL-enabled interpreter (torch | ||
| # 2.13 has no cp313t wheel) and glibc 2.35+ (the floor the wheels are built and checked against). | ||
| # Only gates the new-install choice; an existing 2.13/2.14 is kept regardless. | ||
| # New installs only: torch 2.13 has no cp313t wheel, and the kernel wheels need glibc 2.35. | ||
| _cu130_torch213_host_ok() { | ||
| _cth_gil=$("$VENV_DIR/bin/python" -c "import sysconfig; print('gil-disabled' if sysconfig.get_config_var('Py_GIL_DISABLED') else 'gil-enabled')" 2>/dev/null || echo "") | ||
| [ "$_cth_gil" = "gil-enabled" ] || { echo "no"; return; } | ||
|
|
@@ -6157,7 +6155,6 @@ _cu130_torch213_host_ok() { | |
| _cu130_torch213_platform() { | ||
| [ "$(_torch_index_url_leaf "$1")" = "cu130" ] || { echo "no"; return; } | ||
| case "$OS" in linux|wsl) ;; *) echo "no"; return ;; esac | ||
| # aarch64 too: prebuilt-wheels-cu13 carries linux_aarch64 builds (Grace, GB10), and upstream's stop at torch 2.10. | ||
| case "$_ARCH" in x86_64|amd64|aarch64|arm64) ;; *) echo "no"; return ;; esac | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 22a760b. The new-install choice now probes Py_GIL_DISABLED and requires a GIL-enabled interpreter; torch 2.13 has no cp313t wheel on any platform, so a free-threaded 3.13 stays on the default range. |
||
| _ctr_py=$("$VENV_DIR/bin/python" -c "import sys; print('%d.%d' % sys.version_info[:2])" 2>/dev/null || echo "") | ||
| [ "$_ctr_py" = "3.13" ] && echo "yes" || echo "no" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On supported aarch64 hosts with glibc 2.28–2.34, this enables torch 2.13 even though the linux_aarch64 kernel wheels are built on Ubuntu 22.04 with a documented practical glibc 2.35 floor (
.github/scripts/prebuilt_wheels.py:84-89) and are tagged generically enough for pip to accept them. Their import verification then rejects them; for a Mamba model the fallback source build lacks the workflow-only C++20 patch required by torch 2.13 andensure_ssm_runtimeraises, whereas the former torch 2.11 route could build that source. Either retain the old route below glibc 2.35 or publish wheels carrying a compatible manylinux floor.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 22a760b. The new-install choice now also needs glibc 2.35 or newer (read the same way as the uv installer check; musl or an unreadable libc answers no), on x86_64 and aarch64 alike since both builds share that floor. Below it a fresh install stays on the default range. The preservation window is unchanged, so an existing 2.13/2.14 is still kept.