mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-16 05:35:01 +08:00
[Core] init_distributed_environment align with init_process_group(#4014)
[Core][Distributed] make init_distributed_environment compatible with init_process_group (#4014)
This commit is contained in:
parent
a10d3056da
commit
559eb852f8
@ -39,9 +39,9 @@ _PIPELINE_GLOBAL_RANKS = None
|
|||||||
|
|
||||||
|
|
||||||
def init_distributed_environment(
|
def init_distributed_environment(
|
||||||
world_size: int,
|
world_size: int = -1,
|
||||||
rank: int,
|
rank: int = -1,
|
||||||
distributed_init_method: Optional[str] = None,
|
distributed_init_method: str = "env://",
|
||||||
local_rank: int = -1,
|
local_rank: int = -1,
|
||||||
backend: str = "nccl",
|
backend: str = "nccl",
|
||||||
):
|
):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user