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
673ff668
Unverified
Commit
673ff668
authored
May 28, 2025
by
fzyzcjy
Committed by
GitHub
May 27, 2025
Browse files
Speed up expert location update (#6661)
parent
447be242
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
python/sglang/srt/model_executor/expert_location_updater.py
python/sglang/srt/model_executor/expert_location_updater.py
+2
-9
No files found.
python/sglang/srt/model_executor/expert_location_updater.py
View file @
673ff668
...
...
@@ -12,7 +12,6 @@
# limitations under the License.
# ==============================================================================
import
logging
from
datetime
import
timedelta
from
typing
import
Dict
,
List
,
Tuple
import
torch
...
...
@@ -348,14 +347,8 @@ def update_expert_weights_single_layer(
return
reqs
=
torch
.
distributed
.
batch_isend_irecv
(
p2p_ops
)
try
:
for
req
in
reqs
:
req
.
wait
(
timeout
=
timedelta
(
seconds
=
30
))
except
RuntimeError
:
logger
.
error
(
f
"Context:
{
rank
=
}
{
old_physical_to_logical_map
=
}
{
new_physical_to_logical_map
=
}
{
num_local_physical_experts
=
}
{
num_gpu_per_node
=
}
"
)
raise
req
.
wait
()
def
_execute_buffer2weight_copies
(
buffer2weight_copy_infos
):
for
(
...
...
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