So you wanna upgrade PyTorch to support a new Python? Follow these steps in order!
Package availability to validate before starting upgrade process :
- Manywheel build: Python version is avalilable in either of these sources:
- Github: https://github.com/python/cpython
- Python ftp here. Please consult the devguide.python.org/versions
- Conda build: Python package is available via anaconda here. The upgrade for manywheel binaries can continue before this requirement is met.
Make an issue to track the progress, for example CUDA issue #56721: Support 11.3. This is especially important as many PyTorch external users are interested in CPython upgrades.
- Follow this PR 1427 with followup PR 1568 for all steps in this section
- Validate that Build manywheel docker images is successful here
- Builder PRs: Follow this PR 1586 and PR 1593
- Pytorch PRs: PR 112882
- Builder PR and Pytorch PR need to be tested togeather. After landing initiate nightly build and make sure nightly build is successful via HUD
- Test-Infra PRs: PR 4768, PR 4843
- After landing it, intiate domain nightly builds and fix all follow up issues. Example vision PR 8137
- At this point we should have complete set of nightly builds for pytorch, vision and audio. Please validate nightly binaries with validate-binaries workflow to make sure smoke tests are passing for Python 3.12