Description
Currently Python 3.11 isn't fully supported in Pytorch yet, including testing in CI and publishing wheels to PyPI.
Python 3.11 is currently in Release Candidate state and will be released in about two weeks. Major packages like NumPy, Pandas, SciPy and Matplotlib have already uploaded their Python 3.11 wheels to PyPI.
Python 3.11 new features include:
- PEP 657 -- Include Fine-Grained Error Locations in Tracebacks
- PEP 654 -- Exception Groups and except*
- PEP 673 -- Self Type
- PEP 646-- Variadic Generics
- PEP 680-- tomllib: Support for Parsing TOML in the Standard Library
- PEP 675-- Arbitrary Literal String Type
- PEP 655-- Marking individual TypedDict items as required or potentially-missing
- bpo-46752-- Introduce task groups to asyncio
- The Faster Cpython Project is already yielding some exciting results: this version of CPython 3.11 is ~ 19% faster on the geometric mean of the PyPerformance benchmarks, compared to 3.10.0.
Pytorch is an import package in the deep learning stack, so support at release will help speed up Python 3.11 adoption.
It would be great to have full Python 3.11 support in Pytorch by the time Python 3.11.0 gets released, (expected Monday October 6th, 2022). This includes testing in CI and publishing wheels to PyPI.
This issue can be used as a tracking issue. This includes:
- Pytorch builds fully on Python 3.11
- All Pytorch tests pass on Python 3.11
- All CI is run and green on Python 3.11
- Wheels are uploaded to PyPI for at least one Pytorch release
- Manylinux (x86_64)
- Manylinux (aarch64)
- Windows
- macOS
cc @seemethere @malfet @pytorch/pytorch-dev-infra @albanD