Commit bfc2d6f7 authored by zhuwenwen's avatar zhuwenwen
Browse files

update custom_all_reduce

parent 5e032fc7
...@@ -1629,11 +1629,11 @@ class ParallelConfig: ...@@ -1629,11 +1629,11 @@ class ParallelConfig:
from vllm.executor import ray_utils from vllm.executor import ray_utils
ray_utils.assert_ray_available() ray_utils.assert_ray_available()
if not current_platform.use_custom_allreduce(): # if not current_platform.use_custom_allreduce():
self.disable_custom_all_reduce = True # self.disable_custom_all_reduce = True
logger.info( # logger.info(
"Disabled the custom all-reduce kernel because it is not " # "Disabled the custom all-reduce kernel because it is not "
"supported on current platform.") # "supported on current platform.")
if self.ray_workers_use_nsight and not self.use_ray: if self.ray_workers_use_nsight and not self.use_ray:
raise ValueError("Unable to use nsight profiling unless workers " raise ValueError("Unable to use nsight profiling unless workers "
"run with Ray.") "run with Ray.")
......
...@@ -132,7 +132,8 @@ class CustomAllreduce: ...@@ -132,7 +132,8 @@ class CustomAllreduce:
assert current_platform.is_cuda_alike() assert current_platform.is_cuda_alike()
fully_connected = current_platform.is_fully_connected( fully_connected = current_platform.is_fully_connected(
physical_device_ids) 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( logger.warning(
"Custom allreduce is disabled because it's not supported on" "Custom allreduce is disabled because it's not supported on"
" more than two PCIe-only GPUs. To silence this warning, " " more than two PCIe-only GPUs. To silence this warning, "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment