Repository navigation
[KV Offload] Add ParentManager ABC for secondary tier callbacks - #47274
Merged
Merged
Conversation
Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
…comments Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
orozery
reviewed
Jul 7, 2026
orozery
left a comment
Contributor
There was a problem hiding this comment.
Thanks @ronensc !
Ideally we want unit tests as well.
Currently we are relying on example secondary tier.
I think that we should follow-up to replace the existing unit tests with mocked secondary tiers tests, covering also the flows introduced here.
| # scheduled but a tier still has_pending_work()), before the | ||
| # per-step gate below is reset for the next step. | ||
| self._maybe_process_finished_jobs() | ||
| self._processed_jobs_this_step = False |
Contributor
There was a problem hiding this comment.
I think we want to move this after we call serve_external_requests.
WDYT?
Contributor
Author
There was a problem hiding this comment.
Yes, good catch! We want to reset the flag after serve_external_requests() to avoid re-triggering process_finished_jobs()
Done in 0d54479
Contributor
|
Forgot one more thing: |
…rocessing Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
TieringManagerReverseAPI protocol for P2P secondary tierParentManager ABC for secondary tier callbacks
Contributor
Author
Done. |
orozery
approved these changes
Jul 7, 2026
NickLucche
pushed a commit
to NickLucche/vllm
that referenced
this pull request
Jul 15, 2026
…lm-project#47274) Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com> Co-authored-by: Or Ozeri <oro@il.ibm.com>
philippesic
pushed a commit
to philippesic/vllm-semantic-cache
that referenced
this pull request
Jul 19, 2026
…lm-project#47274) Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com> Co-authored-by: Or Ozeri <oro@il.ibm.com>
michael-gpu
pushed a commit
to practical-inference/vllm-ampere-extended
that referenced
this pull request
Oct 20, 2026
…lm-project#47274) Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com> Co-authored-by: Or Ozeri <oro@il.ibm.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.
Purpose
ParentManagerABC enabling secondary tiers (e.g. P2P) to call back into theTieringOffloadingManagerfor block lookup, pinning, and request lifecycle management_SecondaryTierFacingParentwrapper that auto-injectsexclude_tiertoprevent fan-out loops
serve_external_requests()hook for secondary tiers to process remote requestscreate_store_job()from duplicated inline logic incomplete_store()and_cascade_existing_blocks_to_request_level_tiers()_maybe_process_finished_jobs()call fromprepare_load()Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.