Skip to content

Commit

Permalink
bugfix: fix append_paged_kv_cache test (#625)
Browse files Browse the repository at this point in the history
Co-authored-by: junq <[email protected]>
  • Loading branch information
QiJune and junq authored Nov 21, 2024
1 parent ba1d8c3 commit 9cba9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_append_paged_kv_cache(contiguous):
kv_last_page_len = torch.tensor([13, 8, 9, 6], dtype=torch.int32, device="cuda:0")
batch_indices, positions = flashinfer.get_batch_indices_positions(
kv_append_indptr,
flashinfer.get_seq_lens(kv_append_indptr, kv_last_page_len, page_size),
flashinfer.get_seq_lens(kv_page_indptr, kv_last_page_len, page_size),
nnz_kv,
)

Expand Down

0 comments on commit 9cba9fb

Please sign in to comment.