[core] add sleep and wake up endpoint and v1 support#12987
[core] add sleep and wake up endpoint and v1 support#12987youkaichao merged 24 commits intovllm-project:mainfrom
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>
…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>
| # 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.
this is to pass the linter.
| 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.
Not sure if it's worth updating this comment since it does now wait in V1?
Signed-off-by: youkaichao <youkaichao@gmail.com>
expose
/sleepand/wake_upendpoint, and also support it in v1