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

[fix] restrict per request streaming to rolling batch use-cases #1670

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

siddvenk
Copy link
Contributor

Description

Fix an issue with "stream" being populated for dynamic batch use-cases.

We support per request streaming only for rolling batch (I think it may be possible with dynamic batching, but only in the case where we serve 1 request at a time, so it's probably not worth it).

@siddvenk siddvenk requested review from zachgk, frankfliu and a team as code owners March 26, 2024 19:20
@@ -189,6 +188,8 @@ def parse_input(self, inputs):

if not "output_formatter" in param:
param["output_formatter"] = self.config.output_formatter
if self.rolling_batch:
param["stream"] = input_map.pop("stream", False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also needed for trtllm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trtllm is only rolling batch right now, but i know @sindhuvahinis is adding support for dynamic batch there.

Sindhu, should i add the non rolling batch condition in trtllm as well? Not sure how the changes you will be raising will look, so maybe you can add it in your PR as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah will add it in my PR.

@xyang16 xyang16 merged commit 191b084 into deepjavalibrary:master Mar 26, 2024
8 checks passed
@siddvenk siddvenk deleted the stream-dyn-batch branch March 26, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants