This commit is contained in:
parent
1f29dfe8af
commit
62c4e8c308
13
Dockerfile
13
Dockerfile
|
|
@ -72,12 +72,15 @@ RUN pip install . && \
|
|||
python3 -m pip wheel . --no-deps -w dist/
|
||||
|
||||
|
||||
# ── 安装 vllm(跳过编译,直接装) ─────────────────────────────────────────────
|
||||
WORKDIR /opt
|
||||
RUN pip install setuptools wheel setuptools_scm && \
|
||||
pip install git+https://github.com/vllm-project/vllm.git@main --no-deps && \
|
||||
python3 -m pip wheel vllm -w /tmp/vllm_wheels --no-deps
|
||||
# # ── 安装 vllm(跳过编译,直接装) ─────────────────────────────────────────────
|
||||
# WORKDIR /opt
|
||||
# RUN pip install setuptools wheel setuptools_scm && \
|
||||
# pip install git+https://github.com/vllm-project/vllm.git@main --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 ───────────────────────────────────────
|
||||
COPY ./sglang /sgl/sglang
|
||||
|
|
|
|||
Loading…
Reference in New Issue