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
21156ff1
Unverified
Commit
21156ff1
authored
Jan 06, 2026
by
kzwrime
Committed by
GitHub
Jan 06, 2026
Browse files
[Bugfix] Add missing extra_tensors arg to DeviceCommunicatorBase.disp… (#31644)
Signed-off-by:
kunzh
<
zhikun.wu@outlook.com
>
parent
c455b771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
vllm/distributed/device_communicators/base_device_communicator.py
...tributed/device_communicators/base_device_communicator.py
+1
-0
vllm/distributed/device_communicators/xpu_communicator.py
vllm/distributed/device_communicators/xpu_communicator.py
+8
-5
No files found.
vllm/distributed/device_communicators/base_device_communicator.py
View file @
21156ff1
...
@@ -285,6 +285,7 @@ class DeviceCommunicatorBase:
...
@@ -285,6 +285,7 @@ class DeviceCommunicatorBase:
hidden_states
:
torch
.
Tensor
,
hidden_states
:
torch
.
Tensor
,
router_logits
:
torch
.
Tensor
,
router_logits
:
torch
.
Tensor
,
is_sequence_parallel
:
bool
=
False
,
is_sequence_parallel
:
bool
=
False
,
extra_tensors
:
list
[
torch
.
Tensor
]
|
None
=
None
,
)
->
tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
)
->
tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
"""
"""
Dispatch the hidden states and router logits to the appropriate device.
Dispatch the hidden states and router logits to the appropriate device.
...
...
vllm/distributed/device_communicators/xpu_communicator.py
View file @
21156ff1
...
@@ -23,11 +23,11 @@ class XpuCommunicator(DeviceCommunicatorBase):
...
@@ -23,11 +23,11 @@ class XpuCommunicator(DeviceCommunicatorBase):
):
):
super
().
__init__
(
cpu_group
,
device
,
device_group
,
unique_name
)
super
().
__init__
(
cpu_group
,
device
,
device_group
,
unique_name
)
if
self
.
use_all2all
:
if
self
.
use_all2all
:
if
self
.
all2all_backend
!=
"naive"
:
if
self
.
all2all_backend
!=
"naive"
:
# type: ignore[has-type]
logger
.
warning
(
logger
.
warning
(
"`%s` all2all manager is not supported on XPU. "
"`%s` all2all manager is not supported on XPU. "
"Falling back to `naive` all2all manager for XPU."
,
"Falling back to `naive` all2all manager for XPU."
,
self
.
all2all_backend
,
self
.
all2all_backend
,
# type: ignore[has-type]
)
)
self
.
all2all_backend
=
"naive"
self
.
all2all_backend
=
"naive"
if
self
.
all2all_backend
==
"naive"
:
if
self
.
all2all_backend
==
"naive"
:
...
@@ -78,12 +78,15 @@ class XpuCommunicator(DeviceCommunicatorBase):
...
@@ -78,12 +78,15 @@ class XpuCommunicator(DeviceCommunicatorBase):
hidden_states
:
torch
.
Tensor
,
hidden_states
:
torch
.
Tensor
,
router_logits
:
torch
.
Tensor
,
router_logits
:
torch
.
Tensor
,
is_sequence_parallel
:
bool
=
False
,
is_sequence_parallel
:
bool
=
False
,
extra_tensors
:
list
[
torch
.
Tensor
]
|
None
=
None
,
)
->
tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
)
->
tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
assert
self
.
all2all_manager
is
not
None
assert
self
.
all2all_manager
is
not
None
hidden_states
,
router_logits
=
self
.
all2all_manager
.
dispatch
(
return
self
.
all2all_manager
.
dispatch
(
hidden_states
,
router_logits
,
is_sequence_parallel
hidden_states
,
router_logits
,
is_sequence_parallel
,
extra_tensors
,
# type: ignore[call-arg]
)
)
return
hidden_states
,
router_logits
def
combine
(
def
combine
(
self
,
hidden_states
:
torch
.
Tensor
,
is_sequence_parallel
:
bool
=
False
self
,
hidden_states
:
torch
.
Tensor
,
is_sequence_parallel
:
bool
=
False
...
...
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