-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[core] add sleep and wake up endpoint and v1 support #12987
Conversation
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
@youkaichao I wonder if we could merge #12918 first which simplifies the v1 request handling a bit? (it should be ready now) |
This pull request has merge conflicts that must be resolved before it can be |
…p-youkaichao Signed-off-by: cennn <2523403608@qq.com>
Signed-off-by: cennn <2523403608@qq.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
…p-youkaichao Signed-off-by: cennn <2523403608@qq.com>
Signed-off-by: cennn <2523403608@qq.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
@@ -295,6 +295,7 @@ async def create_transcription( | |||
# TODO(rob): figure out a way to pipe streaming in. | |||
# Non-streaming response. | |||
try: | |||
assert result_generator is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to pass the linter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @youkaichao LGTM
await engine_client(raw_request).sleep(int(level)) | ||
# when we return a response, the sleep command | ||
# is sent but does not finish yet. | ||
# TODO: we should wait for the sleep to finish and then return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it's worth updating this comment since it does now wait in V1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in e8416d9 now.
Signed-off-by: youkaichao <youkaichao@gmail.com>
expose
/sleep
and/wake_up
endpoint, and also support it in v1