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

[LLM Serving] add skeleton public api to ray.serve.llm #50297

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

GeneDer
Copy link
Contributor

@GeneDer GeneDer commented Feb 6, 2025

Why are these changes needed?

add llm serving skeleton public api to ray.serve.llm and links to doc

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@GeneDer GeneDer added the go add ONLY when ready to merge, run all tests label Feb 6, 2025
Signed-off-by: Gene Su <[email protected]>
Signed-off-by: Gene Su <[email protected]>
Signed-off-by: Gene Su <[email protected]>
@GeneDer GeneDer marked this pull request as ready for review February 7, 2025 01:21
@GeneDer GeneDer requested review from edoakes, zcin, akshay-anyscale and a team as code owners February 7, 2025 01:21
@GeneDer GeneDer requested a review from a team February 7, 2025 01:21
@GeneDer
Copy link
Contributor Author

GeneDer commented Feb 7, 2025

@kouroshHakha maybe you can help to do a first pass

Copy link
Contributor

@kouroshHakha kouroshHakha left a comment

Choose a reason for hiding this comment

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

just a quick question o.w. looks good for the first PR.

doc/source/serve/api/index.md Show resolved Hide resolved
Comment on lines +1 to +15
try:
from ray.llm._internal.serve import (
LLMConfig as _LLMConfig,
VLLMDeployment as _VLLMDeployment,
LLMModelRouterDeployment as _LLMModelRouterDeployment,
LLMServingArgs,
)
except ImportError:
_LLMConfig = object
_VLLMDeployment = object
_LLMModelRouterDeployment = object
LLMServingArgs = object

from ray.serve.deployment import Application
from ray.util.annotations import PublicAPI
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's define the base classes in their correct spot and not have this ImportError ? similar to #50015

Copy link
Contributor

Choose a reason for hiding this comment

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

or is this gonna change in the next PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's gonna be a next PR. Was thinking to have this one just be the skeleton code

@zcin zcin merged commit 9e37334 into ray-project:master Feb 7, 2025
5 checks passed
@GeneDer GeneDer deleted the add-llm-serving-interface branch February 8, 2025 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants