-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Python 3.11 #86566
Comments
Nightly builds of python-3.11 wheels is already published to https://download.pytorch.org/whl/nightly but CI can be tricky, in particular around JIT support (which probably needs a separate task) |
I feel like the main blocker for enabling more support is that (at the time where this was added at least) conda didn't had 3.11 support. |
@dagitses suggests that it's probably OK to disable JIT tests and have a followup issue for supporting JIT in 3.11. |
cc @davidberard98 there will most likely be some non-trivial work needed for JIT to support this that should be planned for ahead of time. |
Awesome! Do you know if the Python 3.11 wheels will be deployed with the v1.13 release? |
conda now has 3.11 support if that is still a blocker! |
Yeah! Python 3.11 support please. It should be the default. |
conda-forge introduces a lot of instability to our CI pipelines so adding conda support should be gated on the default channels having python 3.11 support not conda-forge |
What is the status of this? Python 3.11 was released ~two weeks ago now so it would be great to have torch wheels available relatively soon for downstream projects to work with. I would be happy with nightly versions too if a stable release will take some more time, although the current binaries are exclusively linux x86: https://download.pytorch.org/whl/nightly/torch/. |
how do I install these? https://conda.anaconda.org/pytorch-nightly/osx-arm64 I only see python 3.10 builds there. conda couldn't find any 3.11-compatible pytorch build in the
|
|
okay, so Linux x86 only? thanks for the link. |
Pytorch 2.0.1 should support both Python 3.11 and torch.compile. |
@ancestor-mithril Interesting, maybe the release got messed up or something? I'm using torch 2.0.1, python 3.11.2 on an M1 Mac. If you download the wheel from PyPi (I'm using OSX- arm64) and inspect the source there directly, you'll see the old check in place there, too. Should I open a new ticket for this? There may be other things missing from the release, as well. Here's my env info:
Trying to use torch.compile leads to this error:
|
Pytorch-2.0.1 does not support |
@malfet Just tested the most recent nightly build (
|
Bypass this on Windows by adding
|
@d-kleine yes, neither cpp compile backend nor triton currently work on Windows, though this is not specific to 3.11, so feel free to open a separate issue (unless one already exits, if that's the case, please ping me on it) |
@d-kleine yes it will, thank you |
Will python 3.11 be supported for torch
|
for pytorch < 2, ref. pytorch/pytorch#86566
Probably about the time 3.12 comes out. /shrug. |
It's been almost a year Python 3.11 was released and PyTorch still doesn't support it in stable release :(. Any idea, when the next stable release with Python 3.11 support will be available? |
I am wondering that too, since I consider Pytorch's stable releases to be a heuristic for which python version I should be using. :D But other than that, for all the sweet and promised gains. |
pytorch 2.1.0 rc1 is coming. See tracker in issues. Release on october- end of the year |
3.11 support will be part of 2.1.0 stable release. Here are some future key dates FYI:
So it's Oct 4th. |
for pytorch < 2, ref. pytorch/pytorch#86566
Just in time for things to break with the new Python 3.12 release ;) #114893 |
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:
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:
cc @seemethere @malfet @pytorch/pytorch-dev-infra @albanD
The text was updated successfully, but these errors were encountered: