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

[core] add sleep and wake up endpoint and v1 support #12987

Merged
merged 24 commits into from
Feb 20, 2025

Conversation

youkaichao
Copy link
Member

@youkaichao youkaichao commented Feb 9, 2025

expose /sleep and /wake_up endpoint, and also support it in v1

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Copy link

github-actions bot commented Feb 9, 2025

👋 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 fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

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 ready label to the PR or enable auto-merge.

🚀

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>
@njhill
Copy link
Member

njhill commented Feb 9, 2025

@youkaichao I wonder if we could merge #12918 first which simplifies the v1 request handling a bit? (it should be ready now)

Copy link

mergify bot commented Feb 10, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @youkaichao.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

…p-youkaichao

Signed-off-by: cennn <2523403608@qq.com>
@mergify mergify bot removed the needs-rebase label Feb 12, 2025
cennn and others added 6 commits February 12, 2025 14:54
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>
@youkaichao youkaichao changed the title [core] add sleep and wake up endpoint [core] add sleep and wake up endpoint and v1 support Feb 13, 2025
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>
cennn and others added 4 commits February 19, 2025 23:41
…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
Copy link
Member Author

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.

Copy link
Member

@njhill njhill left a 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
Copy link
Member

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?

Copy link
Member Author

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>
@youkaichao youkaichao merged commit ba81163 into vllm-project:main Feb 20, 2025
7 of 9 checks passed
@youkaichao youkaichao deleted the sleep_apiserver branch February 20, 2025 04:41
xjpang pushed a commit to xjpang/vllm that referenced this pull request Feb 20, 2025
)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: cennn <2523403608@qq.com>
Co-authored-by: cennn <2523403608@qq.com>
kerthcet pushed a commit to kerthcet/vllm that referenced this pull request Feb 21, 2025
)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: cennn <2523403608@qq.com>
Co-authored-by: cennn <2523403608@qq.com>
michaelrglass pushed a commit to michaelrglass/vllm that referenced this pull request Feb 21, 2025
)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: cennn <2523403608@qq.com>
Co-authored-by: cennn <2523403608@qq.com>
Signed-off-by: Michael Glass <mrglass@us.ibm.com>
Akshat-Tripathi pushed a commit to krai/vllm that referenced this pull request Mar 3, 2025
)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: cennn <2523403608@qq.com>
Co-authored-by: cennn <2523403608@qq.com>
lk-chen pushed a commit to lk-chen/vllm that referenced this pull request Mar 5, 2025
)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: cennn <2523403608@qq.com>
Co-authored-by: cennn <2523403608@qq.com>
Signed-off-by: Linkun Chen <github@lkchen.net>
Said-Akbar pushed a commit to Said-Akbar/vllm-rocm that referenced this pull request Mar 7, 2025
)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: cennn <2523403608@qq.com>
Co-authored-by: cennn <2523403608@qq.com>
Signed-off-by: saeediy <saidakbarp@gmail.com>
qscqesze pushed a commit to ZZBoom/vllm that referenced this pull request Mar 13, 2025
)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Signed-off-by: cennn <2523403608@qq.com>
Co-authored-by: cennn <2523403608@qq.com>
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.

4 participants