-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Supporting log probabilities of prompt tokens in both engine and OpenAI API server (aka echo
)
#959
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
Closed
Closed
Changes from 18 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
721c778
A runnable implementation of `echo`.
wanmok 4abbe99
Reformatted.
wanmok 3a9649f
Fixed pylint `R1729` and `R1721`
wanmok f075e8b
Fixed pylint and allowed `logprobs=0, echo=True`.
wanmok e419414
Fixed edge case of when to return `null` - consistent with OpenAI.
wanmok 50b30f5
Fixed the issue of using `prompt_token_ids` while not being able to g…
wanmok 69f9e52
Fixed the error of computing logprobs.
wanmok 1070080
Fixed the pylint E1133
wanmok bd180cb
Fixed the issue of running with distributed workers.
wanmok 46af13a
Set torch default dtype in a context manager (#971)
Yard1 8309110
Merge branch 'vllm-project:main' into add-echo
wanmok fdc4e5a
Moved postprocessing to `_process_sequence_group_samples()`.
wanmok f422556
Merge branch 'vllm-project:main' into add-echo
wanmok 4ede60d
Merge branch 'vllm-project:main' into add-echo
wanmok 6c1a70c
Merge branch 'vllm-project:main' into add-echo
wanmok 0bbf78d
Fixed the issue with the first `top_logprobs` being None.
wanmok b60817d
Merge branch 'vllm-project:main' into add-echo
wanmok 39f8268
Merge branch 'vllm-project:main' into add-echo
wanmok 061ef6f
Fixed handle the batched case correctly.
wanmok 07240ab
Merge branch 'vllm-project:main' into add-echo
wanmok 9b874f2
Updated to address review comments.
wanmok bf47666
Merge branch 'main' into add-echo
wanmok 7cab379
Reformatted.
wanmok 73f542c
Added test for `get_prompt_logprobs`
wanmok d6e8f68
Merge branch 'vllm-project:main' into add-echo
wanmok 8541ae0
Merge branch 'vllm-project:main' into add-echo
wanmok 5b63edf
Merge branch 'vllm-project:main' into add-echo
wanmok 1aab537
Merge branch 'main' into add-echo
wanmok 4b7fd8e
Reformatted sampling_params.py
wanmok 364c7aa
Merge branch 'main' into add-echo
wanmok c6b8d1f
Reformatted
wanmok 67a5de0
Merge branch 'vllm-project:main' into add-echo
wanmok 17675ec
Merge branch 'main' into add-echo
wanmok 792f857
Merge branch 'main' into add-echo
wanmok ed52b8e
Merge branch 'vllm-project:main' into add-echo
wanmok 0d643fd
Merge branch 'vllm-project:main' into add-echo
wanmok 18f9efa
Update sampler.py
wanmok 9967c2f
Merge branch 'vllm-project:main' into add-echo
wanmok a0ebd61
Merged log forward.
wanmok 4121f86
Merge branch 'vllm-project:main' into add-echo
wanmok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.