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
61ce91ed
Unverified
Commit
61ce91ed
authored
Jun 07, 2025
by
fzyzcjy
Committed by
GitHub
Jun 06, 2025
Browse files
Tiny support customize DeepEP max dispatch tokens per rank (#6934)
parent
e6b7053b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py
python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py
+4
-2
No files found.
python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py
View file @
61ce91ed
...
...
@@ -6,7 +6,7 @@ from sglang.srt.managers.expert_distribution import (
get_global_expert_distribution_recorder
,
)
from
sglang.srt.managers.schedule_batch
import
global_server_args_dict
from
sglang.srt.utils
import
DeepEPMode
,
load_json_config
from
sglang.srt.utils
import
DeepEPMode
,
get_int_env_var
,
load_json_config
try
:
from
deep_ep
import
Buffer
,
Config
...
...
@@ -188,7 +188,9 @@ class _DeepEPDispatcherImplBase:
self
.
deepep_mode
=
deepep_mode
self
.
params_bytes
=
2
self
.
num_max_dispatch_tokens_per_rank
=
128
self
.
num_max_dispatch_tokens_per_rank
=
get_int_env_var
(
"SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK"
,
128
)
self
.
handle
=
None
...
...
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