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
52f58fc4
Unverified
Commit
52f58fc4
authored
Nov 23, 2024
by
Byron Hsu
Committed by
GitHub
Nov 23, 2024
Browse files
fix dp_rank env (#2144)
parent
145c0ddc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+1
-1
No files found.
python/sglang/srt/managers/scheduler.py
View file @
52f58fc4
...
...
@@ -1389,7 +1389,7 @@ def run_scheduler_process(
):
# [For Router] if env var "DP_RANK" exist, set dp_rank to the value of the env var
if
dp_rank
is
None
and
"DP_RANK"
in
os
.
environ
:
dp_rank
=
int
(
os
[
"DP_RANK"
])
dp_rank
=
int
(
os
.
environ
[
"DP_RANK"
])
if
dp_rank
is
None
:
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