-
Notifications
You must be signed in to change notification settings - Fork 478
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
Invalid version identifier in filenames of nightly builds #7697
Comments
@will-cromar FYI, @wonjoolee95 too since you are fixing the similar issue for our gpu whls |
This is helpful, thanks for the info! I'm able to reproduce:
I think it's better if we do |
Is this issue actually what's causing our build breakage? Why are the TPU builds passing but not the GPU builds? The most recent failures I see there are this:
Even if we can hack our build, this is a client issue. Nobody who updated their The build version we set is defined by some combination of these environment variables: https://github.com/pytorch/xla/blob/master/infra/ansible/config/env.yaml I think xla/infra/ansible/roles/build_srcs/tasks/main.yaml Lines 74 to 89 in 44f88a9
We need to at least change that rename to one of the valid patterns like @fellhorn suggested or copy the pattern used by torch (e.g. You can dry run the ansible workflow with a command like this one:
Anything that gets written to |
@zpcore can you made the rename logic that @will-cromar mentioned above since you are offcall this week? It should just be a one line change but then we need to update README to reflect the new format. |
Hello all As a general comment: When users find errors in pytorch-xla developers fix it in nightly releases and ask the users to test them. This issue is one example of it. |
Thanks for the feedback, I think we are missing to provide example commands to install compatible torch, torch[vision,audio], torch_xla for the cuda. We will make the document update. For now, you can use e.g.,:
In general, this should be compatible. |
Thank you for the answer I could explore your answer now. |
I think The updated lines in the main page
are OK. Now I get the output below with pip list.
|
🐛 Bug
pip 24.1 deprecated legacy version identifiers and no longer allows installing the current nightly wheels directly. Other python package managers, like e.g.
uv
never supported these identifiers and always required renaming the wheel.Additionally the version identifier in the wheel is different than the one in the filename.
To Reproduce
Steps to reproduce the behavior:
uv
pip
Broken:
For others potentially finding this issue and need a workaround:
🟢 Works with
torch_xla@
format🟢 Works with older pip versions
Expected behavior
I would expect the version identifier in the filename to match the one in the wheel and be a valid identifier. This should allow installation with
uv
and modernpip
versions.Potential solutions
Ideas:
torch_xla-2.5.0+nightly20240716-cp311-cp311-linux_x86_64.whl
torch_xla-2.5.0+git41d998d-cp311-cp311-linux_x86_64.whl
with a static URL redirecting to itThe text was updated successfully, but these errors were encountered: