Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fuhuangpei
flash-attention
Commits
34e67b1e
Commit
34e67b1e
authored
May 09, 2026
by
zhangshao
Browse files
first commit
parents
Changes
327
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
140 additions
and
0 deletions
+140
-0
csrc/flash_attn/src/flash_fwd_split_hdim256_q_bf16_kv_e5m2_causal_sm80.cu
...src/flash_fwd_split_hdim256_q_bf16_kv_e5m2_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim256_q_bf16_kv_e5m2_sm80.cu
...h_attn/src/flash_fwd_split_hdim256_q_bf16_kv_e5m2_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim256_q_fp16_kv_e5m2_causal_sm80.cu
...src/flash_fwd_split_hdim256_q_fp16_kv_e5m2_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim256_q_fp16_kv_e5m2_sm80.cu
...h_attn/src/flash_fwd_split_hdim256_q_fp16_kv_e5m2_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim32_bf16_causal_sm80.cu
...flash_attn/src/flash_fwd_split_hdim32_bf16_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim32_bf16_sm80.cu
csrc/flash_attn/src/flash_fwd_split_hdim32_bf16_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim32_fp16_causal_sm80.cu
...flash_attn/src/flash_fwd_split_hdim32_fp16_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim32_fp16_sm80.cu
csrc/flash_attn/src/flash_fwd_split_hdim32_fp16_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_bf16_causal_sm80.cu
...flash_attn/src/flash_fwd_split_hdim64_bf16_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_bf16_sm80.cu
csrc/flash_attn/src/flash_fwd_split_hdim64_bf16_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp16_causal_sm80.cu
...flash_attn/src/flash_fwd_split_hdim64_fp16_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp16_sm80.cu
csrc/flash_attn/src/flash_fwd_split_hdim64_fp16_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_causal_sm80.cu
.../flash_attn/src/flash_fwd_split_hdim64_fp8_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_e5m2_causal_sm80.cu
...h_attn/src/flash_fwd_split_hdim64_fp8_e5m2_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_e5m2_sm80.cu
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_e5m2_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_causal_sm80.cu
...ttn/src/flash_fwd_split_hdim64_fp8_outfp16_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_e5m2_causal_sm80.cu
...rc/flash_fwd_split_hdim64_fp8_outfp16_e5m2_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_e5m2_sm80.cu
..._attn/src/flash_fwd_split_hdim64_fp8_outfp16_e5m2_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_sm80.cu
...flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_sm80.cu
+7
-0
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_sm80.cu
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_sm80.cu
+7
-0
No files found.
Too many changes to show.
To preserve performance only
327 of 327+
files are displayed.
Plain diff
Email patch
csrc/flash_attn/src/flash_fwd_split_hdim256_q_bf16_kv_e5m2_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_kv_fp8
<
cutlass
::
bfloat16_t
,
cutlass
::
float_e5m2_t
,
256
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim256_q_bf16_kv_e5m2_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_kv_fp8
<
cutlass
::
bfloat16_t
,
cutlass
::
float_e5m2_t
,
256
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim256_q_fp16_kv_e5m2_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_kv_fp8
<
cutlass
::
half_t
,
cutlass
::
float_e5m2_t
,
256
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim256_q_fp16_kv_e5m2_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_kv_fp8
<
cutlass
::
half_t
,
cutlass
::
float_e5m2_t
,
256
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim32_bf16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
bfloat16_t
,
32
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim32_bf16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
bfloat16_t
,
32
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim32_fp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
half_t
,
32
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim32_fp16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
half_t
,
32
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_bf16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
bfloat16_t
,
64
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_bf16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
bfloat16_t
,
64
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
half_t
,
64
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch
<
cutlass
::
half_t
,
64
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e4m3_t
,
cutlass
::
bfloat16_t
,
64
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_e5m2_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e5m2_t
,
cutlass
::
bfloat16_t
,
64
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_e5m2_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e5m2_t
,
cutlass
::
bfloat16_t
,
64
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e4m3_t
,
cutlass
::
half_t
,
64
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_e5m2_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e5m2_t
,
cutlass
::
half_t
,
64
,
true
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_e5m2_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e5m2_t
,
cutlass
::
half_t
,
64
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_outfp16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e4m3_t
,
cutlass
::
half_t
,
64
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
csrc/flash_attn/src/flash_fwd_split_hdim64_fp8_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2023, Tri Dao.
// Splitting the different head dimensions to different files to speed up compilation.
// This file is auto-generated. See "generate_kernels.py"
#include "flash_fwd_launch_template.h"
template
void
run_mha_fwd_splitkv_dispatch_fp8
<
cutlass
::
float_e4m3_t
,
cutlass
::
bfloat16_t
,
64
,
false
>(
Flash_fwd_params
&
params
,
cudaStream_t
stream
);
Prev
1
…
8
9
10
11
12
13
14
15
16
17
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment