Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docker): Update Dockerfile for new hip packaging #15

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,16 @@ RUN --mount=type=cache,target=/root/.cache/pip \
pip install accelerate hf_transfer modelscope

ENV VLLM_USAGE_SOURCE production-docker-image
# install hip
RUN mkdir /workspace/hip
COPY --from=hip hip /workspace/hip/hip
COPY --from=hip setup.py /workspace/hip/setup.py
RUN pip install -e /workspace/hip \
&& pip install numba

COPY --from=build /workspace/vllm/*.so /workspace/vllm/
COPY vllm vllm

ENTRYPOINT ["python3", "-m", "vllm.entrypoints.openai.api_server"]
#################### OPENAI API SERVER ####################

#################### HiP Attention ####################
# Copy hip
COPY --from=hip . /workspace/hip/
# NOTE: We upgrade pip to support PEP 660 (pyproject.toml with editable installs)
RUN --mount=type=cache,target=/root/.cache/pip \
python3 -m pip install --upgrade pip \
&& pip install -e "/workspace/hip[openai]" \
&& pip install -e "/workspace/hip[no_build_iso]" --no-build-isolation
#################### HiP Attention ####################
Loading