Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c7c80af0
Unverified
Commit
c7c80af0
authored
Aug 27, 2025
by
yzds
Committed by
GitHub
Aug 26, 2025
Browse files
fix pynccl reduce_scatter (#23648)
Co-authored-by:
hongchao
<
hongchao@msh.team
>
parent
6891205b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/distributed/device_communicators/cuda_communicator.py
vllm/distributed/device_communicators/cuda_communicator.py
+3
-3
No files found.
vllm/distributed/device_communicators/cuda_communicator.py
View file @
c7c80af0
...
@@ -152,7 +152,7 @@ class CudaCommunicator(DeviceCommunicatorBase):
...
@@ -152,7 +152,7 @@ class CudaCommunicator(DeviceCommunicatorBase):
dtype
=
input_tensor
.
dtype
,
dtype
=
input_tensor
.
dtype
,
device
=
input_tensor
.
device
)
device
=
input_tensor
.
device
)
pynccl_comm
.
reduce_scatter
(
output
,
input_
)
pynccl_comm
.
reduce_scatter
(
output
,
input_
tensor
)
# Reshape before returning
# Reshape before returning
return
output
.
movedim
(
0
,
dim
).
contiguous
()
return
output
.
movedim
(
0
,
dim
).
contiguous
()
...
@@ -186,9 +186,9 @@ class CudaCommunicator(DeviceCommunicatorBase):
...
@@ -186,9 +186,9 @@ class CudaCommunicator(DeviceCommunicatorBase):
device
=
input_tensor
.
device
)
device
=
input_tensor
.
device
)
if
sizes
is
not
None
:
if
sizes
is
not
None
:
pynccl_comm
.
reduce_scatterv
(
output
,
input_
,
sizes
=
sizes
)
pynccl_comm
.
reduce_scatterv
(
output
,
input_
tensor
,
sizes
=
sizes
)
else
:
else
:
pynccl_comm
.
reduce_scatter
(
output
,
input_
)
pynccl_comm
.
reduce_scatter
(
output
,
input_
tensor
)
# Reshape before returning
# Reshape before returning
return
output
.
movedim
(
0
,
dim
).
contiguous
()
return
output
.
movedim
(
0
,
dim
).
contiguous
()
...
...
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