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
FlashMLA
Commits
50e2de8d
Commit
50e2de8d
authored
Jan 28, 2026
by
zhanghj2
Browse files
处理lse为正无穷的情况
parent
5d8e93f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
csrc/smxx/decode/combine/combine.cu
csrc/smxx/decode/combine/combine.cu
+6
-3
No files found.
csrc/smxx/decode/combine/combine.cu
View file @
50e2de8d
...
@@ -96,9 +96,12 @@ flash_fwd_mla_combine_kernel(const CombineParams params) {
...
@@ -96,9 +96,12 @@ flash_fwd_mla_combine_kernel(const CombineParams params) {
}
}
else
else
{
{
float
Attn_sink_exp2
=
__builtin_amdgcn_exp2f
(
attn_sink
*
CUDART_L2E_F
);
if
(
!
flash
::
is_positive_infinity
(
global_lse
))
float
lse_exp2
=
__builtin_amdgcn_exp2f
(
global_lse
*
CUDART_L2E_F
);
{
o_scale
=
lse_exp2
/
(
lse_exp2
+
Attn_sink_exp2
);
float
Attn_sink_exp2
=
__builtin_amdgcn_exp2f
(
attn_sink
*
CUDART_L2E_F
);
float
lse_exp2
=
__builtin_amdgcn_exp2f
(
global_lse
*
CUDART_L2E_F
);
o_scale
=
lse_exp2
/
(
lse_exp2
+
Attn_sink_exp2
);
}
}
}
...
...
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