From 6fb59e0cf670baa6037e0dcfb19399fb2025bf1b Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 16 Sep 2025 16:57:27 +0800 Subject: [PATCH] . --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8eb35be3a..df4ffe78c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -186,13 +186,13 @@ COPY _wheelhouse/ /tmp/wheels/ # ✅ 优先装你自编的 torch,避免被 PyPI 上的覆盖 RUN ls -lh /tmp/wheels && \ - rm -f /tmp/wheels/torch-2.7.1a0+*.whl && \ + # rm -f /tmp/wheels/torch-2.7.1a0+*.whl && \ rm -f /tmp/wheels/huggingface_hub-0.34.4*.whl && \ python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/torch*.whl && \ python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/vllm-*.whl && \ python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/sgl_kernel-*.whl && \ python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/gradio-5.38.2*.whl && \ - # python3 -m pip install --no-cache-dir --no-deps $(ls /tmp/wheels | grep -v '^gradio-' | sed 's|^|/tmp/wheels/|') && \ + python3 -m pip install --no-cache-dir --no-deps $(ls /tmp/wheels | grep -v '^gradio-' | sed 's|^|/tmp/wheels/|') && \ python3 -m pip install --no-cache-dir --no-deps $(find /tmp/wheels -maxdepth 1 -type f -name '*.whl' ! -name 'gradio-*') && \ python3 -c "import gradio, sys; print('✅ Gradio version =', gradio.__version__)" && \ rm -rf /tmp/wheels