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 more text generation inference params to TGIS modules #155

Merged
merged 15 commits into from
Aug 31, 2023

Conversation

tharapalanivel
Copy link
Contributor

@tharapalanivel tharapalanivel commented Aug 29, 2023

Supports #140

Adding additional parameters that are exposed by TGIS to TGIS backend modules (both text-generation and prompt tuning).

@gkumbhat gkumbhat mentioned this pull request Aug 30, 2023
Signed-off-by: Thara Palanivel <[email protected]>
Signed-off-by: Thara Palanivel <[email protected]>
Signed-off-by: Thara Palanivel <[email protected]>
@tharapalanivel tharapalanivel marked this pull request as ready for review August 31, 2023 18:24
use to avoid failing due to input being longer than
configured limits.
Default: 0 - means don't truncate, thus throw error.
{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Above docstring can be modified a bit since we do provide decoding_method as option now so its not only greedy decoding anymore

input_text=preserve_input_text,
generated_tokens=True,
input_tokens=False,
token_logprobs=True,
Copy link
Collaborator

Choose a reason for hiding this comment

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

the output of this (logprob) isn't getting used currently right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Isn't it used in the streaming result here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh it is.. Thanks

Signed-off-by: Thara Palanivel <[email protected]>
Copy link
Collaborator

@gkumbhat gkumbhat left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @tharapalanivel

@tharapalanivel tharapalanivel merged commit 0d8a323 into caikit:main Aug 31, 2023
4 checks passed
@tharapalanivel tharapalanivel deleted the more_inference_params branch September 13, 2023 02:32
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