Skip to content

Commit

Permalink
Use proc.join instead of busy waiting (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Dec 6, 2024
1 parent f681759 commit f5b2a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sglang/srt/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ def launch_engine(
if server_args.node_rank >= 1:
# For other nodes, they do not need to run tokenizer or detokenizer,
# so they can just wait here.
while True:
pass
for proc in scheduler_procs:
proc.join()
else:
# Launch the data parallel controller
reader, writer = mp.Pipe(duplex=False)
Expand Down

0 comments on commit f5b2a3a

Please sign in to comment.