1. 23 Jul, 2024 2 commits
    • Tri Dao's avatar
      Clean up softcapping bwd a bit · 5ca83a9c
      Tri Dao authored
      5ca83a9c
    • rocking's avatar
      Support AMD ROCm on FlashAttention 2 (#1010) · d8f104e9
      rocking authored
      
      
      * Support ck in fmha
      
      * Add ck submodule
      
      * Do not return lse if return_softmax == false
      
      * Use receipt to speed up ck compile time
      
      * Integrate new version of ck_tile
      
      * Support dropout for mha_fwd()
      
      * Add dropout to mha_varlen_fwd()
      
      * Update ck to develop
      
      * Extract padding function for dropout randval
      
      * Extract randval transformation function
      
      * Sync the code structure and coding style with FA
      
      * Remove this line, c++ api will handle this.
      Sync with test_flash_attn.py
      
      * fix compile error
      
      * Add mha_bwd
      
      * Generate dropout seed and offset from user generator
      
      * update CK
      
      * Add mha_varlen_bwd
      
      * Use same python as build flash-attn to generate ck kernel
      
      * Fix bug of group mode fwd about returning softmax lse
      
      * larger the test tollerance
      
      * Add test_flash_attn_output() and test_flash_attn_varlen_output()
      
      * Always fill softmax_lse
      
      * Remove duplicate benchmark script, since we already implement mha_bwd
      
      * Refine get value from tuple
      
      * Use default parameter for stream_config
      
      * unblock all platform
      
      * Add comment
      
      * refine the test code
      
      * Refine naming
      
      * Add unpack to namespace
      
      * Do not hardcode the warp size 64
      
      * Add more targets
      
      * Add README
      
      * Optimize mha_fwd if seqlen_q == 1
      
      * Support get_wheel_url for rocm
      
      * Detect rocm environment by pytorch's IS_HIP_EXTENSION
      
      * update to lastest ck
      
      * Add necessary compile flag
      
      * Sync the api with upstream FA
      
      ---------
      Co-authored-by: default avatarcarlushuang <carlus.huang@amd.com>
      Co-authored-by: default avatarYichen Yan <wenji.yyc@alibaba-inc.com>
      Co-authored-by: default avatarPo Yen Chen <PoYen.Chen@amd.com>
      Co-authored-by: default avatarYichen Yan <oraluben@outlook.com>
      d8f104e9
  2. 11 Jul, 2024 2 commits
  3. 26 May, 2024 1 commit
  4. 21 Feb, 2024 1 commit
  5. 23 Jan, 2024 2 commits
  6. 08 Jan, 2024 1 commit
  7. 24 Dec, 2023 1 commit
  8. 22 Dec, 2023 1 commit
  9. 09 Oct, 2023 1 commit
  10. 08 Oct, 2023 1 commit
  11. 05 Oct, 2023 2 commits
  12. 04 Sep, 2023 1 commit
  13. 29 Aug, 2023 1 commit
  14. 25 Aug, 2023 2 commits
  15. 01 Aug, 2023 1 commit
  16. 23 Jul, 2023 1 commit
  17. 18 Jul, 2023 2 commits
  18. 17 Jul, 2023 1 commit
  19. 08 Jun, 2023 1 commit
  20. 25 May, 2023 1 commit
  21. 19 May, 2023 1 commit
  22. 17 May, 2023 1 commit
  23. 27 Apr, 2023 1 commit
  24. 12 Apr, 2023 1 commit
  25. 15 Mar, 2023 1 commit
  26. 13 Mar, 2023 1 commit
  27. 09 Feb, 2023 1 commit
  28. 27 Dec, 2022 1 commit
  29. 29 Nov, 2022 1 commit
  30. 22 Nov, 2022 1 commit
  31. 15 Nov, 2022 1 commit
  32. 14 Nov, 2022 2 commits
  33. 24 Oct, 2022 1 commit