Skip to content

[KV Offload] Add ParentManager ABC for secondary tier callbacks - #47274

Merged
orozery merged 6 commits into
vllm-project:mainfrom
ronensc:tier-reverse-api
Jul 7, 2026
Merged

orozery merged 6 commits into
vllm-project:mainfrom
ronensc:tier-reverse-api

Conversation

@ronensc

@ronensc ronensc commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

  • Add ParentManager ABC enabling secondary tiers (e.g. P2P) to call back into the
    TieringOffloadingManager for block lookup, pinning, and request lifecycle management
  • Implement _SecondaryTierFacingParent wrapper that auto-injects exclude_tier to
    prevent fan-out loops
  • Add serve_external_requests() hook for secondary tiers to process remote requests
  • Extract create_store_job() from duplicated inline logic in complete_store() and
    _cascade_existing_blocks_to_request_level_tiers()
  • Remove redundant _maybe_process_finished_jobs() call from prepare_load()

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
@ronensc
ronensc requested review from ApostaC and orozery as code owners July 1, 2026 08:57

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

ronensc added 2 commits July 6, 2026 10:29
Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
…comments

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>

@orozery orozery left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread vllm/v1/kv_offload/tiering/manager.py Outdated
# 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to move this after we call serve_external_requests.
WDYT?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good catch! We want to reset the flag after serve_external_requests() to avoid re-triggering process_finished_jobs()
Done in 0d54479

@orozery

orozery commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Forgot one more thing:
Please update the PR title and description.

…rocessing

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
@orozery orozery added the ready ONLY add when PR is ready to merge/full CI is needed label Jul 7, 2026
@ronensc ronensc changed the title [KV Offload] Add TieringManagerReverseAPI protocol for P2P secondary tier [KV Offload] Add ParentManager ABC for secondary tier callbacks Jul 7, 2026
@ronensc

ronensc commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Forgot one more thing: Please update the PR title and description.

Done.

@orozery
orozery merged commit 48fcfc9 into vllm-project:main Jul 7, 2026
5 checks passed
@ronensc
ronensc deleted the tier-reverse-api branch July 8, 2026 06:09
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants