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
39e41138
Unverified
Commit
39e41138
authored
Apr 13, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 13, 2025
Browse files
fix #5322 (#5359)
parent
5fbafbb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+0
-1
No files found.
python/sglang/srt/utils.py
View file @
39e41138
...
@@ -849,7 +849,6 @@ def broadcast_pyobj(
...
@@ -849,7 +849,6 @@ def broadcast_pyobj(
):
):
"""Broadcast inputs from rank=0 to all other ranks with torch.dist backend."""
"""Broadcast inputs from rank=0 to all other ranks with torch.dist backend."""
device
=
torch
.
device
(
"cuda"
if
torch
.
cuda
.
is_available
()
else
"cpu"
)
device
=
torch
.
device
(
"cuda"
if
torch
.
cuda
.
is_available
()
else
"cpu"
)
print
(
f
"[broadcast_pyobj] rank=
{
rank
}
, device=
{
device
}
"
)
if
rank
==
0
:
if
rank
==
0
:
if
len
(
data
)
==
0
:
if
len
(
data
)
==
0
:
...
...
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