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

Streaming Predict and streamable BytesSupplier #2470

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

zachgk
Copy link
Contributor

@zachgk zachgk commented Mar 17, 2023

This is to replace #2447 to add support for an iterable streaming version of predict. It creates a StreamingBlock and a streamingTranslator. Then, both are added as part of a new call on Predictor.

In addition, it also adds two new BytesSupplier: a pull based IterableBytesSupplier and a asynchronous Pub-Sub based PublisherBytesSupplier.

@zachgk zachgk requested review from frankfliu and a team as code owners March 17, 2023 17:42
This is to replace deepjavalibrary#2447 to add support for an iterable streaming version of
predict. It creates a StreamingBlock and a streamingTranslator. Then, both are
added as part of a new call on Predictor.

In addition, it also adds two new BytesSupplier: a pull based
IterableBytesSupplier and a asynchronous Pub-Sub based PublisherBytesSupplier.
zachgk added a commit to zachgk/djl-serving that referenced this pull request Mar 28, 2023
This fixes serving for changes from
deepjavalibrary/djl#2470. Some more extensive changes
should follow including using the servingPredict and PublisherBytesSupplier. To
fix CI, they will be part of a separate PR.
@zachgk zachgk merged commit ca051bb into deepjavalibrary:master Mar 28, 2023
@zachgk zachgk deleted the stream branch March 28, 2023 21:10
frankfliu pushed a commit to deepjavalibrary/djl-serving that referenced this pull request Mar 29, 2023
This fixes serving for changes from
deepjavalibrary/djl#2470. Some more extensive changes
should follow including using the servingPredict and PublisherBytesSupplier. To
fix CI, they will be part of a separate PR.
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.

2 participants