-
Notifications
You must be signed in to change notification settings - Fork 22.8k
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
Pytorch for Python 3.12 not available #110436
Comments
It takes some time to make torch compatible with new versions. Be patient! |
Hi, |
With worker beeing incompatible with python 3.12: pytorch/pytorch#110436 With core having an incompatible dependency with flask 3 python-restx/flask-restx#567
pytorch is not available yet. pytorch/pytorch#110436
With worker beeing incompatible with python 3.12: pytorch/pytorch#110436 With core having an incompatible dependency with flask 3 python-restx/flask-restx#567
Is it possible to have core-functionality released / RC version? Considering Pytorch build from source on Windows is that friendly. |
I tried to build from source, but it failed at the last step:
full logs...
|
Also need Windows py3.12 version for CPU |
The version of Python shipped with Homebrew on macOS upgraded to Python 3.12 recently, which is causing problems for my https://llm.datasette.io tool as some of its plugins depend on PyTorch: |
Bumping priority due to user activity. Expected steps are:
The whole thing is going to take some time but hopefully we can get mostly working binaries to unblock sooner. |
Thank you for your reply. But torch did not announced that yet? this torch version supporting everything on python 3.12? Thanks |
@Imran-ml You can always check https://download.pytorch.org/whl/torch/ and search for the version you are interested in, if its there (3.12 is) then you are good to go, otherwise, you can try building it directly if that fails then head to the forums or the issues to learn what went wrong. hope this helps |
Hey! Closing this as done and you can follow #120233 for torch.compile support specifically. |
Removed check for torch 2.0.0 and 2.1.0 for Python version 3.12.0. pytorch/pytorch#110436
Excluding torch version 2.2.0 with Python 3.12 until fixed. pytorch/pytorch#110436 Also updated py-coverage versions and directory.
Excluding torch version 2.2.0 with Python 3.12 until fixed. pytorch/pytorch#110436 Also updated py-coverage versions and directory.
What about pytorch for Python 3.12, as opposed to torch? When I try to install pytorch, it fails:
$ python --version Edition Windows 10 Pro |
@LyleZiegelmiller it might be useful to see that package's PyPI page:
EDIT: |
Thanks for your response. I'll take your word for it that I should install torch instead of pytorch, but it's odd that it even tries to install pytorch. Consider this:
Notice it doesn't progress anywhere near as far with the installation as it did when I tried to install pytorch. Anyway, thanks for your help. |
@LyleZiegelmiller the Pytorch package was initially created by @soumith in 2017 for the early version (0.1.2) of pytorch, after that IMHO it'd be reasonable to make pytorch Pypi package to point to torch package so users are not confused. |
Sounds like a good idea. |
Can we have |
Ho very good point @kevalmorabia97 |
Python versions are moving so fast. 3.13 is almost out. Given the PyTorch development capabilities, have you guys considered rather than trying to make it compatible for each version. maybe every 5 versions? Like 3.10, 3.15, 3.20 etc.? |
Object your opinion,since python is moving fast, pytorch also needs to catch up . |
IMO the correct long term strategy would be to just use Py_LIMITED_API(https://docs.python.org/3/c-api/stable.html#limited-c-api) macro and make the wheels python version agnostic (after a min version), so the native binaries are decoupled from python versions and dont need to recompiled for each version separately. |
Yes moving faster is what we're going for. See https://github.com/pytorch/rfcs/blob/master/RFC-0038-cpython-support.md for the plan to make sure we can get 3.13 working in a timely manner ! @ankurvdev I'm afraid the limited API doesn't provide nearly enough stuff for PyTorch to work. |
🚀 The feature, motivation and pitch
On Windows, Pytorch installation is not available:
Alternatives
No response
Additional context
No response
cc @ezyang @gchanan @zou3519 @kadeng @malfet @seemethere @albanD
The text was updated successfully, but these errors were encountered: