Repository navigation
[Bugfix] Recognize mixed-attention warmup requests in MRv2 #9264
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project | ||
|
|
||
|
|
||
| def is_warmup_request(req_id: str) -> bool: | ||
| """Recognize vLLM kernel and mixed-attention warmup requests.""" | ||
| return req_id.startswith(("_warmup_", "_v2_mixed_warmup_")) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Also, every call site you replaced used to coerce with
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one also drops the
getattr(request_data, "req_id", "")fallback that was here before. If anything still puts objects withoutreq_idintoscheduled_new_reqs(test doubles, or the native data-plane shims), this now raisesAttributeErrorinstead of falling through toregister_request. Was that intended?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is specific to MRv2. Entries in
scheduled_new_reqsare required to havereq_id