Skip to content

Non-local versions of torch are only available for linux(/mac) aarch64 #9249

@konstin

Description

@konstin

When checking https://download.pytorch.org/whl/torchvision/ for e.g. 0.24.0 on Python 3.12, the following list of wheels is available for non-local (no +) versions:

torchvision-0.24.0-cp312-cp312-macosx_11_0_arm64.whl
torchvision-0.24.0-cp312-cp312-manylinux_2_28_aarch64.whl
torchvision-0.24.0-cp312-cp312-manylinux_2_28_aarch64.whl
torchvision-0.24.0-cp312-cp312-manylinux_2_28_aarch64.whl
torchvision-0.24.0-cp312-cp312-manylinux_2_28_aarch64.whl
torchvision-0.24.0-cp312-cp312-manylinux_2_28_aarch64.whl

This caused resolution problems for uv users on x86_64 linux (astral-sh/uv#16386), I'm not sure if that's intentional? It also seems that the manylinux_2_28_aarch64 wheels are duplicated.

Another user reported a different problem with https://download.pytorch.org/whl/nightly/cu128 in the uv discord (https://discord.com/channels/1039017663004942429/1039017663512449056/1430596302764249100):

Resolved 176 packages in 22ms
error: Distribution `torchvision==0.25.0.dev20251012 @ registry+https://download.pytorch.org/whl/nightly/cu128` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on Linux (`manylinux_2_35_x86_64`), but `torchvision` (v0.25.0.dev20251012) only has wheels for the following platform: `manylinux_2_28_aarch64`; consider adding your platform to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels

I'm not sure if this is a bug or intentional, I wanted to discuss how we can improve the user experience either on the torch side or on the uv side.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions