From ac1ba1d8d2aa77971da3333257f44af3755ac6c7 Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Fri, 14 Mar 2025 09:41:57 +0800 Subject: [PATCH] [Build] Fix x86 image build (#327) Install cpu version of pytorch in x86 to reduce image size Signed-off-by: wangxiyuan --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c0ebd5b..2a0f93d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,7 @@ RUN pip config set global.index-url ${PIP_INDEX_URL} ARG VLLM_REPO=https://github.com/vllm-project/vllm.git ARG VLLM_TAG=main RUN git clone --depth 1 $VLLM_REPO --branch $VLLM_TAG /workspace/vllm -RUN VLLM_TARGET_DEVICE="empty" python3 -m pip install /workspace/vllm/ +RUN VLLM_TARGET_DEVICE="empty" python3 -m pip install /workspace/vllm/ --extra-index https://download.pytorch.org/whl/cpu/ # In x86, triton will be installed by vllm. But in Ascend, triton doesn't work correctly. we need to uninstall it. RUN python3 -m pip uninstall -y triton