Uh oh!
There was an error while loading. Please reload this page.
Add FP8 fused attention - #155
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently, the |
timmoon10
left a comment
There was a problem hiding this comment.
Overall looks good to me. I'm happy once the tests are green.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
timmoon10
commented
Apr 18, 2023
/te-ci |
Uh oh!
There was an error while loading. Please reload this page.
timmoon10
commented
Apr 18, 2023
/te-ci |
1 similar comment
timmoon10
commented
Apr 18, 2023
/te-ci |
cyanguwa
commented
Apr 18, 2023
/te_ci |
1 similar comment
cyanguwa
commented
Apr 18, 2023
/te_ci |
timmoon10
commented
Apr 18, 2023
/te-ci |
1 similar comment
timmoon10
commented
Apr 18, 2023
/te-ci |
ptrendx
commented
Apr 19, 2023
@cyanguwa please clean the commit history in this PR - right now it includes a whole bunch of unrelated commits. |
cyanguwa
commented
Apr 19, 2023
/te-ci |
Signed-off-by: Charlene Yang <charleney@nvidia.com>
8384086 to
c3795e0Comparecyanguwa
commented
Apr 19, 2023
/te-ci |
… refactor some headers for aesthetics Signed-off-by: Charlene Yang <charleney@nvidia.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Charlene Yang <charleney@nvidia.com>
Signed-off-by: Charlene Yang <charleney@nvidia.com>
eb2e5e8 to
4a1efe8CompareSigned-off-by: Charlene Yang <charleney@nvidia.com>
cyanguwa
commented
Apr 20, 2023
/te-ci |
Signed-off-by: Charlene Yang <charleney@nvidia.com>
Signed-off-by: Charlene Yang <charleney@nvidia.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…merEngine into fp8_flash_attn_new_api Signed-off-by: Charlene Yang <charleney@nvidia.com>
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Charlene Yang <charleney@nvidia.com>
Signed-off-by: Charlene Yang <charleney@nvidia.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Charlene Yang <charleney@nvidia.com>
Signed-off-by: Charlene Yang <charleney@nvidia.com>
cyanguwa
commented
Apr 20, 2023
/te-ci |
Co-authored-by: Charlene Yang <charleney@nvidia.com> Signed-off-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
ksivaman
commented
Apr 21, 2023
/te-ci |
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Charlene Yang <charleney@nvidia.com>
cyanguwa
commented
Apr 21, 2023
/te-ci |
Signed-off-by: Charlene Yang <charleney@nvidia.com>
cyanguwa
commented
Apr 21, 2023
/te-ci |
Signed-off-by: Charlene Yang <charleney@nvidia.com>
cyanguwa
commented
Apr 21, 2023
/te-ci |
ksivaman
commented
Apr 21, 2023
Pipeline 8043078 |
* Add FP8 fused attention to TE for PyTorch Signed-off-by: Charlene Yang <charleney@nvidia.com> * add license for cudnn-frontend, modify installation requirements, and refactor some headers for aesthetics Signed-off-by: Charlene Yang <charleney@nvidia.com> * add c api docs for fused attention Signed-off-by: Charlene Yang <charleney@nvidia.com> * add exception for unsupported precision/sequence length combinations Signed-off-by: Charlene Yang <charleney@nvidia.com> * fix installation requirement for non fused attn use cases Signed-off-by: Charlene Yang <charleney@nvidia.com> * fix docs for fused-attn Signed-off-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> * prefix enums with NVTE_ and replace old MHA_Matrix with NVTE_QKV_Matrix Signed-off-by: Charlene Yang <charleney@nvidia.com> * minor fixes based on PR comments Signed-off-by: Charlene Yang <charleney@nvidia.com> * fix description for kvpacked fwd Signed-off-by: Charlene Yang <charleney@nvidia.com> * fix description of Bias in C api Signed-off-by: Charlene Yang <charleney@nvidia.com> * minor fixes for cudnn requirement and description for QKV tensors Signed-off-by: Charlene Yang <charleney@nvidia.com> * fix QKV layout description and support matrix for C api Signed-off-by: Charlene Yang <charleney@nvidia.com> * add asserts to cpp_extensions for qkv layout/bias type/attn mask type Signed-off-by: Charlene Yang <charleney@nvidia.com> * fix typo precision Signed-off-by: Charlene Yang <charleney@nvidia.com> --------- Signed-off-by: Charlene Yang <charleney@nvidia.com> Signed-off-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> Co-authored-by: Charlene Yang <charleney@nvidia.com> Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
This PR adds the cuDNN-based fused attention to Transformer Engine. It provides two low-level PyTorch and C APIs for the forward and backward passes of a dot product attention calculation, i.e. BMM1 -> Softmax -> Dropout -> BMM2.
fused_attn_fwd_qkvpacked,fused_attn_bwd_qkvpacked,fused_attn_fwd_kvpacked,fused_attn_bwd_kvpackednvte_fused_attn_fwd_qkvpacked,nvte_fused_attn_bwd_qkvpacked,nvte_fused_attn_fwd_qkvpacked,nvte_fused_attn_bwd_qkvpackedIt focuses on FP8 and PyTorch but it provides a template for adding other future fused attention implementations to Transformer Engine.