Support HuggingFace kernels package for native diffusion attention backends (#4926)

Signed-off-by: samithuang <285365963@qq.com>
Signed-off-by: Samit <285365963@qq.com>
This commit is contained in:
Samit authored and GitHub committed 2026-07-08 14:34:36 +08:00
1 parent 4908b85731
commit b96bc5ac87
9 files changed
+601

No files matched your search

+8
View File
@@ -88,6 +88,14 @@ class RocmOmniPlatform(OmniPlatform, RocmPlatform):
if selected_backend is not None:
backend_upper = selected_backend.upper()
if backend_upper in ("FLASH_ATTN_HUB", "FLASH_ATTN_3_HUB"):
logger.warning(
"HuggingFace kernels-backed FlashAttention is "
"not supported on ROCm. Falling back to local "
"FLASH_ATTN."
)
backend_upper = "FLASH_ATTN"
if backend_upper == "FLASH_ATTN" and not aiter_supported:
logger.warning(
"Flash Attention requires `aiter` library which is only supported "