[KV Offloading] Add tiering metric plumbing - #45959
Merged
Merged
Conversation
Srinivasoo7
marked this pull request as ready for review
June 17, 2026 19:50
Srinivasoo7
requested review from
ApostaC,
NickLucche,
orozery and
xuechendi
as code owners
June 17, 2026 19:50
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
1 task
Srinivasoo7
force-pushed
the
tiering-metric-plumbing
branch
from
June 22, 2026 02:31
619a6d3 to
a769ab5
Compare
orozery
requested changes
Jun 22, 2026
| metrics = super().build_metric_definitions(extra_config) | ||
| secondary_tier_configs = extra_config.get("secondary_tiers", []) | ||
| if not isinstance(secondary_tier_configs, list): | ||
| return metrics |
Collaborator
There was a problem hiding this comment.
Should raise ValueError instead
Comment on lines
+84
to
+89
| if not isinstance(tier_config, dict): | ||
| continue | ||
| tier_type = tier_config.get("type") | ||
| if not tier_type: | ||
| continue | ||
| tier_cls = SecondaryTierFactory.get_tier_class(tier_type) |
Collaborator
There was a problem hiding this comment.
Let's re-use this code from SecondaryTierFactory.create_secondary_tier
Maybe let's change to def get_tier_class(cls, tier_config: dict)
|
|
||
| _CTX = ReqContext(req_id="test") | ||
| _MOCK_OFFLOADING_SPEC = MagicMock() | ||
| _TEST_TIER_METRIC = "vllm:kv_offload_test_tier_bytes" |
Collaborator
There was a problem hiding this comment.
Can move this inside MetricsSecondaryTierManager.
Also, let's use a more generic name (e.g. my_tier_metric).
|
|
||
| BLOCK_SIZE_ALIGNMENT = SharedOffloadRegion.BLOCK_SIZE_ALIGNMENT | ||
|
|
||
| @classmethod |
Collaborator
There was a problem hiding this comment.
Should add @override I think.
Contributor
Author
There was a problem hiding this comment.
Oops, missed it. Will add it!
Srinivasoo7
force-pushed
the
tiering-metric-plumbing
branch
from
June 22, 2026 11:27
a769ab5 to
1b1b4b8
Compare
orozery
reviewed
Jun 22, 2026
Comment on lines
+85
to
+86
| if not isinstance(tier_config, dict): | ||
| continue |
Signed-off-by: srinivas_oo7 <sklinkedin0120@gmail.com>
Srinivasoo7
force-pushed
the
tiering-metric-plumbing
branch
from
June 22, 2026 18:24
1b1b4b8 to
336252d
Compare
nkzhenhua
pushed a commit
to nkzhenhua/vllm
that referenced
this pull request
Jun 24, 2026
Signed-off-by: srinivas_oo7 <sklinkedin0120@gmail.com> Co-authored-by: srinivas_oo7 <sklinkedin0120@gmail.com>
qli88
pushed a commit
to qli88/vllm
that referenced
this pull request
Jun 26, 2026
Signed-off-by: srinivas_oo7 <sklinkedin0120@gmail.com> Co-authored-by: srinivas_oo7 <sklinkedin0120@gmail.com> Signed-off-by: Qiang Li <qiang.li2@amd.com>
wincent8
pushed a commit
to wincent8/vllm
that referenced
this pull request
Jun 29, 2026
Signed-off-by: srinivas_oo7 <sklinkedin0120@gmail.com> Co-authored-by: srinivas_oo7 <sklinkedin0120@gmail.com>
Dao007forever
pushed a commit
to Dao007forever/vllm
that referenced
this pull request
Jul 18, 2026
Signed-off-by: srinivas_oo7 <sklinkedin0120@gmail.com> Co-authored-by: srinivas_oo7 <sklinkedin0120@gmail.com>
efschu
pushed a commit
to efschu/shvllm
that referenced
this pull request
Jul 18, 2026
Signed-off-by: srinivas_oo7 <sklinkedin0120@gmail.com> Co-authored-by: srinivas_oo7 <sklinkedin0120@gmail.com>
plasticchris
pushed a commit
to plasticchris/vllm
that referenced
this pull request
Jul 20, 2026
Signed-off-by: srinivas_oo7 <sklinkedin0120@gmail.com> Co-authored-by: srinivas_oo7 <sklinkedin0120@gmail.com>
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
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
build_metric_definitions()andget_stats()hooks toSecondaryTierManagerTieringOffloadingSpecTieringOffloadingManager