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
cbff8d34
"vllm/entrypoints/pooling/embed/serving.py" did not exist on "8fcaaf6a165e661f63fc51be906bc05b0767332f"
Commit
cbff8d34
authored
Jan 08, 2026
by
zhuwenwen
Browse files
解决custom allreduce在dp情况下的其服务错误问题
parent
47067fcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/distributed/device_communicators/custom_all_reduce.py
vllm/distributed/device_communicators/custom_all_reduce.py
+5
-1
No files found.
vllm/distributed/device_communicators/custom_all_reduce.py
View file @
cbff8d34
...
@@ -142,7 +142,11 @@ class CustomAllreduce:
...
@@ -142,7 +142,11 @@ class CustomAllreduce:
else
:
else
:
device_ids
=
list
(
range
(
cuda_device_count_stateless
()))
device_ids
=
list
(
range
(
cuda_device_count_stateless
()))
if
(
world_size
==
len
(
device_ids
)):
physical_device_id
=
device_ids
[
device
.
index
%
world_size
]
else
:
physical_device_id
=
device_ids
[
device
.
index
]
physical_device_id
=
device_ids
[
device
.
index
]
tensor
=
torch
.
tensor
([
physical_device_id
],
dtype
=
torch
.
int
,
device
=
"cpu"
)
tensor
=
torch
.
tensor
([
physical_device_id
],
dtype
=
torch
.
int
,
device
=
"cpu"
)
gather_list
=
[
gather_list
=
[
torch
.
tensor
([
0
],
dtype
=
torch
.
int
,
device
=
"cpu"
)
for
_
in
range
(
world_size
)
torch
.
tensor
([
0
],
dtype
=
torch
.
int
,
device
=
"cpu"
)
for
_
in
range
(
world_size
)
...
...
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