[XPU] allow TORCH_SDPA/TRITON_ATTN as XPU vit Backend (#35010)

Signed-off-by: Yan Ma <yan.ma@intel.com>
This commit is contained in:
Yan Ma
2026-02-23 05:06:44 -08:00
committed by GitHub
parent 5f68464f92
commit b1b5e045df
2 changed files with 12 additions and 4 deletions
+1
View File
@@ -89,6 +89,7 @@ class XPUPlatform(Platform):
def get_supported_vit_attn_backends(cls) -> list["AttentionBackendEnum"]:
return [
AttentionBackendEnum.FLASH_ATTN,
AttentionBackendEnum.TRITON_ATTN,
AttentionBackendEnum.TORCH_SDPA,
]