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
OpenDAS
flash-attention
Commits
34e67b1e
Commit
34e67b1e
authored
May 09, 2026
by
zhangshao
Browse files
first commit
parents
Pipeline
#3582
failed with stages
in 0 seconds
Changes
327
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
188 additions
and
0 deletions
+188
-0
csrc/flash_attn/src/flash_bwd_hdim160_bf16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim160_bf16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim160_bf16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim160_bf16_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim160_fp16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim160_fp16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim160_fp16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim160_fp16_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim192_bf16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim192_bf16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim192_bf16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim192_bf16_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim192_fp16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim192_fp16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim192_fp16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim192_fp16_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_bf16_causal_sm80.cu
...sh_attn/src/flash_bwd_hdim192_hdim128_bf16_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_bf16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_bf16_sm80.cu
+7
-0
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_fp16_causal_sm80.cu
...sh_attn/src/flash_bwd_hdim192_hdim128_fp16_causal_sm80.cu
+7
-0
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_fp16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_fp16_sm80.cu
+7
-0
csrc/flash_attn/src/flash_bwd_hdim224_bf16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim224_bf16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim224_bf16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim224_bf16_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim224_fp16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim224_fp16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim224_fp16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim224_fp16_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim256_bf16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim256_bf16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim256_bf16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim256_bf16_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim256_fp16_causal_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim256_fp16_causal_sm80.cu
+10
-0
csrc/flash_attn/src/flash_bwd_hdim256_fp16_sm80.cu
csrc/flash_attn/src/flash_bwd_hdim256_fp16_sm80.cu
+10
-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_bwd_hdim160_bf16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
160
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim160
<
cutlass
::
bfloat16_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim160_bf16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
160
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim160
<
cutlass
::
bfloat16_t
,
false
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim160_fp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
160
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim160
<
cutlass
::
half_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim160_fp16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
160
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim160
<
cutlass
::
half_t
,
false
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim192_bf16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
192
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192
<
cutlass
::
bfloat16_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim192_bf16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
192
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192
<
cutlass
::
bfloat16_t
,
false
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim192_fp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
192
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192
<
cutlass
::
half_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim192_fp16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
192
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192
<
cutlass
::
half_t
,
false
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_bf16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
#include "flash_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_mla_
<
cutlass
::
bfloat16_t
,
192
,
128
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192_hdim128
<
cutlass
::
bfloat16_t
,
true
>
(
params
,
stream
);
}
\ No newline at end of file
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_bf16_sm80.cu
0 → 100644
View file @
34e67b1e
#include "flash_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_mla_
<
cutlass
::
bfloat16_t
,
192
,
128
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192_hdim128
<
cutlass
::
bfloat16_t
,
false
>
(
params
,
stream
);
}
\ No newline at end of file
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_fp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
#include "flash_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_mla_
<
cutlass
::
half_t
,
192
,
128
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192_hdim128
<
cutlass
::
half_t
,
true
>
(
params
,
stream
);
}
\ No newline at end of file
csrc/flash_attn/src/flash_bwd_hdim192_hdim128_fp16_sm80.cu
0 → 100644
View file @
34e67b1e
#include "flash_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_mla_
<
cutlass
::
half_t
,
192
,
128
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim192_hdim128
<
cutlass
::
half_t
,
false
>
(
params
,
stream
);
}
\ No newline at end of file
csrc/flash_attn/src/flash_bwd_hdim224_bf16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
224
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim224
<
cutlass
::
bfloat16_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim224_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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
224
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim224
<
cutlass
::
bfloat16_t
,
false
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim224_fp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
224
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim224
<
cutlass
::
half_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim224_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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
224
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim224
<
cutlass
::
half_t
,
false
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim256_bf16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
256
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim256
<
cutlass
::
bfloat16_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim256_bf16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
bfloat16_t
,
256
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim256
<
cutlass
::
bfloat16_t
,
false
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim256_fp16_causal_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
256
,
true
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim256
<
cutlass
::
half_t
,
true
>
(
params
,
stream
);
}
csrc/flash_attn/src/flash_bwd_hdim256_fp16_sm80.cu
0 → 100644
View file @
34e67b1e
// Copyright (c) 2024, 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_bwd_launch_template.h"
template
<
>
void
run_mha_bwd_
<
cutlass
::
half_t
,
256
,
false
>
(
Flash_bwd_params
&
params
,
cudaStream_t
stream
)
{
run_mha_bwd_hdim256
<
cutlass
::
half_t
,
false
>
(
params
,
stream
);
}
Prev
1
2
3
4
5
6
7
8
…
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