This commit is contained in:
2026-03-11 10:02:32 +08:00
parent 65c768dfb2
commit 549f2d9a2b
+5 -2
View File
@@ -67,8 +67,11 @@ ENV FLASH_ATTENTION_TRITON_AMD_ENABLE="TRUE"
RUN pip install flash-attn --no-build-isolation \
--index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 6. Clone vLLM
RUN git clone https://github.com/vllm-project/vllm.git /opt/vllm
# 6. Clone vLLM (with retry mechanism)
RUN for i in 1 2 3; do \
git clone --depth 1 https://github.com/vllm-project/vllm.git /opt/vllm && break || \
{ echo "Attempt $i failed. Retrying in 5 seconds..."; sleep 5; rm -rf /opt/vllm 2>/dev/null; }; \
done
WORKDIR /opt/vllm
# --- PATCHING ---