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

Add vLLM TPU example RayService manifest #3000

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

ryanaoleary
Copy link
Contributor

Why are these changes needed?

This PR adds an example vLLM RayService TPU manifest for v6e TPUs used in an example guide.

Related issue number

ray-project/ray#47814

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests - I've manually tested this manifest as part of the linked tutorial
    • This PR is not tested :(

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>

def build_app(cli_args: Dict[str, str]) -> serve.Application:
"""Builds the Serve app based on CLI arguments."""
ray.init(ignore_reinit_error=True, address="ray://localhost:10001")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the address="ray://localhost:10001" required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I needed to add that to get it to work with the RayCluster when submitting it with serve run, otherwise it was consistently starting a local cluster (even though I was port-forwarding to the localhost) and not detecting the remote cluster.

Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
@andrewsykim andrewsykim merged commit b227924 into ray-project:master Feb 12, 2025
20 checks passed
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.

2 participants