Repository navigation
feat(mm-routing): add Nemotron 3 Nano Omni image routing - #14564
Conversation
Signed-off-by: krishung5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (10)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe change migrates image routing from Lightseek to ChangesMultimodal routing
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: ⚪ Minimal · up to The routing migration and Nemotron integration include fail-closed behavior and targeted validation, with no actionable merge-blocking issue identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 72.31% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 65 functions across 7 files. (3 skipped: 3 unsupported.)
Comment |
…age-routing Signed-off-by: krishung5 <[email protected]>
Signed-off-by: krishung5 <[email protected]>
…age-routing Signed-off-by: krishung5 <[email protected]>
…age-routing Signed-off-by: krishung5 <[email protected]>
rmccorm4
left a comment
There was a problem hiding this comment.
Approving docs/codeowners changes
|
Seems like this model has some issues with estimating token counts because it is text oriented?
However, it also looks like these are not simple to fix or require making some assumptions such as disabling certain caches on vllm backend side to accurately estimate - which is not ideal, so having this "estimate" seems best case for now. Let me know if that matches your understanding. |
Signed-off-by: krishung5 <[email protected]>
I think the issue is Nemotron’s request-context-dependent dynamic resolution instead of the model being text-oriented. Incorrect text budget - Fixed the rendered-text versus dummy-text budget mismatch in Dynamo in 5ab70a0 Processor-cache mismatch - This is my understanding as well. The cache case is harder because vLLM stores per-image results which token count was determined by an earlier batch. This makes the expansion depending on the worker history. Disabling the processor cache would avoid that but is not a good default. I think having this "estimate" seems to be the best case for now. |
…age-routing Signed-off-by: krishung5 <[email protected]>
Why
Exact multimodal KV routing requires the frontend routing sequence to match the image-token sequence stored by the backend. Nemotron 3 Nano Omni is not covered by the existing image-routing registry, and its vLLM processor differs from the existing model families in two important ways:
<img>and</img>delimiters.Without this support, requests with identical text but different images fall back to text-prefix routing.
What changed
max_model_len, and rendered text length.<img>/</img>tokenizer controls before enabling exact routing.Routing contract
Nis computed for the full image batch under the remaining context budget.Validation
cargo test -p dynamo-llm --features mm-routing mm_routing --lib— 29 passedcargo test -p dynamo-llm --features mm-routing nemotron --lib— 8 passedcargo clippy -p dynamo-llm --features mm-routing --lib -- -D warningscargo check -p dynamo-llm --example mm_token_count --features mm-routing1/2router overlap and2128cached tokens each.Extended from #13989
Closes DIS-2868