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

best_of support in output formatter #1992

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

sindhuvahinis
Copy link
Contributor

@sindhuvahinis sindhuvahinis commented May 30, 2024

Description

For best_of, we wait for the whole generation is finished, because we would not know which of the multiple sequences has the highest cumulative probability until the end of the generation. This is the reason, TGI supports best_of only during non streaming case.

This PR, introduces best_of support in json_output_formatter.

Unit test case:
Added unit test case to validate the output formatter.

Integration tests:
In order to test this in integration test, vllm/lmi-dist handler should support this. Will create a new PR for this, as the changes are a lot. Meanwhile, this PR changes should not fail any integration tests.

@sindhuvahinis sindhuvahinis requested review from zachgk, frankfliu and a team as code owners May 30, 2024 00:12
@sindhuvahinis sindhuvahinis changed the title best_of/beam_search support in output formatter best_of support in output formatter May 30, 2024
@sindhuvahinis sindhuvahinis merged commit 99fd2fe into deepjavalibrary:master Jun 3, 2024
8 checks passed
@sindhuvahinis sindhuvahinis deleted the of branch June 20, 2024 19:15
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