Repository navigation
fix(vllm): distinguish undeclared RL weight versions #13041
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
MatejKosec
merged 20 commits into
ai-dynamo:main
from
glamr-agent:fix/weight-version-tracking-rl-bypass--80e17fc79aac
Sep 19, 2026
Merged
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c2c6d89
fix(vllm): distinguish undeclared weight version from a declared one
glamr-agent eb4c3b2
fix(vllm): declare a weight version only when a caller supplies one
glamr-agent 93fb16b
style(vllm): simplify weight version tracking code
MatejKosec cbfcdd1
docs(vllm): describe weight version handlers
MatejKosec ad48dfc
docs(rl): restore route note layout
glamr-agent d9ff125
test(vllm): cover explicit and omitted weight version declarations
MatejKosec 4cd630e
test(vllm): isolate CLI tests from backend-free runners
MatejKosec 6703c9e
style(vllm): remove redundant test module description
MatejKosec 20f62fd
fix(ci): exclude terminal pods from operator readiness checks
MatejKosec a6c8bb4
test(snapshot): preserve capture-source logs before pod cleanup
MatejKosec c8d37f5
test(snapshot): discover capture sources through SnapshotJobs
MatejKosec bb7284e
test(snapshot): retry logs until capture containers start
MatejKosec 6431d6e
test(vllm): remove redundant weight version assertion
MatejKosec 7ef3757
fix(sglang): enable snapshot allocator before argument resolution
MatejKosec 4fe99d6
fix(sglang): validate resolved snapshot metrics configuration
MatejKosec 91d258a
test(vllm): consolidate weight version setter coverage
MatejKosec e9c6874
fix(rl): address weight version review follow-ups
MatejKosec c2f3452
fix(vllm): focus weight version changes and address review
glamr-agent c2b68e9
fix(vllm): omit raw weight versions from declaration logs
MatejKosec 755039c
fix(vllm): report declarations in weight update replies
glamr-agent 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
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
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
48 changes: 48 additions & 0 deletions
48
components/src/dynamo/vllm/tests/test_vllm_parse_args_lora.py
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 |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import pytest | ||
|
|
||
| from dynamo.vllm.args import parse_args | ||
|
|
||
| pytestmark = [ | ||
| pytest.mark.unit, | ||
| pytest.mark.vllm, | ||
| pytest.mark.pre_merge, | ||
| pytest.mark.gpu_0, | ||
| pytest.mark.multimodal, | ||
| pytest.mark.usefixtures("vllm_cpu_platform_when_no_accelerator"), | ||
| ] | ||
|
|
||
|
|
||
| class TestParseArgsLoraExclusivity: | ||
| """The --enable-lora exclusivity rules must fire on the real CLI path. | ||
|
|
||
| Direct validator tests supply engine_args themselves, so they pass even | ||
| when parse_args never supplies engine_args before validate() runs. These | ||
| tests drive the whole command line to exercise that ordering. | ||
| """ | ||
|
|
||
| @staticmethod | ||
| def _parse(extra_argv): | ||
| return parse_args(["--model", "Qwen/Qwen3-0.6B", *extra_argv]) | ||
|
|
||
| def test_realtime_with_enable_lora_is_rejected(self): | ||
| with pytest.raises(ValueError, match="enable-lora"): | ||
| self._parse(["--realtime", "--enable-lora"]) | ||
|
|
||
| def test_classify_worker_with_enable_lora_is_rejected(self): | ||
| """Kept separate from the --realtime case: the classify rule may be | ||
| removed once LoRA is supported on pooling-family workers, and the | ||
| --realtime rule is independent of that.""" | ||
| with pytest.raises(ValueError, match="enable-lora"): | ||
| self._parse(["--classify-worker", "--enable-lora"]) | ||
|
|
||
| def test_enable_lora_alone_is_accepted(self): | ||
| config = self._parse(["--enable-lora"]) | ||
| assert config.engine_args.enable_lora is True | ||
|
|
||
| def test_realtime_alone_is_accepted(self): | ||
| config = self._parse(["--realtime"]) | ||
| assert config.realtime is True | ||
| assert not config.engine_args.enable_lora |
Oops, something went wrong.
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.