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

http stream response via HTTP 1.1 chunked encoding #2232

Open
Tracked by #2234
lxning opened this issue Apr 16, 2023 · 0 comments
Open
Tracked by #2234

http stream response via HTTP 1.1 chunked encoding #2232

lxning opened this issue Apr 16, 2023 · 0 comments
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
@lxning lxning changed the title http1.1 stream response via chunked encoding http stream response via HTTP 1.1 chunked encoding Apr 16, 2023
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

1 participant