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] fix custom input and output formatting #1728

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

siddvenk
Copy link
Contributor

@siddvenk siddvenk commented Apr 3, 2024

Description

Two fixes related to providing custom input/output formatters. While not a fully supported use-case, there are currently users relying on this behavior that we need to maintain support for.

  1. custom input formatting for tensorrtllm handlers. Users of previous versions rely on overriding parse_input method of the Service object. the static parse_input method no longer works for overriding, so i've made self.parse_input accessible again so that users can override this default implementation the same way they do in previous releases.

  2. custom output formatting by providing option.output_formatter no longer works. We probably missed this when making the changes to per request output_formatter. This also adds back that logic

@siddvenk siddvenk requested review from zachgk, frankfliu and a team as code owners April 3, 2024 03:34
@siddvenk siddvenk force-pushed the custom-input-output branch from 5eac0af to 9b24633 Compare April 3, 2024 04:14
@siddvenk siddvenk force-pushed the custom-input-output branch from 9b24633 to a7f7ed1 Compare April 3, 2024 04:21
@siddvenk siddvenk force-pushed the custom-input-output branch from a7f7ed1 to 567cffa Compare April 3, 2024 04:25
@siddvenk siddvenk merged commit b13e980 into deepjavalibrary:master Apr 3, 2024
8 checks passed
@siddvenk siddvenk deleted the custom-input-output branch April 3, 2024 04:36
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.

4 participants