@@ -4,13 +4,13 @@ ARG BASE_IMAGE=compute-artifactory.amd.com:5000/rocm-plus-docker/framework/compu
44# ARG LEGACY_HIPBLASLT_OPTION=
55ARG TRITON_BRANCH="916969a"
66ARG TRITON_REPO="https://github.com/ROCm/triton.git"
7- # ARG PYTORCH_BRANCH="37f92bb "
8- # ARG PYTORCH_VISION_BRANCH="v0.21.0 "
9- # ARG PYTORCH_REPO="https://github.com/ROCm/pytorch.git"
10- # ARG PYTORCH_VISION_REPO="https://github.com/pytorch/vision.git"
7+ ARG PYTORCH_BRANCH="3a7dec2 "
8+ ARG PYTORCH_VISION_BRANCH="0.22.0a0 "
9+ ARG PYTORCH_REPO="https://github.com/ROCm/pytorch.git"
10+ ARG PYTORCH_VISION_REPO="https://github.com/pytorch/vision.git"
1111ARG FA_BRANCH="8ede036"
1212ARG FA_REPO="https://github.com/Dao-AILab/flash-attention.git"
13- ARG AITER_BRANCH="d765e80 "
13+ ARG AITER_BRANCH="498ff21 "
1414ARG AITER_REPO="https://github.com/ROCm/aiter.git"
1515
1616FROM ${BASE_IMAGE} AS base
@@ -20,7 +20,7 @@ ENV ROCM_PATH=/opt/rocm
2020ENV LD_LIBRARY_PATH=/opt/rocm/lib:/usr/local/lib:
2121ARG PYTORCH_ROCM_ARCH=gfx90a;gfx942;gfx950;gfx1100;gfx1101;gfx1200;gfx1201
2222ENV PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH}
23- ENV AITER_ROCM_ARCH=gfx950
23+ ENV AITER_ROCM_ARCH=gfx942; gfx950
2424
2525ARG PYTHON_VERSION=3.12
2626
@@ -85,22 +85,22 @@ RUN cd /opt/rocm/share/amd_smi \
8585RUN mkdir -p /app/install && cp /opt/rocm/share/amd_smi/dist/*.whl /app/install
8686
8787FROM base AS build_pytorch
88- # ARG PYTORCH_BRANCH
89- # ARG PYTORCH_VISION_BRANCH
90- # ARG PYTORCH_REPO
91- # ARG PYTORCH_VISION_REPO
88+ ARG PYTORCH_BRANCH
89+ ARG PYTORCH_VISION_BRANCH
90+ ARG PYTORCH_REPO
91+ ARG PYTORCH_VISION_REPO
9292ARG FA_BRANCH
9393ARG FA_REPO
94- # RUN git clone ${PYTORCH_REPO} pytorch
95- # RUN cd pytorch && git checkout ${PYTORCH_BRANCH} && \
96- # pip install -r requirements.txt && git submodule update --init --recursive \
97- # && python3 tools/amd_build/build_amd.py \
98- # && CMAKE_PREFIX_PATH=$(python3 -c 'import sys; print(sys.prefix)') python3 setup.py bdist_wheel --dist-dir=dist \
99- # && pip install dist/*.whl
100- # RUN git clone ${PYTORCH_VISION_REPO} vision
101- # RUN cd vision && git checkout ${PYTORCH_VISION_BRANCH} \
102- # && python3 setup.py bdist_wheel --dist-dir=dist \
103- # && pip install dist/*.whl
94+ RUN git clone ${PYTORCH_REPO} pytorch
95+ RUN cd pytorch && git checkout ${PYTORCH_BRANCH} && \
96+ pip install -r requirements.txt && git submodule update --init --recursive \
97+ && python3 tools/amd_build/build_amd.py \
98+ && CMAKE_PREFIX_PATH=$(python3 -c 'import sys; print(sys.prefix)') python3 setup.py bdist_wheel --dist-dir=dist \
99+ && pip install dist/*.whl
100+ RUN git clone ${PYTORCH_VISION_REPO} vision
101+ RUN cd vision && git checkout ${PYTORCH_VISION_BRANCH} \
102+ && python3 setup.py bdist_wheel --dist-dir=dist \
103+ && pip install dist/*.whl
104104RUN git clone ${FA_REPO}
105105RUN cd flash-attention \
106106 && git checkout ${FA_BRANCH} \
@@ -132,8 +132,8 @@ RUN --mount=type=bind,from=build_triton,src=/app/install/,target=/install \
132132 cp /install/*.whl /app/debs
133133RUN --mount=type=bind,from=build_amdsmi,src=/app/install/,target=/install \
134134 cp /install/*.whl /app/debs
135- # RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
136- # cp /install/*.whl /app/debs
135+ RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
136+ cp /install/*.whl /app/debs
137137RUN --mount=type=bind,from=build_aiter,src=/app/install/,target=/install \
138138 cp /install/*.whl /app/debs
139139
@@ -147,8 +147,8 @@ RUN --mount=type=bind,from=build_triton,src=/app/install/,target=/install \
147147 pip install /install/*.whl
148148RUN --mount=type=bind,from=build_amdsmi,src=/app/install/,target=/install \
149149 pip install /install/*.whl
150- # RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
151- # pip install /install/*.whl
150+ RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
151+ pip install /install/*.whl
152152RUN --mount=type=bind,from=build_aiter,src=/app/install/,target=/install \
153153 pip install /install/*.whl
154154
@@ -172,10 +172,10 @@ RUN echo "BASE_IMAGE: ${BASE_IMAGE}" > /app/versions.txt \
172172 # && echo "LEGACY_HIPBLASLT_OPTION: ${LEGACY_HIPBLASLT_OPTION}" >> /app/versions.txt \
173173 && echo "TRITON_BRANCH: ${TRITON_BRANCH}" >> /app/versions.txt \
174174 && echo "TRITON_REPO: ${TRITON_REPO}" >> /app/versions.txt \
175- # && echo "PYTORCH_BRANCH: ${PYTORCH_BRANCH}" >> /app/versions.txt \
176- # && echo "PYTORCH_VISION_BRANCH: ${PYTORCH_VISION_BRANCH}" >> /app/versions.txt \
177- # && echo "PYTORCH_REPO: ${PYTORCH_REPO}" >> /app/versions.txt \
178- # && echo "PYTORCH_VISION_REPO: ${PYTORCH_VISION_REPO}" >> /app/versions.txt \
175+ && echo "PYTORCH_BRANCH: ${PYTORCH_BRANCH}" >> /app/versions.txt \
176+ && echo "PYTORCH_VISION_BRANCH: ${PYTORCH_VISION_BRANCH}" >> /app/versions.txt \
177+ && echo "PYTORCH_REPO: ${PYTORCH_REPO}" >> /app/versions.txt \
178+ && echo "PYTORCH_VISION_REPO: ${PYTORCH_VISION_REPO}" >> /app/versions.txt \
179179 && echo "FA_BRANCH: ${FA_BRANCH}" >> /app/versions.txt \
180180 && echo "AITER_BRANCH: ${AITER_BRANCH}" >> /app/versions.txt \
181181 && echo "AITER_REPO: ${AITER_REPO}" >> /app/versions.txt
0 commit comments