Commit a80a963
authored
attention mask & bias (#1)
* add support for attn mask
* add mask operation
* add mask operation
* add mask operation
* add interface
* add mask support
* add mask supprt
* fix up
* add bias
* add template
* add test
* clean
* clean code
* add mask load
* add mask test
* fix forward bugs
* add test
* add mask in backward
* add test case
* add bias
* add mask
* add bias test
* fix test case
* add without mask test
* add kernel test
* add ds save
* fix interface
* add test
* fix dbias
* add bias support
* add mask shape
* add test
* add support
* fix bf16 and mask shape
* fix mask head=1 shape
* add dump
* to fix len 512
* add test
* fix seqlen greater than 256
* fix bias seqlen
* add constexpr
* add const expr for bwd
* add benchmark
* add test tools
* add script
* add cross attention
* add cross attn
* fix bugs
* remove test tools
* clean fmha_api.cpp
* clean fmha_dgrad_fp16_kernel_loop.sm80.cu
* clean fmha_dgrad_kernel_1xN_loop.h
* clean fmha_fprop_fp16_kernel.sm80.cu
* clean fmha_fprop_kernel_1xN.h
* cleangmem_tile.h
* clean softmax.h
* restore test_flash_attn.py
* clean gmem_tile.h
* fix fmha_fprop_kernel_1xN.h
* fix fmha_dgrad_kernel_1xN_loop.h
* rename has_attn to has_attn_mask, has_bias to has_attn_bias
* fix fmha_fprop_kernel_1xN.h
* rename has_attn to has_attn_mask, has_bias to has_attn_bias
* remove useless benchmark code
* add declaration
* remove useless comments
* remove useless comments
* add timeout
* add default timeout for build wheel
* remove timeout
* reduce build worker for workflow oom1 parent f515c77 commit a80a963
File tree
17 files changed
+1201
-104
lines changed- .github/workflows
- csrc/flash_attn
- src
- fmha
- flash_attn
- tests
17 files changed
+1201
-104
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
0 commit comments