Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
a8811d9b
"src/include/threadwise_direct_convolution.hip.hpp" did not exist on "39775d484c4d15a5b895edfc9d2323f05ab2d3d4"
Commit
a8811d9b
authored
Jun 29, 2025
by
Nathan Chen
Committed by
LeiWang1999
Jun 29, 2025
Browse files
[Bugfix] Fixed mha_bwd shape inconsistency error (#604)
parent
3b52738d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/flash_attention/example_mha_bwd.py
examples/flash_attention/example_mha_bwd.py
+2
-2
No files found.
examples/flash_attention/example_mha_bwd.py
View file @
a8811d9b
...
@@ -176,8 +176,8 @@ def flashattn_bwd(batch, heads, seq_len, dim, is_causal, block_M, block_N):
...
@@ -176,8 +176,8 @@ def flashattn_bwd(batch, heads, seq_len, dim, is_causal, block_M, block_N):
dv
=
T
.
alloc_fragment
([
block_M
,
dim
],
accum_dtype
)
dv
=
T
.
alloc_fragment
([
block_M
,
dim
],
accum_dtype
)
dk
=
T
.
alloc_fragment
([
block_M
,
dim
],
accum_dtype
)
dk
=
T
.
alloc_fragment
([
block_M
,
dim
],
accum_dtype
)
dq
=
T
.
alloc_fragment
([
block_N
,
dim
],
accum_dtype
)
dq
=
T
.
alloc_fragment
([
block_N
,
dim
],
accum_dtype
)
dv_shared
=
T
.
alloc_shared
([
block_
N
,
dim
],
dtype
)
dv_shared
=
T
.
alloc_shared
([
block_
M
,
dim
],
dtype
)
dk_shared
=
T
.
alloc_shared
([
block_
N
,
dim
],
dtype
)
dk_shared
=
T
.
alloc_shared
([
block_
M
,
dim
],
dtype
)
T
.
annotate_layout
({
T
.
annotate_layout
({
dQ
:
make_dq_layout
(
dQ
),
dQ
:
make_dq_layout
(
dQ
),
...
...
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