-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
[FEAT] add 'include_finished_set' parameter to scheduler config #22801
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
Conversation
Signed-off-by: ivyilike <pww123@cmbchina.com>
[FEAT] add include_finished_set configuration to scheduler config
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
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.
Code Review
This pull request introduces a new include_finished_set parameter to the scheduler configuration. This allows for explicitly enabling the tracking of finished request IDs, which is useful for updating statistics when all requests are aborted, particularly in non-data-parallel scenarios. The changes are well-implemented, adding the new parameter to the SchedulerConfig, exposing it through EngineArgs and the CLI, and correctly updating the logic in the EngineCore to use this new flag. The implementation is clean and follows the existing codebase patterns. I have no major concerns with this change.
Signed-off-by: ivyilike <pww123@cmbchina.com>
|
Should this be fixed in the engine rather than being an opt-in always on feature? |
|
Thanks @ivyilike. Like @hmellor said, we shouldn't need to introduce a new arg for this. I think the problem isn't that we aren't returning the finished request ids per se, but that we don't return the stats when there are no request outputs. I've opened a PR to address that, still need to add a test to verify: #22995 Really appreciate you looking into this though, I'll add you as coauthor since this helped me to pinpoint the issue. |
|
Thanks @njhill , indeed your PR can address this issue at its root. However, shouldn't we also expose this parameter particularly in non-data-parallel scenarios, to track the finished request IDs. |
|
Closing this now since it's addressed by #22995. |
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.Purpose
To fix issue #22545, I exposed the
include_finished_setparameter. When this parameter is enabled, a separate set of finished request ids will be included in theEngineCoreOutputs. This allows stats to be updated when all requests are aborted.(Optional) Documentation Update