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
d1c9d3fa
Commit
d1c9d3fa
authored
Jan 29, 2026
by
zhanghj2
Browse files
topk_length=0的时候,gMax_logits=-inf
parent
dd5d4bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/sm90/prefill/sparse/phase1.cuh
csrc/sm90/prefill/sparse/phase1.cuh
+1
-1
No files found.
csrc/sm90/prefill/sparse/phase1.cuh
View file @
d1c9d3fa
...
@@ -464,7 +464,7 @@ __device__ void KernelTemplate<D_QK, HAVE_TOPK_LENGTH>::devfunc(const SparseAttn
...
@@ -464,7 +464,7 @@ __device__ void KernelTemplate<D_QK, HAVE_TOPK_LENGTH>::devfunc(const SparseAttn
}
}
}
}
gLSE
[
row
]
=
lse
(
mi
);
gLSE
[
row
]
=
lse
(
mi
);
gMax_logits
[
row
]
=
softmax
.
row_max
(
mi
)
*
params
.
sm_scale
;
gMax_logits
[
row
]
=
topk_length
==
0
?
-
INFINITY
:
softmax
.
row_max
(
mi
)
*
params
.
sm_scale
;
}
}
}
}
}
}
...
...
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