From 58988bee2f149b791a537174c1b33629cc57de86 Mon Sep 17 00:00:00 2001 From: "jacky.cheng" Date: Wed, 23 Sep 2026 13:18:55 +0800 Subject: [PATCH] [AMD] Add diffusion (Wan2.2) extras to gfx1151 Docker image (#40844) Co-authored-by: Eddie A. Tsai <56776714+vvvdwbvvv@users.noreply.github.com> --- docker/rocm-gfx1151.Dockerfile | 13 ++++++++++++- python/pyproject_other.toml | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docker/rocm-gfx1151.Dockerfile b/docker/rocm-gfx1151.Dockerfile index 469d926557..cc80e785be 100644 --- a/docker/rocm-gfx1151.Dockerfile +++ b/docker/rocm-gfx1151.Dockerfile @@ -113,7 +113,7 @@ from pathlib import Path project = tomllib.loads(Path("python/pyproject.toml").read_text())["project"] extras = project["optional-dependencies"] requirements = list(project["dependencies"]) -for group in ("runtime_base", "runtime_common", "srt_hip"): +for group in ("runtime_base", "runtime_common", "srt_hip", "diffusion_common"): requirements.extend( "compressed-tensors==0.15.0" if requirement == "compressed-tensors" @@ -121,6 +121,17 @@ for group in ("runtime_base", "runtime_common", "srt_hip"): for requirement in extras[group] if not requirement.startswith("sglang[") and requirement != "torch" ) +# diffusion_hip's pure-Python packages, needed by sglang.multimodal_gen +# (Wan2.2/video-gen) at import time. st_attn/vsa are deliberately left out: +# they're prebuilt CUDA-oriented wheels of unverified gfx1151 compatibility, +# same posture as skipping aiter's compiled CDNA kernels below. +requirements.extend( + requirement + for requirement in extras["diffusion_hip"] + if not requirement.startswith("sglang[") + and not requirement.startswith("st_attn") + and not requirement.startswith("vsa") +) requirements = list(dict.fromkeys(requirements)) subprocess.check_call( [sys.executable, "-m", "pip", "install", "--no-cache-dir", *requirements] diff --git a/python/pyproject_other.toml b/python/pyproject_other.toml index 178d6aa2a7..1e306b2b4d 100755 --- a/python/pyproject_other.toml +++ b/python/pyproject_other.toml @@ -83,6 +83,7 @@ runtime_common = [ srt_empty = ["sglang[runtime_base]"] diffusion_common = [ + "accelerate", "addict", "cloudpickle", "diffusers==0.37.0",