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
59d0bf01
Unverified
Commit
59d0bf01
authored
Jul 29, 2025
by
fzyzcjy
Committed by
GitHub
Jul 28, 2025
Browse files
Tiny add warnings for DeepEP when it is suboptimal (#8426)
parent
7df2c0c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py
python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py
+14
-0
No files found.
python/sglang/srt/layers/moe/ep_moe/token_dispatcher.py
View file @
59d0bf01
...
@@ -157,6 +157,20 @@ class DeepEPBuffer:
...
@@ -157,6 +157,20 @@ class DeepEPBuffer:
else
:
else
:
raise
NotImplementedError
raise
NotImplementedError
total_num_sms
=
torch
.
cuda
.
get_device_properties
(
device
=
"cuda"
).
multi_processor_count
if
(
(
deepep_mode
!=
DeepEPMode
.
low_latency
)
and
not
global_server_args_dict
[
"enable_two_batch_overlap"
]
and
(
DeepEPConfig
.
get_instance
().
num_sms
<
total_num_sms
//
2
)
):
logger
.
warning
(
f
"Only use
{
DeepEPConfig
.
get_instance
().
num_sms
}
SMs for DeepEP communication. "
f
"This may result in highly suboptimal performance. "
f
"Consider using --deepep-config to change the behavior."
)
cls
.
_buffer
=
Buffer
(
cls
.
_buffer
=
Buffer
(
group
,
group
,
num_nvl_bytes
,
num_nvl_bytes
,
...
...
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