[Attention][AMD] Standardize kv layout to blocks first for AMD (#43660)

Signed-off-by: NickLucche <nlucches@redhat.com>
This commit is contained in:
Nicolò Lucchesi
2026-05-28 12:28:50 -05:00
committed by GitHub
parent 53a2088675
commit 5b115bb8a3
6 changed files with 57 additions and 44 deletions
+6
View File
@@ -208,6 +208,12 @@ class RocmAttentionBackend(AttentionBackend):
def supports_non_causal(cls) -> bool:
return True
@classmethod
def supports_kv_connector(cls) -> bool:
# ROCM_ATTN uses (2, num_blocks, ...) KV cache layout which is
# incompatible with KV connectors that require blocks-first layout.
return False
forward_includes_kv_cache_update: bool = False
@staticmethod