Unverified Commit 58093b86 authored by glen-amd's avatar glen-amd Committed by GitHub
Browse files

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

parent 8275049c
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment