-
-
Couldn't load subscription status.
- Fork 10.9k
[Example] Add async_llm_streaming.py example for AsyncLLM streaming in python
#21763
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
[Example] Add async_llm_streaming.py example for AsyncLLM streaming in python
#21763
Conversation
Signed-off-by: mgoin <mgoin64@gmail.com>
|
👋 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 🚀 |
async_llm_streaming.py example for AsyncLLM streaming in python
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.
Code Review
This script demonstrates AsyncLLM streaming in python, covering both delta and cumulative modes. The display logic in cumulative streaming mode is broken for multi-line output, which has been fixed in the review comments.
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: x22x22 <wadeking@qq.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Jinzhen Lin <linjinzhen@hotmail.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Noam Gat <noamgat@gmail.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Paul Pak <paulpak58@gmail.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: Diego-Castan <diego.castan@ibm.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com>
… in python (vllm-project#21763) Signed-off-by: mgoin <mgoin64@gmail.com>
Purpose
Adds a simple example to cover how to implement AsyncLLM streaming in python
Test Plan
Run the script!
Test Result