[V1][Kernel] Refactor the prefix_prefill kernel so that the caller no longer has to pass in the context lengths (#13095)

This commit is contained in:
Sage Moore
2025-02-22 05:25:41 -08:00
committed by GitHub
parent e109e598c7
commit 558db8083c
6 changed files with 12 additions and 31 deletions
+1 -3
View File
@@ -202,7 +202,6 @@ class PagedAttention:
block_tables: torch.Tensor,
query_start_loc: torch.Tensor,
seq_lens_tensor: torch.Tensor,
context_lens: torch.Tensor,
max_query_len: int,
alibi_slopes: Optional[torch.Tensor],
sliding_window: Optional[int],
@@ -220,9 +219,8 @@ class PagedAttention:
value_cache,
block_tables,
# query_start_loc is (batch_size + 1,)
query_start_loc[:-1],
query_start_loc,
seq_lens_tensor,
context_lens,
max_query_len,
k_scale,
v_scale,