Skip to content

Installing latest version of pytorch #2110

Description

@briansp2020

Hi,
I'm trying to install the latest version of pytorch built with TheRock and am having problem. Following the instruction from https://github.com/ROCm/TheRock/blob/main/RELEASES.md#torch-for-gfx120X-all, running

python -m pip install --index-url https://rocm.nightlies.amd.com/v2/gfx120X-all/ --pre torch torchaudio torchvision

always install version dated 1015 as shown below. But I can see that there are newer versions in the repository. Ideally I'd like to install torch 2.9 but 2.10 will do also. I'm trying to see if my Radeon AI Pro has gotten any faster. Though it runs, its performance is very bad at the moment using the latest release. Also, pytorch nightly build from https://download.pytorch.org/whl/nightly/rocm7.1/ does not install properly either.

python -m pip install \

--index-url https://rocm.nightlies.amd.com/v2/gfx120X-all/
--pre torch torchaudio torchvision
Looking in indexes: https://rocm.nightlies.amd.com/v2/gfx120X-all/
Collecting torch
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/torch-2.10.0a0%2Brocm7.10.0a20251015-cp312-cp312-linux_x86_64.whl (225.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 225.3/225.3 MB 24.6 MB/s eta 0:00:00
Collecting torchaudio
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/torchaudio-2.8.0a0%2Brocm7.10.0a20251015-cp312-cp312-linux_x86_64.whl (491 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 491.4/491.4 kB 11.8 MB/s eta 0:00:00
Collecting torchvision
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/torchvision-0.25.0a0%2Brocm7.10.0a20251015-cp312-cp312-linux_x86_64.whl (1.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 33.2 MB/s eta 0:00:00
Collecting filelock (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/filelock-3.19.1-py3-none-any.whl (15 kB)
Collecting typing-extensions>=4.10.0 (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/typing_extensions-4.14.1-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.9/43.9 kB 7.8 MB/s eta 0:00:00
Collecting setuptools (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/setuptools-80.9.0-py3-none-any.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 28.1 MB/s eta 0:00:00
Collecting sympy>=1.13.3 (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/sympy-1.14.0-py3-none-any.whl (6.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.3/6.3 MB 47.3 MB/s eta 0:00:00
Collecting networkx>=2.5.1 (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/networkx-3.5-py3-none-any.whl (2.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 41.4 MB/s eta 0:00:00
Collecting jinja2 (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/jinja2-3.1.6-py3-none-any.whl (134 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.9/134.9 kB 19.5 MB/s eta 0:00:00
Collecting fsspec>=0.8.5 (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/fsspec-2025.7.0-py3-none-any.whl (199 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.6/199.6 kB 4.7 MB/s eta 0:00:00
Collecting rocm==7.10.0a20251015 (from rocm[libraries]==7.10.0a20251015->torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/rocm-7.10.0a20251015.tar.gz (14 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pytorch-triton-rocm==3.5.0+gitd0444d76.rocm7.10.0a20251015 (from torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/pytorch_triton_rocm-3.5.0%2Bgitd0444d76.rocm7.10.0a20251015-cp312-cp312-linux_x86_64.whl (317.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 317.1/317.1 MB 21.7 MB/s eta 0:00:00
Collecting rocm-sdk-core==7.10.0a20251015 (from rocm==7.10.0a20251015->rocm[libraries]==7.10.0a20251015->torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/rocm_sdk_core-7.10.0a20251015-py3-none-linux_x86_64.whl (265.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 265.7/265.7 MB 23.8 MB/s eta 0:00:00
Collecting rocm-sdk-libraries-gfx120X-all==7.10.0a20251015 (from rocm[libraries]==7.10.0a20251015->torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/rocm_sdk_libraries_gfx120x_all-7.10.0a20251015-py3-none-linux_x86_64.whl (397.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 397.4/397.4 MB 17.7 MB/s eta 0:00:00
Collecting numpy (from torchvision)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/numpy-2.3.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.6/16.6 MB 53.8 MB/s eta 0:00:00
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/pillow-11.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 57.1 MB/s eta 0:00:00
Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/mpmath-1.3.0-py3-none-any.whl (536 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 30.1 MB/s eta 0:00:00
Collecting MarkupSafe>=2.0 (from jinja2->torch)
Downloading https://rocm.nightlies.amd.com/v2/gfx120X-all/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23 kB)
Building wheels for collected packages: rocm
Building wheel for rocm (pyproject.toml) ... done
Created wheel for rocm: filename=rocm-7.10.0a20251015-py3-none-any.whl size=18965 sha256=29c5c4eb7ab2c9f5f66ff7232b1b16f9c2f85fca89b1075d318985fec26ddb01
Stored in directory: /root/.cache/pip/wheels/63/a8/c4/23eb57a15b57e9471b07475450d5739cd9f020d03888b806a9
Successfully built rocm
Installing collected packages: rocm-sdk-libraries-gfx120X-all, rocm-sdk-core, mpmath, typing-extensions, sympy, setuptools, pytorch-triton-rocm, pillow, numpy, networkx, MarkupSafe, fsspec, filelock, jinja2, rocm, torch, torchvision, torchaudio
Successfully installed MarkupSafe-3.0.2 filelock-3.19.1 fsspec-2025.7.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.5 numpy-2.3.2 pillow-11.3.0 pytorch-triton-rocm-3.5.0+gitd0444d76.rocm7.10.0a20251015 rocm-7.10.0a20251015 rocm-sdk-core-7.10.0a20251015 rocm-sdk-libraries-gfx120X-all-7.10.0a20251015 setuptools-80.9.0 sympy-1.14.0 torch-2.10.0a0+rocm7.10.0a20251015 torchaudio-2.8.0a0+rocm7.10.0a20251015 torchvision-0.25.0a0+rocm7.10.0a20251015 typing-extensions-4.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions