The PyTorch on ROCm Docker images
1M+
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:550722eb3…
Size
9.7 GB
Last updated
18 days ago
Requires Docker Desktop 4.37.1 or later.