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
751c3a03
Unverified
Commit
751c3a03
authored
Nov 23, 2024
by
Lianmin Zheng
Committed by
GitHub
Nov 23, 2024
Browse files
Fix dp print message (#2138)
parent
60769be1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+2
-2
No files found.
python/sglang/srt/managers/scheduler.py
View file @
751c3a03
...
@@ -1388,8 +1388,8 @@ def run_scheduler_process(
...
@@ -1388,8 +1388,8 @@ def run_scheduler_process(
pipe_writer
,
pipe_writer
,
):
):
# [For Router] if env var "DP_RANK" exist, set dp_rank to the value of the env var
# [For Router] if env var "DP_RANK" exist, set dp_rank to the value of the env var
if
dp_rank
is
None
:
if
dp_rank
is
None
and
"DP_RANK"
in
os
.
environ
:
dp_rank
=
int
(
os
.
getenv
(
"DP_RANK"
,
-
1
)
)
dp_rank
=
int
(
os
[
"DP_RANK"
]
)
if
dp_rank
is
None
:
if
dp_rank
is
None
:
configure_logger
(
server_args
,
prefix
=
f
" TP
{
tp_rank
}
"
)
configure_logger
(
server_args
,
prefix
=
f
" TP
{
tp_rank
}
"
)
...
...
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