From 2cd92d10b98a73de3952eafca915ae8954fcd375 Mon Sep 17 00:00:00 2001 From: Michael <13900043+michaelzhang-ai@users.noreply.github.com> Date: Fri, 2 Oct 2026 21:10:01 +0800 Subject: [PATCH] [AMD] Skip the AITER #6042/#5967 patches on gfx1250 (#42219) --- docker/rocm.Dockerfile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docker/rocm.Dockerfile b/docker/rocm.Dockerfile index 61d9f5cd58..71d9133172 100644 --- a/docker/rocm.Dockerfile +++ b/docker/rocm.Dockerfile @@ -571,16 +571,21 @@ RUN pip uninstall -y aiter # cherry pick ROCm/aiter#6042 to unpeel the 64-bit sparse MLA loop below Triton 3.8, may be removed in next aiter upgrade # apply the DSV4.1 TP2 fp8/fp4 FMoE tuning CSVs from ROCm/aiter#5967, may be removed in next aiter upgrade # apply fix for v4 fp4 indexer, may be removed in next aiter upgrade +# The #6042 and #5967 patches are written against the gfx942/gfx950 AITER pin and +# do not apply to the older gfx1250 one (a conflict in pa_decode_sparse.py, and +# the dsv41 CSVs do not exist there yet), so gfx1250 skips them. RUN git clone ${AITER_REPO} \ && cd aiter \ && git checkout -f ${AITER_COMMIT} \ - && git fetch origin pull/6042/head \ - && git cherry-pick --no-commit 042a289183e5b47e193df6c10160915a6e8b69f5 \ - && git fetch origin pull/5967/head \ - && git diff -U0 89a47b84ac4b576339a50047e290c383c2377389 2bd147293d887c91fd10da10b1dbbf4690844270 -- \ - aiter/configs/model_configs/dsv41_fp4_tuned_fmoe.csv \ - aiter/configs/model_configs/dsv41_fp4_untuned_fmoe.csv \ - | git apply --unidiff-zero \ + && if [ "${GPU_ARCH_LIST}" != "gfx1250" ]; then \ + git fetch origin pull/6042/head \ + && git cherry-pick --no-commit 042a289183e5b47e193df6c10160915a6e8b69f5 \ + && git fetch origin pull/5967/head \ + && git diff -U0 89a47b84ac4b576339a50047e290c383c2377389 2bd147293d887c91fd10da10b1dbbf4690844270 -- \ + aiter/configs/model_configs/dsv41_fp4_tuned_fmoe.csv \ + aiter/configs/model_configs/dsv41_fp4_untuned_fmoe.csv \ + | git apply --unidiff-zero; \ + fi \ && sed -i 's/from functools import lru_cache/from functools import cache/' aiter/ops/flydsl/kernels/mqa_logits/pa_mqa_logits_fp4_prefill.py \ && sed -i 's/@lru_cache(maxsize=32)/@cache/' aiter/ops/flydsl/kernels/mqa_logits/pa_mqa_logits_fp4_prefill.py \ && git submodule update --init --recursive \