-
Notifications
You must be signed in to change notification settings - Fork 68
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
Conversation
If the env name is finalized, every thing else, looks good to me. |
427a0f7
to
c69dea7
Compare
@@ -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' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TGI_COMPAT = kwargs.get("tgi_compat", "false").lower() == 'true' | |
self.tgi_compat = kwargs.get("tgi_compat", "false").lower() == 'true' |
There was a problem hiding this comment.
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
Description
Add TGI compatibility support