Nit about the decorator of PortArgs.init_new (#1611)

This commit is contained in:
glen-amd
2024-10-11 02:17:47 -07:00
committed by GitHub
parent 8275049ce3
commit 58093b868f

View File

@@ -629,8 +629,8 @@ class PortArgs:
# The port for nccl initialization for multiple TP groups (torch.dist)
nccl_ports: List[int]
@classmethod
def init_new(self, server_args):
@staticmethod
def init_new(server_args) -> "PortArgs":
port = server_args.port + 1
while True:
if is_port_available(port):