From 15c5c8c88e696e2d239f237fb0a202d788a92315 Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Wed, 12 Mar 2025 07:14:57 +0800 Subject: [PATCH] [CI] Uninstall triton in dockerfile (#298) triton doesn't work with ascend. We should make sure it's uninstalled in dockerfile Related: https://github.com/vllm-project/vllm-ascend/issues/291 --------- Signed-off-by: wangxiyuan Signed-off-by: Yikun Jiang Co-authored-by: Yikun Jiang Signed-off-by: Yikun Jiang --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 992b1588726..c49240663a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,8 @@ ARG VLLM_REPO=https://github.com/vllm-project/vllm.git ARG VLLM_TAG=v0.7.3 RUN git clone --depth 1 $VLLM_REPO --branch $VLLM_TAG /workspace/vllm RUN VLLM_TARGET_DEVICE="empty" python3 -m pip install /workspace/vllm/ +# 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 # Install vllm-ascend RUN python3 -m pip install /workspace/vllm-ascend/ --extra-index https://download.pytorch.org/whl/cpu/