Is there no usable PyTorch for Python 3.12?

#69
by xiaotianyu2025 - opened

Why is there no available torch for Python 3.12 as recommended by the official guidelines?
ERROR:No matching distribution found for torch

~$ pip install torch==2.6.0 --index-url https://download.pytorch.org/whl/cu120
Looking in indexes: https://download.pytorch.org/whl/cu120
ERROR: Could not find a version that satisfies the requirement torch==2.6.0 (from versions: none)
ERROR: No matching distribution found for torch==2.6.0
~$ pip install torch --index-url https://download.pytorch.org/whl/cu120
Looking in indexes: https://download.pytorch.org/whl/cu120
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

Which dependencies do I need to download, and what versions are they?

Why would you use torch 2.6.0 when there is 2.8.0, as offered on the official PyTorch install page: https://pytorch.org/get-started/locally/ ? That one definitely works with Python 3.12

To get gpt-oss-20b running you need the latest versions of everything, like triton 3.4.0 which is only included and compatible with torch >=2.8.0

Sign up or log in to comment