Skip to content

Commit

Permalink
'rocm' upgrade to 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Sep 9, 2024
1 parent c59abdc commit d03d0fc
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions rocm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ RUN --mount=type=cache,target=/root/.cache/pip \
# https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/native_linux/install-pytorch.html
# https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/native_linux/install-onnx.html
# Using torchaudio CPU for compatibility
# The extra index of PyTorch nightly has no use here, just a fail-safe.
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --break-system-packages \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torch-2.1.2%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torchvision-0.16.1%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/pytorch_triton_rocm-2.1.0%2Brocm6.1.3.4d510c3a44-cp310-cp310-linux_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/onnxruntime_rocm-1.17.0-cp310-cp310-linux_x86_64.whl \
https://download.pytorch.org/whl/cpu/torchaudio-2.1.2%2Bcpu-cp310-cp310-linux_x86_64.whl \
--extra-index-url https://download.pytorch.org/whl/rocm6.1
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.2/torch-2.3.0%2Brocm6.2.0-cp310-cp310-linux_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.2/torchvision-0.18.0%2Brocm6.2.0-cp310-cp310-linux_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.2/pytorch_triton_rocm-2.3.0%2Brocm6.2.0.1540b42334-cp310-cp310-linux_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.2/onnxruntime_rocm-1.18.0-cp310-cp310-linux_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.2/jaxlib-0.4.23%2Brocm620-cp310-cp310-manylinux2014_x86_64.whl \
https://repo.radeon.com/rocm/manylinux/rocm-rel-6.2/rocpydecode-1.0.0.0-py3-none-manylinux_2_28_x86_64.whl \
https://download.pytorch.org/whl/cpu/torchaudio-2.3.0%2Bcpu-cp310-cp310-linux_x86_64.whl \
--extra-index-url https://download.pytorch.org/whl/nightly/rocm6.2

# Dependencies for frequently-used
# (Do this firstly so PIP won't be solving too many deps at one time)
Expand All @@ -60,7 +63,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
-r https://raw.githubusercontent.com/ltdrdata/ComfyUI-Impact-Subpack/main/requirements.txt \
-r https://raw.githubusercontent.com/ltdrdata/ComfyUI-Inspire-Pack/main/requirements.txt \
-r https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/requirements.txt \
--extra-index-url https://download.pytorch.org/whl/rocm6.1
--extra-index-url https://download.pytorch.org/whl/nightly/rocm6.2

# Dependencies for more, with few hand-pick:
# 'compel lark' for smZNodes
Expand All @@ -78,7 +81,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
-r https://raw.githubusercontent.com/ZHO-ZHO-ZHO/ComfyUI-InstantID/main/requirements.txt \
compel lark torchdiffeq fairscale \
python-ffmpeg \
--extra-index-url https://download.pytorch.org/whl/rocm6.1
--extra-index-url https://download.pytorch.org/whl/nightly/rocm6.2

# Fix MediaPipe's broken dep (protobuf<4).
RUN --mount=type=cache,target=/root/.cache/pip \
Expand Down

0 comments on commit d03d0fc

Please sign in to comment.