Skip to content

fix: register workers with matching address in launch_all_serve - #3919

Open
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix/launch-all-serve-worker-address
Open

fix: register workers with matching address in launch_all_serve#3919
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix/launch-all-serve-worker-address

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • launch_all_serve forwarded --host/--port from model-path@host@port but never set --worker-address.
  • model_worker registers with the controller using --worker-address (default http://localhost:21002), so custom ports (including the script default @20002) left the controller pointing at the wrong address.
  • Derive and pass http://{host}:{port} as --worker-address for each launched worker.

Test plan

  • Local simulation: model-path@localhost@20002 now emits --port 20002 and --worker-address http://localhost:20002
  • python3 -m py_compile fastchat/serve/launch_all_serve.py
  • Launch python -m fastchat.serve.launch_all_serve --model-path-address "MODEL@localhost@2021" and confirm controller lists http://localhost:2021

Made with Cursor

model_worker uses --worker-address independently of --host/--port.
launch_all_serve only forwarded host/port from model-path-address, so
workers listening on custom ports still registered as localhost:21002.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant