diff --git a/Dockerfile.rocm_base b/Dockerfile.rocm_base index 7b6816ba6114..00256e1b638d 100644 --- a/Dockerfile.rocm_base +++ b/Dockerfile.rocm_base @@ -12,7 +12,7 @@ ARG PYTORCH_REPO="https://github.com/pytorch/pytorch.git" ARG PYTORCH_VISION_REPO="https://github.com/pytorch/vision.git" ARG FA_BRANCH="1a7f4dfa" ARG FA_REPO="https://github.com/Dao-AILab/flash-attention.git" -ARG AITER_BRANCH="485b4b28" +ARG AITER_BRANCH="41297e56" ARG AITER_REPO="https://github.com/ROCm/aiter.git" FROM ${BASE_IMAGE} AS base @@ -118,17 +118,14 @@ RUN mkdir -p /app/install && cp /app/pytorch/dist/*.whl /app/install \ FROM base AS build_aiter ARG AITER_BRANCH ARG AITER_REPO -COPY requirements-rocm.txt /app -COPY requirements-common.txt /app -RUN pip install -r requirements-rocm.txt RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \ pip install /install/*.whl RUN git clone --recursive ${AITER_REPO} RUN cd aiter \ && git checkout ${AITER_BRANCH} \ && git submodule update --init --recursive \ - && pip install -r requirements.txt \ - && PREBUILD_KERNELS=1 GPU_ARCHS=gfx942 python3 setup.py bdist_wheel --dist-dir=dist && ls /app/aiter/dist/*.whl + && pip install -r requirements.txt +RUN pip install pyyaml && cd aiter && PREBUILD_KERNELS=1 GPU_ARCHS=gfx942 python3 setup.py bdist_wheel --dist-dir=dist && ls /app/aiter/dist/*.whl RUN mkdir -p /app/install && cp /app/aiter/dist/*.whl /app/install FROM base AS final