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
bfc2d6f7
Commit
bfc2d6f7
authored
Apr 08, 2025
by
zhuwenwen
Browse files
update custom_all_reduce
parent
5e032fc7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
vllm/config.py
vllm/config.py
+5
-5
vllm/distributed/device_communicators/custom_all_reduce.py
vllm/distributed/device_communicators/custom_all_reduce.py
+2
-1
No files found.
vllm/config.py
View file @
bfc2d6f7
...
...
@@ -1629,11 +1629,11 @@ class ParallelConfig:
from
vllm.executor
import
ray_utils
ray_utils
.
assert_ray_available
()
if
not
current_platform
.
use_custom_allreduce
():
self
.
disable_custom_all_reduce
=
True
logger
.
info
(
"Disabled the custom all-reduce kernel because it is not "
"supported on current platform."
)
#
if not current_platform.use_custom_allreduce():
#
self.disable_custom_all_reduce = True
#
logger.info(
#
"Disabled the custom all-reduce kernel because it is not "
#
"supported on current platform.")
if
self
.
ray_workers_use_nsight
and
not
self
.
use_ray
:
raise
ValueError
(
"Unable to use nsight profiling unless workers "
"run with Ray."
)
...
...
vllm/distributed/device_communicators/custom_all_reduce.py
View file @
bfc2d6f7
...
...
@@ -132,7 +132,8 @@ class CustomAllreduce:
assert
current_platform
.
is_cuda_alike
()
fully_connected
=
current_platform
.
is_fully_connected
(
physical_device_ids
)
if
world_size
>
2
and
not
fully_connected
:
# if world_size > 2 and not fully_connected:
if
not
fully_connected
:
logger
.
warning
(
"Custom allreduce is disabled because it's not supported on"
" more than two PCIe-only GPUs. To silence this warning, "
...
...
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