-
Notifications
You must be signed in to change notification settings - Fork 97
Feat/over saturation stopping #438
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
Open
AlonKellner-RedHat
wants to merge
10
commits into
vllm-project:main
Choose a base branch
from
AlonKellner-RedHat:feat/over-saturation-stopping
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat/over saturation stopping #438
AlonKellner-RedHat
wants to merge
10
commits into
vllm-project:main
from
AlonKellner-RedHat:feat/over-saturation-stopping
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merged
9 tasks
85cf65e to
f996254
Compare
sjmonson
added a commit
that referenced
this pull request
Nov 6, 2025
## Summary E2E tests which check basic GuideLLM functionality, using vLLM simulator. ## Details - [x] Max requests test - [x] Max duration test - [ ] Over-saturation stopping test - skipped for now, will be enabled when #438 lands ## Test Plan - [x] Local testing - [x] GitHub action --- - [x] "I certify that all code in this PR is my own, except as noted below." ## Use of AI - [x] Includes AI-assisted code completion - [ ] Includes code generated by an AI application - [ ] Includes AI-generated tests (NOTE: AI written tests should have a docstring that includes `## WRITTEN BY AI ##`)
7584c7f to
2c76c4e
Compare
Add over-saturation detection and stopping capability to GuideLLM CLI. - Implement OverSaturationDetector with statistical slope detection - Add OverSaturationConstraint for scheduler integration - Add CLI flags --stop-over-saturated and --stop-osd - Integrate with benchmark entrypoints and main CLI Signed-off-by: Alon Kellner <[email protected]>
Add unit tests for over-saturation detection and constraint functionality. Signed-off-by: Alon Kellner <[email protected]>
Add comprehensive test suite for over-saturation detection algorithm. Signed-off-by: Alon Kellner <[email protected]>
Enable end-to-end test for over-saturation stopping functionality. Signed-off-by: Alon Kellner <[email protected]>
Refactor the single constraints.py file into a package structure where each constraint type has its own file: - protocols.py: Protocol definitions (Constraint, ConstraintInitializer, SerializableConstraintInitializer) - factory.py: ConstraintsInitializerFactory for creating and managing constraints - base.py: Base classes (PydanticConstraintInitializer, UnserializableConstraintInitializer) - standard.py: Standard constraints (MaxNumber, MaxDuration, MaxErrors, MaxErrorRate, MaxGlobalErrorRate, RequestsExhausted) - over_saturation.py: Over-saturation detection constraint implementation This improves code organization and maintainability while preserving backward compatibility through the package's __init__.py exports. Signed-off-by: Alon Kellner <[email protected]>
…Args The field was referenced in __main__.py but missing from the schema definition, causing ValueError when trying to get default values. Signed-off-by: Alon Kellner <[email protected]>
- Fix first_iteration -> first_token_iteration attribute name - Add type ignore for OverSaturationConstraint return type - Fix validated_kwargs type handling for stop_over_saturated parameter Signed-off-by: Alon Kellner <[email protected]>
When is_flag=True, Click automatically handles boolean values. Specifying type=bool can cause Pydantic validation errors. Signed-off-by: Alon Kellner <[email protected]>
- Fix import paths from advanced_constraints to constraints package - Fix line length errors (E501) in test files - Fix type error for request_start None check - Update test coverage documentation Signed-off-by: Alon Kellner <[email protected]>
Signed-off-by: Alon Kellner <[email protected]>
ce85b1c to
46bc491
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds over-saturation stopping to the GuideLLM CLI.
It's based on the OSD (Over-Saturation Detection) algorithm we developed and evaluated at Jounce.
Use
--stop-over-saturatedor--stop-osdto enable.Details
This PR adds:
--stop-over-saturated)Test Plan
Use of AI
## WRITTEN BY AI ##)