[AMD] Add diffusion (Wan2.2) extras to gfx1151 Docker image (#40844)

Co-authored-by: Eddie A. Tsai <56776714+vvvdwbvvv@users.noreply.github.com>
This commit is contained in:
jacky.cheng
2026-09-22 22:18:55 -07:00
committed by GitHub
co-authored by Eddie A. Tsai
parent 5b8d8b2f88
commit 58988bee2f
2 changed files with 13 additions and 1 deletions
+12 -1
View File
@@ -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]
+1
View File
@@ -83,6 +83,7 @@ runtime_common = [
srt_empty = ["sglang[runtime_base]"]
diffusion_common = [
"accelerate",
"addict",
"cloudpickle",
"diffusers==0.37.0",