Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _posts/2024-08-07-flexattention.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Alibi is similar to relative positional encodings with one exception \- it has a
alibi_bias = generate_alibi_bias() # [num_heads]

def alibi(score, b, h, q_idx, kv_idx):
bias = alibi_bias[h] * (q_idx - kv_idx)
bias = alibi_bias[h] * (kv_idx - q_idx)
return score + bias
```

Expand Down Expand Up @@ -479,4 +479,4 @@ We want to highlight some prior work (and people) that have inspired FlexAttenti
- The Jax team's work on SplashAttention
- Philippe Tillet and Keren Zhou for helping us with Triton
- Ali Hassani for discussions on neighborhood attention
- Everybody who's complained about attention kernels not supporting their favorite attention variant :)
- Everybody who's complained about attention kernels not supporting their favorite attention variant :)