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

TorchServe inference stream response support #2234

Open
2 tasks
lxning opened this issue Apr 16, 2023 · 1 comment
Open
2 tasks

TorchServe inference stream response support #2234

lxning opened this issue Apr 16, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lxning
Copy link
Collaborator

lxning commented Apr 16, 2023

🚀 The feature

TorchServe supports streaming response for both HTTP and GRPC endpoint.

Motivation, pitch

Usually the predication latency is high (eg. 5sec) for a large model inference. Some models are able to generate intermediate prediction results (eg. generator AI). This feature will send the intermediate prediction results to user once the results are ready. The user will gradually get the entire response. For example, User may get first intermediate response within 1 sec, and gradually get the entire result until 5sec. This feature is to improve user prediction experience.

Alternatives

No response

Additional context

No response

@lxning lxning self-assigned this Apr 16, 2023
@lxning lxning added the enhancement New feature or request label Apr 16, 2023
@lxning lxning added this to the v0.8.0 milestone Apr 16, 2023
@Isalia20
Copy link
Contributor

is there a way to ping torchserve with the request_id to check the status whether it's completed or not? I don't have streaming inference but have long running requests(1min+) if there could be a way to check whether request processing ended or not would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants