forked from iree-org/iree-turbine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid flex_attention for RPE as it is unclear there is a correct implementation possible given the limitations of the create_block_mask re conditionals. Instead we use the manual torch implementation that is known to be correct. As we update the test and the extend_attention_rpe to use a static max_rpe_context_length, a new error appears that suggests some issue with the indexing in extend_attention_rpe. Repro: ``` pytest tests/kernel/wave/attention/extend_attention_test.py --run-e2e -v -k "rpe" ``` Errors out with: ``` E Diagnostics: E <stdin>:282:18: error: 'vector.gather' op operand iree-org#2 must be vector of integer or index values, but got 'index' E %468 = "vector.gather"(%109, %39, %39, %467, %44) : (memref<?xf32, strided<[1], offset: ?>>, index, index, vector<4xi1>, vector<4xf32>) -> vector<4xf32> E ^ ``` Signed-off-by: Nicolas Vasilache <nicolasvasilache@users.noreply.github.com>
- Loading branch information
1 parent
d1168c9
commit 27bae94
Showing
2 changed files
with
62 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters