Skip to content

Commit ffaeba9

Browse files
author
Doug Lehr
committed
Allow Flash attention to build
1 parent 02a90d0 commit ffaeba9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docker/Dockerfile.rocm_base

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ RUN cd /opt/rocm/share/amd_smi \
7878
&& pip wheel . --wheel-dir=dist
7979
RUN mkdir -p /app/install && cp /opt/rocm/share/amd_smi/dist/*.whl /app/install
8080

81-
#FROM base AS build_pytorch
81+
FROM base AS build_pytorch
8282
#ARG PYTORCH_BRANCH
8383
#ARG PYTORCH_VISION_BRANCH
8484
#ARG PYTORCH_REPO
8585
#ARG PYTORCH_VISION_REPO
86-
#ARG FA_BRANCH
87-
#ARG FA_REPO
86+
ARG FA_BRANCH
87+
ARG FA_REPO
8888
#RUN git clone ${PYTORCH_REPO} pytorch
8989
#RUN cd pytorch && git checkout ${PYTORCH_BRANCH} && \
9090
# pip install -r requirements.txt && git submodule update --init --recursive \
@@ -127,8 +127,8 @@ RUN mkdir /app/debs
127127
# cp /install/*.whl /app/debs
128128
RUN --mount=type=bind,from=build_amdsmi,src=/app/install/,target=/install \
129129
cp /install/*.whl /app/debs
130-
#RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
131-
# cp /install/*.whl /app/debs
130+
RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
131+
cp /install/*.whl /app/debs
132132
# RUN --mount=type=bind,from=build_aiter,src=/app/install/,target=/install \
133133
# cp /install/*.whl /app/debs
134134

@@ -142,8 +142,8 @@ FROM base AS final
142142
# pip install /install/*.whl
143143
RUN --mount=type=bind,from=build_amdsmi,src=/app/install/,target=/install \
144144
pip install /install/*.whl
145-
#RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
146-
# pip install /install/*.whl
145+
RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
146+
pip install /install/*.whl
147147
# RUN --mount=type=bind,from=build_aiter,src=/app/install/,target=/install \
148148
# pip install /install/*.whl
149149

0 commit comments

Comments
 (0)