Skip to content

Commit 35b8e96

Browse files
andyxningfhl2000
authored andcommitted
[Kernel] mark TorchSDPABackend swap_blocks NotImplementedError (vllm-project#19749)
Signed-off-by: fhl <[email protected]>
1 parent e4c65a3 commit 35b8e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/attention/backends/torch_sdpa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def swap_blocks(
6565
dst_kv_cache: torch.Tensor,
6666
src_to_dst: torch.Tensor,
6767
) -> None:
68-
PagedAttention.swap_blocks(src_kv_cache, dst_kv_cache, src_to_dst)
68+
raise NotImplementedError("Swap is not supported in TorchSDPABackend.")
6969

7070
@staticmethod
7171
def copy_blocks(

0 commit comments

Comments
 (0)