Skip to content

Commit

Permalink
fix dp_rank env (#2144)
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronHsu authored Nov 23, 2024
1 parent 145c0dd commit 52f58fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/srt/managers/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 52f58fc

Please sign in to comment.