[Feature] Flash Attention to Support Attention Mask (#760)

Signed-off-by: Didan Deng <33117903+wtomin@users.noreply.github.com>
This commit is contained in:
Didan Deng authored and GitHub committed 2026-01-16 11:01:11 +08:00
1 parent 35f994e255
commit 43ec7f701b
6 files changed
+566 -12

No files matched your search

@@ -31,6 +31,8 @@ _BACKEND_CONFIG = {
"ASCEND": {"module": "vllm_omni.diffusion.attention.backends.ascend_attn", "class": "AscendAttentionBackend"},
}
_BACKENDS_SUPPORT_ATTENTION_MASK = ["SDPA", "ASCEND", "FLASH_ATTN"]
def load_backend(backend_name: str) -> type[AttentionBackend]:
config = _BACKEND_CONFIG[backend_name]