1. 23 Jul, 2024 1 commit
  2. 22 Jul, 2024 1 commit
    • Phil Wang's avatar
      backwards for softcapping (#1033) · 5f1ae4a3
      Phil Wang authored
      * check in the two ways of approaching backwards for softcapping, both functional
      
      * prepare the softcap switch for backwards
      
      * temporary
      
      * cleanup to the way Tri prefers
      
      * calculate dtanh when copying from scores -> dtanh Tensor
      
      * no ternary operators allowed for constexpr, so just use some hack found online
      
      * fix maybe_dtanh, restore some files
      
      * restore another file
      
      * move calculate_dtanh to utils and colocate with apply_softcap
      
      * cleanup
      
      * maybe last cleanup
      
      * save for another pr
      
      * remove a stray line
      
      * fix spacing
      
      * fix an issue, and make test_flash_attn.py ready to test softcapping backwards
      5f1ae4a3
  3. 11 Jul, 2024 1 commit
  4. 10 Jul, 2024 4 commits
  5. 08 Jul, 2024 1 commit
  6. 03 Jul, 2024 1 commit
  7. 01 Jul, 2024 1 commit
  8. 27 Jun, 2024 1 commit
  9. 05 Apr, 2024 1 commit
  10. 15 Mar, 2024 1 commit
  11. 21 Feb, 2024 1 commit
  12. 23 Jan, 2024 1 commit
  13. 21 Jan, 2024 1 commit
  14. 14 Jan, 2024 1 commit
  15. 13 Jan, 2024 1 commit
  16. 05 Jan, 2024 2 commits
  17. 04 Jan, 2024 1 commit
  18. 25 Dec, 2023 3 commits
  19. 24 Dec, 2023 1 commit
  20. 23 Dec, 2023 1 commit
  21. 22 Dec, 2023 2 commits
  22. 20 Dec, 2023 2 commits
    • Sanghun Cho's avatar
      Support alibi, by Sanghun Cho from Kakao Brain · e4f726fc
      Sanghun Cho authored
      
      
      * hard-code alibi in fwd
      
      * use params.h as hun_heads
      
      * hard-code alibi in bwd
      
      * add alibi on/off option
      
      * compute alibi_start, ratio outside of kernels
      
      * fix minor merge conflict
      
      * add test_alibi.py
      
      * change apply_alibi() location before masking
      
      * add alibi in splitkv kernel
      
      * fix backward func # of returns
      
      * add out-of-bound check in apply_alibi()
      
      * update test_alibi.py
      
      * update test_alibi.py for kvcache
      
      * simplify alibi parameter interface
      
      * fix performance issue
      by computing alibi outside of branch
      
      * update test_flash_attn_varlen_func() for left padding
      
      * implement alibi_slopes (b, nh) loading
      
      * optimize apply_alibi() a bit
      
      * update test cases for alibi_slopes loading
      
      * reflect stylistic comments
      
      * disable "seqlenq_ngroups_swapped" when using alibi
      
      ---------
      Co-authored-by: default avatarmonk.detective <monk.detective@kakaobrain.com>
      e4f726fc
    • Tri Dao's avatar
      cd089597
  23. 17 Dec, 2023 2 commits
  24. 01 Dec, 2023 1 commit
  25. 20 Nov, 2023 2 commits
  26. 14 Nov, 2023 1 commit
  27. 13 Nov, 2023 1 commit
  28. 03 Oct, 2023 1 commit
  29. 26 Sep, 2023 1 commit
  30. 24 Sep, 2023 1 commit