Skip to content

[CI] Build Python 3.10 release wheels against PyTorch 2.14 - #4706

Merged
theap06 merged 1 commit into
pytorch:mainfrom
theap06:ci/v015-py310-wheels
Nov 8, 2026
Merged

theap06 merged 1 commit into
pytorch:mainfrom
theap06:ci/v015-py310-wheels

Conversation

@theap06

@theap06 theap06 commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Description

PyTorch 2.15.0 requires Python 3.11+ and ships no cp310 wheels, so every Python 3.10 job in the v0.15.0 release dry run fails with No matching distribution found for torch==2.15.0, and the release workflow only publishes when every build passes. This keeps Python 3.10 users on the latest TorchRL by building their wheels against PyTorch 2.14.1.

  • The four build-wheels-*.yml workflows take a python-versions input, defaulting to 3.11 to 3.14. Push-triggered wheel builds no longer try 3.10.
  • release.yml builds 3.11 to 3.14 against pytorch_release as before, and adds one Python 3.10 build job per platform against a new pytorch_release_py310 input (default release/2.14, which pins torch 2.14.1 in test-infra and still lists Python 3.10). The builds stay sequential, and Collect Wheels waits for all eight.
  • README: notes that the Python 3.10 wheels are built against PyTorch 2.14, and uses cu132 in the CUDA wheel example, since the torch 2.15 matrix has no cu128 build.

requires-python stays >=3.10 and the wheels keep torch>=2.11, so source builds on Python 3.10 with older torch keep working. PR CI does not run these workflows; they are validated by the v0.15.0 release dry run after merge.

Motivation and Context

Unblocks the v0.15.0 release without dropping Python 3.10 users to 0.14.1.

  • I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation (update in the documentation)

Checklist

  • I have read the CONTRIBUTION guide (required)
  • My change requires a change to the documentation.
  • I have updated the tests accordingly (required for a bug fix or a new feature).
  • I have updated the documentation accordingly.

PyTorch 2.15 requires Python 3.11+, so the Python 3.10 wheel builds fail with
'No matching distribution found for torch==2.15.0' and block the release.

- The wheel workflows take a python-versions input, defaulting to 3.11-3.14.
- release.yml builds 3.11-3.14 against pytorch_release and adds one Python 3.10
  job per platform against the new pytorch_release_py310 input
  (default release/2.14, torch 2.14.1). Builds stay sequential and Collect
  Wheels waits for all eight.
- README: note the 3.10 wheels and use cu132 in the CUDA example, since the
  torch 2.15 matrix has no cu128 build.
@pytorch-bot

pytorch-bot Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/4706

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 3 Pending

As of commit e7fd5a4 with merge base 003c5f4 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 8, 2026
@github-actions github-actions Bot added CI Has to do with CI setup (e.g. wheels & builds, tests...) Documentation Improvements or additions to documentation labels Nov 8, 2026
@theap06
theap06 marked this pull request as ready for review November 8, 2026 03:32
@theap06
theap06 merged commit a711ef9 into pytorch:main Nov 8, 2026
153 of 156 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Has to do with CI setup (e.g. wheels & builds, tests...) CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant