mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-11 02:25:01 +08:00
[Minor] Fix false warning when TP=1 (#2674)
This commit is contained in:
parent
bbe9bd9684
commit
105a40f53a
@ -29,6 +29,10 @@ def init_custom_ar() -> None:
|
||||
return
|
||||
rank = get_tensor_model_parallel_rank()
|
||||
world_size = get_tensor_model_parallel_world_size()
|
||||
if world_size == 1:
|
||||
# No need to initialize custom allreduce for single GPU case.
|
||||
return
|
||||
|
||||
if world_size not in _SUPPORTED_WORLD_SIZES:
|
||||
logger.warn(
|
||||
"Custom allreduce is disabled due to an unsupported world size: "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user