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
0ca3e568
"git@developer.sourcefind.cn:OpenDAS/apex.git" did not exist on "6e5d909965064bf35e1d435eda857447b4ae8ec9"
Unverified
Commit
0ca3e568
authored
May 26, 2025
by
fzyzcjy
Committed by
GitHub
May 26, 2025
Browse files
Tiny fix missing expert location dispatch info (#6620)
parent
5c7aa009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+3
-0
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
0ca3e568
...
@@ -360,6 +360,9 @@ class DeepseekV2MoE(nn.Module):
...
@@ -360,6 +360,9 @@ class DeepseekV2MoE(nn.Module):
correction_bias
=
self
.
correction_bias
,
correction_bias
=
self
.
correction_bias
,
routed_scaling_factor
=
self
.
routed_scaling_factor
,
routed_scaling_factor
=
self
.
routed_scaling_factor
,
num_token_non_padded
=
forward_batch
.
num_token_non_padded
,
num_token_non_padded
=
forward_batch
.
num_token_non_padded
,
expert_location_dispatch_info
=
ExpertLocationDispatchInfo
.
init_new
(
layer_id
=
self
.
layer_id
,
),
)
)
else
:
else
:
topk_idx
=
torch
.
full
(
topk_idx
=
torch
.
full
(
...
...
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