Repository navigation
feat(epp): expose advisory cache and load probes - #16053
Draft
ayushag-nv wants to merge 1 commit into
Draft
ayushag-nv wants to merge 1 commit into
ayushag-nv wants to merge 1 commit into
Conversation
Signed-off-by: ayushag <ayushag@nvidia.com>
This branch has not been deployed
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
Why
A model router needs to compare cache reuse and load before choosing a model. EPP already has the tokenizer, KV index and worker state, but does not expose that information for a request without taking the normal inference path.
What
Add an opt-in
POST /v1/routing/probeendpoint to native EPP. It accepts a Chat Completions request for a concrete model and returns a candidate worker, predicted cache reuse and tracked load. It is disabled by default.Details
How
This draft supports native discovery, aggregated DP=1 workers, and text/function-tool chat requests. Unsupported modes, including salted/tenant cache namespaces, return an error that callers can treat as an unavailable signal. Lower-tier estimates remain unknown without evidence of CPU/disk residency.
Where to Start Review
Start with
deploy/inference-gateway/ext-proc/routing-probe.mdfor the API and limits, thensrc/probe.rsandRouter::probeinsrc/epp.rs. Thelib/llm/src/kv_router*changes provide access to the existing advisory selection path.Validation
Test Plan
Tested with the existing Dynamo 1.5.0 SGLang workers and agentgateway v1.5.0 Dynamo build. CPU/disk residency and stock agentgateway 1.0 were not validated in this run. These are functional checks, not a production latency benchmark.
Related Issues
Part of SWITCH-1627. Companion Switchyard draft PR #963 adds the probe client and SDK routing policy.