This commit is contained in:
hailin 2025-07-03 23:31:36 +08:00
parent 1f29dfe8af
commit 62c4e8c308
1 changed files with 8 additions and 5 deletions

View File

@ -72,12 +72,15 @@ RUN pip install . && \
python3 -m pip wheel . --no-deps -w dist/ python3 -m pip wheel . --no-deps -w dist/
# ── 安装 vllm跳过编译直接装 ───────────────────────────────────────────── # # ── 安装 vllm跳过编译直接装 ─────────────────────────────────────────────
WORKDIR /opt # WORKDIR /opt
RUN pip install setuptools wheel setuptools_scm && \ # RUN pip install setuptools wheel setuptools_scm && \
pip install git+https://github.com/vllm-project/vllm.git@main --no-deps && \ # pip install git+https://github.com/vllm-project/vllm.git@main --no-deps && \
python3 -m pip wheel vllm -w /tmp/vllm_wheels --no-deps # python3 -m pip wheel vllm -w /tmp/vllm_wheels --no-deps
# ── 下载 vllm 预编译 wheel避免编译 flash-attn ───────────────────────────────
WORKDIR /opt
RUN pip download --only-binary=:all: --no-deps vllm==0.9.1 -d /tmp/vllm_wheels
# ── 编译你本地 sglang 源码并打 wheel ─────────────────────────────────────── # ── 编译你本地 sglang 源码并打 wheel ───────────────────────────────────────
COPY ./sglang /sgl/sglang COPY ./sglang /sgl/sglang