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
change
sglang
Commits
c674bf9c
Unverified
Commit
c674bf9c
authored
Aug 21, 2025
by
Cao E
Committed by
GitHub
Aug 20, 2025
Browse files
Fix biased_grouped_topk_cpu (#9420)
parent
af1973b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/sglang/srt/layers/moe/topk.py
python/sglang/srt/layers/moe/topk.py
+2
-0
No files found.
python/sglang/srt/layers/moe/topk.py
View file @
c674bf9c
...
...
@@ -709,8 +709,10 @@ def biased_grouped_topk_cpu(
routed_scaling_factor
:
Optional
[
float
]
=
None
,
num_token_non_padded
:
Optional
[
torch
.
Tensor
]
=
None
,
expert_location_dispatch_info
:
Optional
[
ExpertLocationDispatchInfo
]
=
None
,
apply_routed_scaling_factor_on_output
:
Optional
[
bool
]
=
False
,
):
assert
expert_location_dispatch_info
is
None
assert
not
apply_routed_scaling_factor_on_output
,
"Not implemented"
return
torch
.
ops
.
sgl_kernel
.
biased_grouped_topk_cpu
(
hidden_states
,
gating_output
,
...
...
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