Repository navigation
pip: publish the torch 2.13 and 2.14 extras - #16665
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #16520
Problem
mainhas carried the torch 2.13 and 2.14 extras since #12151, but this branch (what gets uploaded to PyPI) never got them. #12152 raised the base ceiling totorch<2.15.0here, and the extras themselves were left out. So on 2026.11.1:The install does not fail. It just ignores the extra and resolves a different torch than the one asked for.
cu130-torch2140behaves the same way.Changes
pyproject.toml: adds the 12 extras frommain, each placed after its 2.12.1 sibling:cu126/cu130xonlytorch/-torch/-ampere-torchx2130/2140. The xformers wheel URLs are written asxformers==0.0.35with the merged platform marker, exactly like the existing torch 2.12 extras on this branch, so there are no direct references for PyPI to reject. Nothing else changes: the base dependencies and all 167 existing extras are byte-identical.tests/python/test_pyproject_pypi_installable.py: a guard that everycu*-torch<T>extra_auto_install.pycan print exists here, withcu126andcu130required for torch 2.12 and newer. It fails on the currentpiphead (missing2130,2140) and passes with this change, so the next torch bump onmaincannot silently miss the release again.Verification
Requires-Distlines have the same shape as the publishedcu130-torch2121ones.uv pip compile(Python 3.12, Linux x86_64 and Windows x86_64) resolves each new extra with no warnings:cu126-torch2130,cu126-ampere-torch21302.13.0+cu126cu130-torch2130,cu130-ampere-torch21302.13.0+cu130cu126-torch2140,cu126-ampere-torch21402.14.0+cu126cu130-torch2140,cu130-ampere-torch21402.14.0+cu130cu126-torch2121,cu130-torch2121(control)2.12.1+cu126/2.12.1+cu130python -m pytest tests/python/test_pyproject_pypi_installable.py: 9 passed (the new test fails on the currentpiphead).Effect on users
This only adds extra names. Plain
pip install unsloth, every existing extra, Studio, Desktop and the notebooks resolve exactly as before. People who ask forunsloth[cu126-torch2130]/unsloth[cu130-torch2140]and so on now get the torch build they asked for instead of a warning.