forked from PaddlePaddle/Paddle
-
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.
Additional mask support on FA2 (PaddlePaddle#57276)
* Add addition mask support. Tested on FlashAttnKernel. * Fix bug in fwd (temporarily). Add masked support on bwd. Unpadded kernel to be tested. * Add unscale on padded kernel. * Add varlen mask. * Remove redundant compute_scale_q * Remove redundant comment. Fix ci: PADDLE_ENFORCE format. Remove test case: return_softmax && dropout==0 * Add mask type check. * Update submodules.
- Loading branch information
1 parent
7887923
commit c5920c1
Showing
5 changed files
with
791 additions
and
221 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
Oops, something went wrong.