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
10a9ab7b
Unverified
Commit
10a9ab7b
authored
Mar 28, 2025
by
Kebe
Committed by
GitHub
Mar 27, 2025
Browse files
Fix error due to CustomAllreduce setup failure (#4815)
Signed-off-by:
Kebe
<
mail@kebe7jun.com
>
parent
bb0fd749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
python/sglang/srt/distributed/parallel_state.py
python/sglang/srt/distributed/parallel_state.py
+10
-4
No files found.
python/sglang/srt/distributed/parallel_state.py
View file @
10a9ab7b
...
@@ -264,10 +264,16 @@ class GroupCoordinator:
...
@@ -264,10 +264,16 @@ class GroupCoordinator:
self
.
ca_comm
:
Optional
[
CustomAllreduce
]
=
None
self
.
ca_comm
:
Optional
[
CustomAllreduce
]
=
None
if
use_custom_allreduce
and
self
.
world_size
>
1
:
if
use_custom_allreduce
and
self
.
world_size
>
1
:
# Initialize a custom fast all-reduce implementation.
# Initialize a custom fast all-reduce implementation.
self
.
ca_comm
=
CustomAllreduce
(
try
:
group
=
self
.
cpu_group
,
self
.
ca_comm
=
CustomAllreduce
(
device
=
self
.
device
,
group
=
self
.
cpu_group
,
)
device
=
self
.
device
,
)
except
Exception
as
e
:
logger
.
warning
(
f
"Setup Custom allreduce failed with
{
e
}
. To silence this "
"warning, specify --disable-custom-all-reduce explicitly."
)
from
sglang.srt.distributed.device_communicators.hpu_communicator
import
(
from
sglang.srt.distributed.device_communicators.hpu_communicator
import
(
HpuCommunicator
,
HpuCommunicator
,
...
...
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