PyTorch 1.12.0
- Released
- 2022-06-28
- Official CUDA wheels
- Official ROCm wheels
- Supported Python versions
Which GPUs each CUDA build runs on
Each CUDA build of PyTorch 1.12.0 contains compiled code for a fixed list of GPU architectures. A card runs a build when the list includes its architecture (a build compiled for 8.6 also covers 8.9 cards like the RTX 4090, since newer minor versions of the same generation run older code). If the list doesn't cover your card, PyTorch installs fine but fails at runtime with no kernel image is available for execution on the device.
| CUDA build | Compiled for (compute capability) | GPU generations | Install |
|---|---|---|---|
| 10.2 | 3.7, 5.0, 6.0, 7.0 | Kepler (3.7 only), Maxwell, Pascal, Volta, Turing | pip install torch==1.12.0 --index-url https://download.pytorch.org/whl/cu102 |
| 11.3 | 3.7, 5.0, 6.0, 7.0, 7.5, 8.0, 8.6 | Kepler (3.7 only), Maxwell, Pascal, Volta, Turing, Ampere, Ada Lovelace | pip install torch==1.12.0 --index-url https://download.pytorch.org/whl/cu113 |
| 11.6 | 3.7, 5.0, 6.0, 7.0, 7.5, 8.0, 8.6 | Kepler (3.7 only), Maxwell, Pascal, Volta, Turing, Ampere, Ada Lovelace | pip install torch==1.12.0 --index-url https://download.pytorch.org/whl/cu116 |
Linux x86_64 wheels. Your NVIDIA driver must also be new enough for the CUDA build — see its CUDA page.
Added 2026-09 alongside 1.11.0 at the user's request. CUDA/ROCm build matrix and Python range from PyTorch's official previous-versions page (pytorch.org/get-started/previous-versions/#v1120) and confirmed via PyPI release metadata (uploaded 2022-06-28). PyTorch also shipped a 1.12.1 patch release (2022-08-05) with the same CUDA/ROCm/Python matrix; omitted here since this collection tracks one entry per minor version elsewhere (no 2.x.y patch releases are listed either). Build variants re-verified 2026-09-27 against the files actually published: download.pytorch.org/whl/<variant>/torch/ (x86_64 Linux) for the CUDA and ROCm builds, and PyPI plus that index for Python versions. Corrected then: ROCm builds as 5.1.1; Python as 3.7, 3.8, 3.9. cudaArchs is each CUDA build's TORCH_CUDA_ARCH_LIST for x86_64 Linux wheels, taken by running the arch-selection code in PyTorch's own build scripts at this release (pytorch/builder release branch manywheel/build_cuda.sh up to 2.5, pytorch .ci/manywheel/build_cuda.sh for 2.6-2.12, .ci/manywheel/build_env_setup.py from 2.13); +PTX suffixes are omitted. No defaultPipCuda: this release's PyPI wheel bundles CUDA without machine-readable version metadata. windowsCudaVersions: the CUDA builds with win_amd64 wheels on the same index (2026-09-27); Windows wheels are assumed to use the Linux architecture lists, as PyTorch's RELEASE.md states for recent releases.