Repository navigation
Conversation
Release (non-nightly) wheels pinned triton-xpu with `==`, while the CUDA and ROCm paths already use `~=`. Use `~=` for triton-xpu too so a patch release of triton-xpu can be picked up without respinning torch wheels. Nightly builds are unchanged: they keep the exact `==<version>+git<hash>` pin.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/191941
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 972c21e with merge base 8f85dcc ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Splits the package name from the version so the release branch gets `<pkg>~=<version>` while nightly keeps the exact `<pkg>==<version>+git<hash>` pin — reusing one variable is not possible because PEP 440 disallows a local version segment in a compatible-release clause.
|
PR approved to be merged without human review Whyreason: |
still didn't add the bot to merge rules, but seems to be working :) |
chuanqi129
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the change
|
@pytorchmergebot merge -f "all looks good" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Approvers from one of the following sets are needed:
|
|
@pytorchbot merge |
|
@pytorchmergebot merge -f "all looks good" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Release wheels should take any patch release of the pinned triton minor
(
~=X.Y.Z) instead of a single exact version, so a triton patch fix can shipwithout respinning torch. Nightly is unchanged — it keeps the exact
==<version>+git<shorthash>pin against the nightly index.Every release-path triton pin in the tree, before this PR:
binary_populate_env.sh:78triton~=✅ already==...+gitbinary_populate_env.sh:88triton-rocm~=✅ already==...+gitbinary_populate_env.sh:107triton-xpu==❌==...+gitscripts/install_triton_wheel.sh:19triton/triton-xpu==❌==...+gittritonandtriton-rocmwere already switched to~=in #188251; this PRcovers the two that were missed.
scripts/install_triton_wheel.shThe package name is now held separately from the version. The single
TRITON_VERSION="triton==$(...)"variable was shared by both paths, and~=could not simply be substituted into it: PEP 440 disallows a local version
segment in a compatible-release clause, so the nightly path would have produced
the invalid
triton~=3.8.0+git10f6be36.Rendered specs after the change (verified by running the script with
pipstubbed out):
shellcheckis clean on both files.Note
DockerfiledeclaresARG TRITON_VERSION(fed bydocker-release.yml)but never installs triton with it — triton arrives transitively via
torch— sono change is needed there.