Skip to content

Commit

Permalink
bugfix: fix sliding window attention tests of ragged attention api (#633
Browse files Browse the repository at this point in the history
)

The unittests of sliding window atteniton didn't pass because we forget
to set `causal` in `plan` function. This PR fixes the issue.
  • Loading branch information
yzh119 authored Nov 24, 2024
1 parent a059586 commit ae501ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_sliding_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ def test_batch_ragged_prefill_sliding_window(
num_kv_heads,
head_dim,
window_left=window_left,
causal=True,
)
o = wrapper.run(q, k, v)

Expand Down

0 comments on commit ae501ed

Please sign in to comment.