Skip to content

Commit

Permalink
Fix worker hang
Browse files Browse the repository at this point in the history
  • Loading branch information
haotian-liu committed Feb 3, 2024
1 parent d41ab72 commit 63c1055
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion llava/serve/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(self, dispatch_method: str):
self.dispatch_method = DispatchMethod.from_str(dispatch_method)

self.heart_beat_thread = threading.Thread(
target=heart_beat_controller, args=(self,))
target=heart_beat_controller, args=(self,), daemon=True)
self.heart_beat_thread.start()

logger.info("Init controller")
Expand Down
2 changes: 1 addition & 1 deletion llava/serve/model_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, controller_addr, worker_addr,
if not no_register:
self.register_to_controller()
self.heart_beat_thread = threading.Thread(
target=heart_beat_worker, args=(self,))
target=heart_beat_worker, args=(self,), daemon=True)
self.heart_beat_thread.start()

def register_to_controller(self):
Expand Down
2 changes: 1 addition & 1 deletion llava/serve/sglang_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, controller_addr, worker_addr, sgl_endpoint,
if not no_register:
self.register_to_controller()
self.heart_beat_thread = threading.Thread(
target=heart_beat_worker, args=(self,))
target=heart_beat_worker, args=(self,), daemon=True)
self.heart_beat_thread.start()

def register_to_controller(self):
Expand Down

0 comments on commit 63c1055

Please sign in to comment.