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
98f93db1
Unverified
Commit
98f93db1
authored
Jul 26, 2025
by
徐畅
Committed by
GitHub
Jul 26, 2025
Browse files
[Bugfix] Remove redundant T.fill to fix precision issue (#667)
parent
722c2a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/flash_decoding/example_gqa_decode.py
examples/flash_decoding/example_gqa_decode.py
+1
-1
No files found.
examples/flash_decoding/example_gqa_decode.py
View file @
98f93db1
...
@@ -169,7 +169,7 @@ def flashattn(batch, heads, groups, seqlen_kv, dim, block_N, block_H, num_split,
...
@@ -169,7 +169,7 @@ def flashattn(batch, heads, groups, seqlen_kv, dim, block_N, block_H, num_split,
T
.
fill
(
scores_max
,
-
T
.
infinity
(
accum_dtype
))
T
.
fill
(
scores_max
,
-
T
.
infinity
(
accum_dtype
))
loop_range
=
T
.
ceildiv
((
seqlen_kv
//
num_split
),
block_N
)
loop_range
=
T
.
ceildiv
((
seqlen_kv
//
num_split
),
block_N
)
T
.
fill
(
K_shared
,
0
)
for
k
in
T
.
Pipelined
(
loop_range
,
num_stages
=
num_stages
):
for
k
in
T
.
Pipelined
(
loop_range
,
num_stages
=
num_stages
):
T
.
copy
(
T
.
copy
(
K
[
bid
,
(
seqlen_kv
//
num_split
)
*
sid
+
K
[
bid
,
(
seqlen_kv
//
num_split
)
*
sid
+
...
...
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