Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torchrun launching multiple api_server #2402

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

AllentDan
Copy link
Collaborator

No description provided.

@@ -249,6 +249,33 @@ curl http://{server_ip}:{server_port}/v1/chat/interactive \
lmdeploy serve gradio api_server_url --server-name ${gradio_ui_ip} --server-port ${gradio_ui_port}
```

## Launch multiple api servers

Following is a possible way to launch multiple api servers through torchrun. Just create a python script with the following codes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AllentDan In what scenarios would this feature be used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some researchers tend to use torchrun.

Conflicts:
	lmdeploy/serve/openai/api_server.py
@lvhan028 lvhan028 self-requested a review December 12, 2024 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants