Nit about the decorator of PortArgs.init_new (#1611)
This commit is contained in:
@@ -629,8 +629,8 @@ class PortArgs:
|
|||||||
# The port for nccl initialization for multiple TP groups (torch.dist)
|
# The port for nccl initialization for multiple TP groups (torch.dist)
|
||||||
nccl_ports: List[int]
|
nccl_ports: List[int]
|
||||||
|
|
||||||
@classmethod
|
@staticmethod
|
||||||
def init_new(self, server_args):
|
def init_new(server_args) -> "PortArgs":
|
||||||
port = server_args.port + 1
|
port = server_args.port + 1
|
||||||
while True:
|
while True:
|
||||||
if is_port_available(port):
|
if is_port_available(port):
|
||||||
|
|||||||
Reference in New Issue
Block a user