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

[Bugfix] Fix prompt_logprobs when SamplingParams.detokenize is set to False #5226

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

zifeitong
Copy link
Contributor

@zifeitong zifeitong commented Jun 3, 2024

prompt_logprobs is skipped currently when SamplingParams.detokenize is set to True.

This will enable a workaround of #4904 if the user only needs prompt_logprobs and not detokenized text.

@DarkLight1337
Copy link
Member

Thanks for the fix! Can you add a test case to avoid future regressions?

@DarkLight1337 DarkLight1337 self-assigned this Jun 4, 2024
@zifeitong
Copy link
Contributor Author

Thanks for the fix! Can you add a test case to avoid future regressions?

Done. PTAL.

@simon-mo simon-mo merged commit 974fc9b into vllm-project:main Jun 5, 2024
54 of 67 checks passed
tlrmchlsmth pushed a commit to neuralmagic/nm-vllm that referenced this pull request Jun 5, 2024
blinkbear pushed a commit to blinkbear/vllm that referenced this pull request Jun 6, 2024
robertgshaw2-redhat pushed a commit to neuralmagic/nm-vllm that referenced this pull request Jun 11, 2024
joerunde pushed a commit to joerunde/vllm that referenced this pull request Jun 17, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jun 27, 2024
@zifeitong zifeitong changed the title [Bugfix] Fix prompt_logprobs when SamplingParams.detokenize is set to True [Bugfix] Fix prompt_logprobs when SamplingParams.detokenize is set to False Jul 3, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 8, 2024
xjpang pushed a commit to xjpang/vllm that referenced this pull request Jul 24, 2024
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