2024-06-26 17:53:04 -04:00
|
|
|
FROM mambaorg/micromamba
|
|
|
|
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
|
|
|
USER root
|
|
|
|
|
2024-09-07 23:48:40 +05:30
|
|
|
ENV PATH="/usr/local/cargo/bin:$PATH:/opt/conda/bin/"
|
|
|
|
|
2025-01-31 02:59:39 +05:30
|
|
|
RUN apt-get update -y && apt-get install -y git wget kmod curl vim libnuma-dev libsndfile-dev libprotobuf-dev build-essential ffmpeg libsm6 libxext6 libgl1 libssl-dev
|
2024-06-26 17:53:04 -04:00
|
|
|
|
2025-03-08 17:44:35 +01:00
|
|
|
# Some packages in requirements/cpu are installed here
|
2024-06-26 17:53:04 -04:00
|
|
|
# IBM provides optimized packages for ppc64le processors in the open-ce project for mamba
|
|
|
|
# Currently these may not be available for venv or pip directly
|
2025-01-31 02:59:39 +05:30
|
|
|
RUN micromamba install -y -n base -c https://ftp.osuosl.org/pub/open-ce/1.11.0-p10/ -c defaults python=3.10 rust && micromamba clean --all --yes
|
2024-06-26 17:53:04 -04:00
|
|
|
|
|
|
|
COPY ./ /workspace/vllm
|
|
|
|
|
|
|
|
WORKDIR /workspace/vllm
|
2024-10-17 19:25:06 +02:00
|
|
|
ARG GIT_REPO_CHECK=0
|
|
|
|
RUN --mount=type=bind,source=.git,target=.git \
|
|
|
|
if [ "$GIT_REPO_CHECK" != 0 ]; then bash tools/check_repo.sh; fi
|
2024-06-26 17:53:04 -04:00
|
|
|
|
2024-09-23 18:44:26 +02:00
|
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
2025-01-08 10:35:37 +05:30
|
|
|
RUSTFLAGS='-L /opt/conda/lib' pip install -v --prefer-binary --extra-index-url https://repo.fury.io/mgiessing \
|
2024-11-12 15:06:48 -08:00
|
|
|
'cmake>=3.26' ninja packaging 'setuptools-scm>=8' wheel jinja2 \
|
2025-03-08 17:44:35 +01:00
|
|
|
-r requirements/cpu.txt \
|
2024-09-23 18:44:26 +02:00
|
|
|
xformers uvloop==0.20.0
|
|
|
|
|
|
|
|
RUN --mount=type=bind,source=.git,target=.git \
|
|
|
|
VLLM_TARGET_DEVICE=cpu python3 setup.py install
|
2024-06-26 17:53:04 -04:00
|
|
|
|
2024-11-26 00:20:04 -08:00
|
|
|
# install development dependencies (for testing)
|
|
|
|
RUN python3 -m pip install -e tests/vllm_test_utils
|
|
|
|
|
2024-09-07 23:48:40 +05:30
|
|
|
WORKDIR /workspace/
|
|
|
|
|
|
|
|
RUN ln -s /workspace/vllm/tests && ln -s /workspace/vllm/examples && ln -s /workspace/vllm/benchmarks
|
|
|
|
|
2024-10-21 23:13:02 +05:30
|
|
|
ENTRYPOINT ["/opt/conda/bin/python3", "-m", "vllm.entrypoints.openai.api_server"]
|