mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-28 00:37:19 +08:00
Fix precommit
Signed-off-by: Tyler Michael Smith <tysmith@redhat.com>
This commit is contained in:
parent
feeb17303d
commit
2f86f710dd
@ -222,13 +222,15 @@ class GroupCoordinator:
|
|||||||
|
|
||||||
for ranks in group_ranks:
|
for ranks in group_ranks:
|
||||||
device_group = torch.distributed.new_group(
|
device_group = torch.distributed.new_group(
|
||||||
ranks, backend=torch_distributed_backend,
|
ranks,
|
||||||
|
backend=torch_distributed_backend,
|
||||||
timeout=envs.VLLM_DISTRIBUTED_INIT_TIMEOUT_SECONDS)
|
timeout=envs.VLLM_DISTRIBUTED_INIT_TIMEOUT_SECONDS)
|
||||||
# a group with `gloo` backend, to allow direct coordination between
|
# a group with `gloo` backend, to allow direct coordination between
|
||||||
# processes through the CPU.
|
# processes through the CPU.
|
||||||
cpu_group = torch.distributed.new_group(ranks,
|
cpu_group = torch.distributed.new_group(
|
||||||
backend="gloo",
|
ranks,
|
||||||
timeout=envs.VLLM_DISTRIBUTED_INIT_TIMEOUT_SECONDS)
|
backend="gloo",
|
||||||
|
timeout=envs.VLLM_DISTRIBUTED_INIT_TIMEOUT_SECONDS)
|
||||||
if self.rank in ranks:
|
if self.rank in ranks:
|
||||||
self.ranks = ranks
|
self.ranks = ranks
|
||||||
self.world_size = len(ranks)
|
self.world_size = len(ranks)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user