Skip to content

Commit 9119528

Browse files
WoosukKwonLeiWang1999
authored andcommitted
[Build/CI][ROCm] Minor simplification to Dockerfile.rocm (vllm-project#6811)
Signed-off-by: LeiWang1999 <[email protected]>
1 parent 82a707d commit 9119528

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Dockerfile.rocm

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ RUN apt-get purge -y sccache; python3 -m pip uninstall -y sccache; rm -f "$(whic
5353
# Install torch == 2.5.0 on ROCm
5454
RUN case "$(ls /opt | grep -Po 'rocm-[0-9]\.[0-9]')" in \
5555
*"rocm-6.1"*) \
56-
python3 -m pip uninstall -y torch torchaudio torchvision \
56+
python3 -m pip uninstall -y torch torchvision \
5757
&& python3 -m pip install --no-cache-dir --pre \
58-
torch==2.5.0.dev20240710 torchaudio==2.4.0.dev20240710 \
58+
torch==2.5.0.dev20240710 \
5959
torchvision==0.20.0.dev20240710 \
6060
--index-url https://download.pytorch.org/whl/nightly/rocm6.1;; \
6161
*) ;; esac
@@ -127,13 +127,6 @@ FROM base AS final
127127
# Import the vLLM development directory from the build context
128128
COPY . .
129129

130-
# Error related to odd state for numpy 1.20.3 where there is no METADATA etc, but an extra LICENSES_bundled.txt.
131-
# Manually remove it so that later steps of numpy upgrade can continue
132-
RUN case "$(which python3)" in \
133-
*"/opt/conda/envs/py_3.9"*) \
134-
rm -rf /opt/conda/envs/py_3.9/lib/python3.9/site-packages/numpy-1.20.3.dist-info/;; \
135-
*) ;; esac
136-
137130
# Package upgrades for useful functionality or to avoid dependency issues
138131
RUN --mount=type=cache,target=/root/.cache/pip \
139132
python3 -m pip install --upgrade numba scipy huggingface-hub[cli]

0 commit comments

Comments
 (0)