This commit is contained in:
hailin 2025-07-26 16:55:42 +08:00
parent b70297ece1
commit 49b8cae1bb
1 changed files with 2 additions and 7 deletions

View File

@ -90,13 +90,8 @@ RUN python3 -m pip install ".[srt,openai]" --no-build-isolation && \
python3 -m pip wheel ".[srt,openai]" --no-deps -w /tmp/sg_wheels
# ── 🔄 编译 sgl-kernel与 sglang 同步)───────────────────────────────────────
# 如果你固定了 sglang 标签,比如 0.4.8.post1则把 REF 也锁到对应 tag / commit
ARG SGL_KERNEL_REF=v0.1.9 # 可换成 v0.2.7 等
WORKDIR /opt
RUN git clone --depth 1 -b ${SGL_KERNEL_REF} https://github.com/sgl-project/sgl-kernel.git
WORKDIR /opt/sgl-kernel/python
RUN python3 -m pip wheel . --no-deps -w /tmp/sgl_kernel_wheels
# ── 🔄 下载 sgl-kernel与 sglang 同步)───────────────────────────────────────
RUN pip download --only-binary=:all: --no-deps sgl-kernel==0.1.9 -d /tmp/sgl_kernel_wheels
# ── 收集所有 wheel 到 /wheels ──────────────────────────────────────────────
RUN mkdir -p /wheels && \