Skip to content

[Bugfix] fixed top_logprobs: -1 does not appear to work as intended#26470

Merged
chaunceyjiang merged 4 commits intovllm-project:mainfrom
chaunceyjiang:pr_26194
Oct 10, 2025
Merged

[Bugfix] fixed top_logprobs: -1 does not appear to work as intended#26470
chaunceyjiang merged 4 commits intovllm-project:mainfrom
chaunceyjiang:pr_26194

Conversation

@chaunceyjiang
Copy link
Collaborator

@chaunceyjiang chaunceyjiang commented Oct 9, 2025

Purpose

Fix #26194

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a bug where top_logprobs: -1 did not function as intended to return all logprobs. The fix in vllm/entrypoints/openai/serving_chat.py correctly adjusts the conditional logic to handle this special case. The accompanying test modifications in tests/entrypoints/openai/test_chat_echo.py are appropriate and validate the correction. The changes are sound and effectively resolve the issue. I have not identified any issues of high or critical severity.

@DarkLight1337 DarkLight1337 added the ready ONLY add when PR is ready to merge/full CI is needed label Oct 9, 2025
Copy link
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

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

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Copy link
Member

@njhill njhill 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!

@chaunceyjiang chaunceyjiang merged commit 910abdb into vllm-project:main Oct 10, 2025
48 checks passed
@chaunceyjiang chaunceyjiang deleted the pr_26194 branch October 10, 2025 16:41
Dhruvilbhatt pushed a commit to Dhruvilbhatt/vllm that referenced this pull request Oct 14, 2025
…llm-project#26470)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: Dhruvil Bhatt <bhattdbh@amazon.com>
bbartels pushed a commit to bbartels/vllm that referenced this pull request Oct 16, 2025
…llm-project#26470)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: bbartels <benjamin@bartels.dev>
lywa1998 pushed a commit to lywa1998/vllm that referenced this pull request Oct 20, 2025
alhridoy pushed a commit to alhridoy/vllm that referenced this pull request Oct 24, 2025
0xrushi pushed a commit to 0xrushi/vllm that referenced this pull request Oct 26, 2025
…llm-project#26470)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
0xrushi pushed a commit to 0xrushi/vllm that referenced this pull request Oct 26, 2025
…llm-project#26470)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
rtourgeman pushed a commit to rtourgeman/vllm that referenced this pull request Nov 10, 2025
devpatelio pushed a commit to SumanthRH/vllm that referenced this pull request Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: top_logprobs: -1 does not appear to work as intended

3 participants