Repository navigation
[bugfix] Fix CLI flags that modify model_config when using --deploy-config #8289
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
Merged
princepride
merged 5 commits into
vllm-project:main
from
MaciejBalaNV:mbala/fix_no_guardrails_cli
Oct 11, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c22ca2f
Fix --no-guardrails flag
MaciejBalaNV fab4be3
Merge branch 'main' into mbala/fix_no_guardrails_cli
MaciejBalaNV 3766676
Fix test_omni_config.py by removing non-existing config file
MaciejBalaNV b75fbc2
Merge branch 'main' into mbala/fix_no_guardrails_cli
MaciejBalaNV 8c863d8
Merge branch 'main' into mbala/fix_no_guardrails_cli
MaciejBalaNV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,10 @@ | |
| _QuantizationConfigType: TypeAlias = QuantizationConfig | str | Mapping[str, Any] | None | ||
|
|
||
| _DIFFUSION_SHARED_ONLY_ENGINE_FIELDS = frozenset({"kv_cache_dtype", "seed"}) | ||
| # Global CLI inputs that are not EngineArgs/deploy fields but still target the | ||
| # stages that own them (``--no-guardrails`` rides on ``model_config``). Stages | ||
| # that do not own them skip them silently instead of rejecting the flag. | ||
| _OWNER_ONLY_GLOBAL_STAGE_CLI_FIELDS = frozenset({"model_config"}) | ||
|
MaciejBalaNV marked this conversation as resolved.
Resolved
|
||
|
|
||
|
|
||
| class _QuantizationEngineOverrides(TypedDict, total=False): | ||
|
|
@@ -367,7 +371,7 @@ def _stage_cli_overrides( | |
| **stage_scoped, | ||
| } | ||
| runtime_overrides = build_stage_runtime_overrides(stage_id, dict(cli_overrides)) | ||
| global_stage_fields = _global_stage_cli_fields() | ||
| global_stage_fields = _global_stage_cli_fields() | _OWNER_ONLY_GLOBAL_STAGE_CLI_FIELDS | ||
|
Contributor
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. The main point of the change. |
||
| owned_fields = None if execution_type is None else _STAGE_ENGINE_FIELDS_BY_EXECUTION_TYPE[execution_type] | ||
| result: dict[str, Any] = {} | ||
| for key, value in runtime_overrides.items(): | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.