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

add TGI compat feature for rollingbatch #1866

Merged
merged 1 commit into from
May 6, 2024

Conversation

lanking520
Copy link
Contributor

Description

Add TGI compatibility support

@sindhuvahinis
Copy link
Contributor

If the env name is finalized, every thing else, looks good to me.

@lanking520 lanking520 force-pushed the test branch 3 times, most recently from 427a0f7 to c69dea7 Compare May 4, 2024 00:35
@@ -445,6 +451,8 @@ def __init__(self, **kwargs):
self.waiting_steps = kwargs.get("waiting_steps", None)
self.current_step = 0
self.default_output_formatter = kwargs.get("output_formatter", None)
global TGI_COMPAT
TGI_COMPAT = kwargs.get("tgi_compat", "false").lower() == 'true'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
TGI_COMPAT = kwargs.get("tgi_compat", "false").lower() == 'true'
self.tgi_compat = kwargs.get("tgi_compat", "false").lower() == 'true'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no way to pass this value back to the serializer. Unless we make them to be part of the Request class

@lanking520 lanking520 merged commit 9a8a601 into deepjavalibrary:master May 6, 2024
8 checks passed
lanking520 pushed a commit to lanking520/djl-serving that referenced this pull request May 7, 2024
lanking520 pushed a commit that referenced this pull request May 7, 2024
…1880)

Co-authored-by: Frank Liu <frankfliu2000@gmail.com>
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