-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Wave] Add self_index, predicate, and selectOp to implement causal at…
…tention (#452) - Extracted core pieces of self_index, predicate, and selectOp, and LIT for predicate and select written by @nicolasvasilache and @ftynse which is required for causal mask and remove causal mask unrelated pieces. - Implemented a numerically correct causal attention kernel based on original from @nicolasvasilache - Added GPR_NUM partitioning support for SelfIndex to allow causal to work on more MMA intrinsics(i.e 32x32x8 which has GPR_NUMs) - Refactored tkw.slt/sgt/sge/sle to be operator.lt/gt/ge/le to preserve number of tkw ops and for user ergonomics - Refactored vanilla kernel to support both in single kernel, controlled by is_causal flag - Add support on handle_op to take in multiple Ops that map to same function. - Added a bunch of LIT tests --------- Signed-off-by: Alex Zinenko <[email protected]> Signed-off-by: Nicolas Vasilache <[email protected]> Signed-off-by: Stanley Winata <[email protected]> Co-authored-by: Alex Zinenko <[email protected]> Co-authored-by: Nicolas Vasilache <[email protected]>
- Loading branch information
1 parent
915d24c
commit 7038127
Showing
9 changed files
with
628 additions
and
31 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
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
Oops, something went wrong.