[Fix] Fix cuda graph padding for triton attention backend (#1782)

This commit is contained in:
Lianmin Zheng
2024-10-24 12:33:15 -07:00
committed by GitHub
parent 0089c4bc96
commit fc82f5a743
6 changed files with 3 additions and 19 deletions
@@ -161,9 +161,6 @@ class DoubleSparseAttnBackend(AttentionBackend):
self.cuda_graph_start_loc.zero_()
self.cuda_graph_start_loc[1:bs] = torch.cumsum(seq_lens[: bs - 1], dim=0)
def get_cuda_graph_seq_len_fill_value(self):
return 1
def forward_extend(
self, q, k, v, layer: RadixAttention, forward_batch: ForwardBatch
):