|
@@ -40,10 +40,6 @@ RUN pip install packaging wheel
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
python3 -m pip install -r requirements-cuda.txt
|
|
python3 -m pip install -r requirements-cuda.txt
|
|
|
|
|
|
-COPY requirements-mamba.txt requirements-mamba.txt
|
|
|
|
-RUN python3 -m pip install packaging
|
|
|
|
-RUN python3 -m pip install -r requirements-mamba.txt
|
|
|
|
-
|
|
|
|
# cuda arch list used by torch
|
|
# cuda arch list used by torch
|
|
# can be useful for both `dev` and `test`
|
|
# can be useful for both `dev` and `test`
|
|
# explicitly set the list to avoid issues with torch 2.2
|
|
# explicitly set the list to avoid issues with torch 2.2
|
|
@@ -101,22 +97,6 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|
|
|
|
|
#################### DEV IMAGE ####################
|
|
#################### DEV IMAGE ####################
|
|
|
|
|
|
-#################### MAMBA Build IMAGE ####################
|
|
|
|
-FROM dev as mamba-builder
|
|
|
|
-# max jobs used for build
|
|
|
|
-ARG max_jobs=2
|
|
|
|
-ENV MAX_JOBS=${max_jobs}
|
|
|
|
-
|
|
|
|
-WORKDIR /usr/src/mamba
|
|
|
|
-
|
|
|
|
-COPY requirements-mamba.txt requirements-mamba.txt
|
|
|
|
-
|
|
|
|
-# Download the wheel or build it if a pre-compiled release doesn't exist
|
|
|
|
-RUN pip --verbose wheel -r requirements-mamba.txt \
|
|
|
|
- --no-build-isolation --no-deps --no-cache-dir
|
|
|
|
-
|
|
|
|
-#################### MAMBA Build IMAGE ####################
|
|
|
|
-
|
|
|
|
#################### Aphrodite installation IMAGE ####################
|
|
#################### Aphrodite installation IMAGE ####################
|
|
# image with Aphrodite installed
|
|
# image with Aphrodite installed
|
|
FROM nvidia/cuda:${CUDA_VERSION}-base-ubuntu22.04 AS aphrodite-base
|
|
FROM nvidia/cuda:${CUDA_VERSION}-base-ubuntu22.04 AS aphrodite-base
|
|
@@ -137,10 +117,6 @@ RUN --mount=type=bind,from=build,src=/workspace/dist,target=/aphrodite-workspace
|
|
--mount=type=cache,target=/root/.cache/pip \
|
|
--mount=type=cache,target=/root/.cache/pip \
|
|
python3 -m pip install dist/*.whl --verbose
|
|
python3 -m pip install dist/*.whl --verbose
|
|
|
|
|
|
-RUN --mount=type=bind,from=mamba-builder,src=/usr/src/mamba,target=/usr/src/mamba \
|
|
|
|
- --mount=type=cache,target=/root/.cache/pip \
|
|
|
|
- python3 -m pip install /usr/src/mamba/*.whl --no-cache-dir
|
|
|
|
-
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
python3 -m pip install https://github.com/flashinfer-ai/flashinfer/releases/download/v0.0.9/flashinfer-0.0.9+cu121torch2.3-cp310-cp310-linux_x86_64.whl
|
|
python3 -m pip install https://github.com/flashinfer-ai/flashinfer/releases/download/v0.0.9/flashinfer-0.0.9+cu121torch2.3-cp310-cp310-linux_x86_64.whl
|
|
#################### Aphrodite installation IMAGE ####################
|
|
#################### Aphrodite installation IMAGE ####################
|