The PyTorch on ROCm Docker images
500K+
This repo hosts the docker images for PyTorch releases with ROCm backend support.
(1) Supported GPUs:
The docker images hosted in this registry will run on:
(2) Install Docker Environment
To configure docker environment for ROCm, please refer to the following installation guide: https://github.com/RadeonOpenCompute/ROCm-docker/blob/master/quick-start.md
(3) Run the rocm/pytorch Docker Image:
To facilitate commands to pull and run the latest PyTorch docker container, add the following alias to your .profile or .bashrc:
alias drun='sudo docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --shm-size 8G -v $HOME/dockerx:/dockerx -w /dockerx'
For example, to get the latest PyTorch on ROCm, run the following command:
drun rocm/pytorch
or
drun rocm/pytorch:latest
Content type
Image
Digest
sha256:96a74c166…
Size
9.6 GB
Last updated
17 days ago
docker pull rocm/pytorch:rocm7.2_ubuntu24.04_py3.12_pytorch_release_2.7.1