Skip to content

Commit

Permalink
Fix dp print message (#2138)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Nov 23, 2024
1 parent 60769be commit 751c3a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sglang/srt/managers/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,8 +1388,8 @@ def run_scheduler_process(
pipe_writer,
):
# [For Router] if env var "DP_RANK" exist, set dp_rank to the value of the env var
if dp_rank is None:
dp_rank = int(os.getenv("DP_RANK", -1))
if dp_rank is None and "DP_RANK" in os.environ:
dp_rank = int(os["DP_RANK"])

if dp_rank is None:
configure_logger(server_args, prefix=f" TP{tp_rank}")
Expand Down

0 comments on commit 751c3a0

Please sign in to comment.