[XPU] Enable FLASH_ATTN on XPU (#1332)

Signed-off-by: Yan Ma <yan.ma@intel.com>
This commit is contained in:
Yan Ma authored and GitHub committed 2026-02-26 20:28:09 +08:00
1 parent 7b75c3993a
commit cf1f4c6338
3 files changed
+115 -46

No files matched your search

@@ -68,7 +68,7 @@ else:
# If no FA backend available, SDPA backend will be selected at the platform level
# flash_attn_func and flash_attn_varlen_func will be None
HAS_FLASH_ATTN = flash_attn_func is not None
HAS_FLASH_ATTN = flash_attn_func is not None or flash_attn_varlen_func is not None
def _index_first_axis(tensor, indices):