From 58093b868f48fead1a224264b2d5534568faaee4 Mon Sep 17 00:00:00 2001 From: glen-amd <146770157+glen-amd@users.noreply.github.com> Date: Fri, 11 Oct 2024 02:17:47 -0700 Subject: [PATCH] Nit about the decorator of `PortArgs.init_new` (#1611) --- python/sglang/srt/server_args.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sglang/srt/server_args.py b/python/sglang/srt/server_args.py index 82e588d1c..757f2bcb7 100644 --- a/python/sglang/srt/server_args.py +++ b/python/sglang/srt/server_args.py @@ -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):