Skip to content

Conversation

@njhill
Copy link
Member

@njhill njhill commented Aug 22, 2025

min_p_count was not updated correctly for replaced requests.

cc @afeldman-nm

min_p_count was not updated correctly for added requests.

Signed-off-by: Nick Hill <nhill@redhat.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 in MinPLogitsProcessor.update_states() where min_p_count was incorrectly updated for added requests. The fix correctly adjusts the count based on whether a request with a non-zero min_p is added to a slot that previously had a zero min_p, and vice-versa. Additionally, the code for handling moved requests has been simplified for better readability. The changes are correct and improve the robustness of the logits processor.

@njhill njhill added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 22, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
@njhill njhill changed the title [BugFix] Fix and simplify MinPLogitsProcessor.update_states() [BugFix] Fix MinPLogitsProcessor.update_states() Aug 22, 2025
@DarkLight1337 DarkLight1337 merged commit add1adf into vllm-project:main Aug 23, 2025
38 checks passed
@njhill njhill deleted the fix-minp-logitsproc branch August 23, 2025 00:31
epwalsh pushed a commit to epwalsh/vllm that referenced this pull request Aug 28, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
xiao-llm pushed a commit to xiao-llm/vllm that referenced this pull request Aug 28, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Xiao Yu <xiao.yu@amd.com>
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Aug 28, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
mengxingkongzhouhan pushed a commit to mengxingkongzhouhan/vllm that referenced this pull request Aug 30, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Sep 3, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
ekagra-ranjan pushed a commit to ekagra-ranjan/vllm that referenced this pull request Sep 4, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Ekagra Ranjan <3116519+ekagra-ranjan@users.noreply.github.com>
FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants