This commit is contained in:
hailin 2025-09-21 21:05:17 +08:00
parent 89e7e9d337
commit 349a56ac77
1 changed files with 5 additions and 0 deletions

View File

@ -165,6 +165,11 @@ RUN python3 -m pip install --no-cache-dir --no-deps /tmp/sgl_kernel_wheels/sgl_k
WORKDIR /opt
RUN pip download --only-binary=:all: --no-deps vllm==0.9.1 -d /tmp/vllm_wheels
# —— 在 WORKDIR /sgl/sglang/python 之前插入 ——
RUN python3 -m pip install --no-cache-dir -i https://pypi.org/simple --timeout 600 \
"aiohttp>=3.9" "multidict>=6.0" "yarl>=1.9" "frozenlist>=1.4" \
"aiosignal>=1.3" "async-timeout>=4.0" "attrs>=23.0"
# ── 编译你本地 sglang 源码并打 wheel ───────────────────────────────────────
WORKDIR /sgl/sglang/python
RUN python3 -m pip install --no-build-isolation -c /tmp/local_constraints_build.txt ".[srt,openai]" && \