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
5ccf8fe1
"...text-generation-inference.git" did not exist on "c8c7ccd31e1e760d216c9d2f2b17b0d984ed033b"
Unverified
Commit
5ccf8fe1
authored
May 26, 2025
by
fzyzcjy
Committed by
GitHub
May 25, 2025
Browse files
Hint users when weight update timeouts (#6570)
parent
3f23d8cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
python/sglang/srt/model_executor/expert_location_updater.py
python/sglang/srt/model_executor/expert_location_updater.py
+8
-2
No files found.
python/sglang/srt/model_executor/expert_location_updater.py
View file @
5ccf8fe1
...
@@ -338,8 +338,14 @@ def update_expert_weights_single_layer(
...
@@ -338,8 +338,14 @@ def update_expert_weights_single_layer(
return
return
reqs
=
torch
.
distributed
.
batch_isend_irecv
(
p2p_ops
)
reqs
=
torch
.
distributed
.
batch_isend_irecv
(
p2p_ops
)
for
req
in
reqs
:
try
:
req
.
wait
()
for
req
in
reqs
:
req
.
wait
(
timeout
=
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
def
_execute_buffer2weight_copies
(
buffer2weight_copy_infos
):
def
_execute_buffer2weight_copies
(
buffer2weight_copy_infos
):
for
(
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