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
3b811287
Commit
3b811287
authored
Jun 07, 2026
by
shenzhe
Browse files
Tune DSA MLS prefill dispatch thresholds
parent
ae7d4f11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
csrc/gfx93/prefill/sparse/dsa_mls/fwd.cu
csrc/gfx93/prefill/sparse/dsa_mls/fwd.cu
+8
-5
No files found.
csrc/gfx93/prefill/sparse/dsa_mls/fwd.cu
View file @
3b811287
...
...
@@ -21,15 +21,18 @@ bool can_run(const SparseAttnFwdParams& params) {
bool
should_run
(
const
SparseAttnFwdParams
&
params
)
{
if
(
!
can_run
(
params
))
return
false
;
if
(
params
.
d_qk
==
512
&&
((
params
.
h_q
==
64
&&
params
.
topk
==
512
)
||
(
params
.
h_q
==
128
&&
params
.
topk
==
1024
)))
{
if
(
params
.
d_qk
==
512
&&
params
.
h_q
==
64
&&
params
.
topk
==
512
&&
params
.
s_kv
>=
28672
)
{
return
true
;
}
if
(
params
.
d_qk
==
512
&&
params
.
h_q
==
128
&&
params
.
topk
==
1024
&&
params
.
s_kv
>=
26624
)
{
return
true
;
}
if
(
params
.
d_qk
==
576
&&
params
.
topk
==
2048
&&
((
params
.
h_q
==
64
&&
params
.
s_kv
>=
24576
)
||
(
params
.
h_q
==
128
&&
params
.
s_kv
>=
8192
)))
{
params
.
s_kv
>=
24576
)
{
return
true
;
}
...
...
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