Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
58093b86
Unverified
Commit
58093b86
authored
Oct 11, 2024
by
glen-amd
Committed by
GitHub
Oct 11, 2024
Browse files
Nit about the decorator of `PortArgs.init_new` (#1611)
parent
8275049c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+2
-2
No files found.
python/sglang/srt/server_args.py
View file @
58093b86
...
@@ -629,8 +629,8 @@ class PortArgs:
...
@@ -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
]
@
class
method
@
static
method
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment