feat: add attention dimension dispatch

This commit is contained in:
2026-07-21 12:52:45 +08:00
parent 0c86c89af4
commit f1b4b05d08
2 changed files with 54 additions and 1 deletions
+2 -1
View File
@@ -18,12 +18,13 @@ when available, otherwise falls back to ``torch.nn.functional.scaled_dot_product
"""
from astrai.extension.loader import KERNEL_NAMES, is_available
from astrai.extension.ops import attn_decode, attn_paged_decode, attn_prefill
from astrai.extension.ops import attention, attn_decode, attn_paged_decode, attn_prefill
__all__ = [
"attn_decode",
"attn_paged_decode",
"attn_prefill",
"attention",
"is_available",
"KERNEL_NAMES",
]