Repository navigation
Conversation
furionw
force-pushed
the
qiwa/nemotron-omni-mm-routing
branch
from
August 28, 2026 23:12
53b50f1 to
8cf1af5
Compare
furionw
force-pushed
the
qiwa/nemotron-omni-mm-routing
branch
2 times, most recently
from
August 28, 2026 23:35
3fa00c3 to
0a532a7
Compare
Signed-off-by: Qi Wang <[email protected]>
furionw
force-pushed
the
qiwa/nemotron-omni-mm-routing
branch
from
August 28, 2026 23:43
0a532a7 to
4f1dfd6
Compare
Contributor
Author
|
closing this PR to be explicit. this is for prototype only. don't have bandwidth of merging this |
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.
closing this PR to be explicit. this is for prototype only. don't have bandwidth of merging this
Why
Exact multimodal KV routing requires the frontend to reproduce the image-token sequence that the backend stores, while worker-side KV-event normalization must recognize the same placeholder.
maincannot do that for Nemotron 3 Nano Omni: its vLLM processor uses dynamic resolution with a context budget shared across all images, wraps image features with model-specific delimiters, and is absent from the existing vision registry. Nemotron requests therefore fall back to text-prefix routing, preventing the router from distinguishing identical text paired with different images. This PR adds a fail-closed Dynamo implementation so routing becomes image-aware only when the model configuration and tokenizer prove an exact match.Effect
Before:
After:
Nis computed for the complete image batch under the remaining model-context budget.What Change
<img>/</img>wrappers from model configuration.classDiagram class OpenAIPreprocessor class RoutingTokens class LightseekMmCounter class NemotronNanoOmniCounter class NemotronDynamicResolution class MmRoutingInfo OpenAIPreprocessor ..> RoutingTokens : resolves placeholder and wrappers OpenAIPreprocessor --> LightseekMmCounter : requests batch token counts LightseekMmCounter *-- NemotronNanoOmniCounter : owns Nemotron counter NemotronNanoOmniCounter *-- NemotronDynamicResolution : owns optional budgeter OpenAIPreprocessor ..> MmRoutingInfo : builds routing-only sequence note for OpenAIPreprocessor "Builds the exact router view without changing worker input" note for RoutingTokens "Carries model-configured placeholder and wrapper tokens" note for LightseekMmCounter "Dispatches registry-backed or Nemotron counting" note for NemotronNanoOmniCounter "Matches vLLM image token accounting" note for NemotronDynamicResolution "Shares remaining context budget across images"Test Plan
/v1/chat/completionsvalidation remains in progress.