Skip to content

Conversation

njhill
Copy link
Member

@njhill njhill commented Oct 7, 2025

Ensure model runner is refreshed with all request token ids following preemption, so that correct input ids are used.

@mergify mergify bot added the v1 label Oct 7, 2025
This is an attempt at a minimally invasive quick fix.

I'm working on a better fix which will also address the penalties sampling parameter incompatibility.

Signed-off-by: Nick Hill <[email protected]>
@njhill njhill force-pushed the fix-async-preempt branch from 24457e0 to 4ce9ae4 Compare October 8, 2025 03:48
@njhill
Copy link
Member Author

njhill commented Oct 8, 2025

@WoosukKwon so I think we can piggy-back on #24926 for the scheduler side of this? Then the remaining changes here would be even smaller...

Copy link

mergify bot commented Oct 9, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @njhill.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Oct 9, 2025
njhill added 2 commits October 9, 2025 08:25
# Conflicts:
#	vllm/v1/core/sched/output.py
Signed-off-by: Nick Hill <[email protected]>
@mergify mergify bot removed the needs-rebase label Oct 9, 2025
Signed-off-by: Nick Hill <[email protected]>
@njhill
Copy link
Member Author

njhill commented Oct 9, 2025

@WoosukKwon the change becomes even smaller after rebasing on #24926. It includes another simplification I noticed that I've opened a separate PR for: #26508.

I will aim to add a test next.

Copy link
Collaborator

@WoosukKwon WoosukKwon 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 so much for the fix! It'd be nice if we can have a unit test to prevent this happening again.

@njhill njhill marked this pull request as ready for review October 10, 2025 16:29
@njhill njhill force-pushed the fix-async-preempt branch from bee9aa2 to c3eb64b Compare October 10, 2025 16:57
@njhill njhill added the ready ONLY add when PR is ready to merge/full CI is needed label Oct 10, 2025
@njhill njhill enabled auto-merge (squash) October 10, 2025 19:31
@njhill njhill merged commit 949cb01 into vllm-project:main Oct 10, 2025
49 checks passed
@njhill njhill deleted the fix-async-preempt branch October 10, 2025 20:37
Dhruvilbhatt pushed a commit to Dhruvilbhatt/vllm that referenced this pull request Oct 14, 2025
bbartels pushed a commit to bbartels/vllm that referenced this pull request Oct 16, 2025
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