[None][feat] Add support for FlexKV#12512
Conversation
Signed-off-by: scutizhang <[email protected]>
Signed-off-by: Patrice Castonguay <[email protected]>
📝 WalkthroughWalkthroughIntroduced Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@tensorrt_llm/_torch/pyexecutor/kv_cache_connector.py`:
- Around line 498-500: The early return when self._scheduler_output is None
allows stale _metadata to persist; update handle_metadata() so that when
self._scheduler_output is None it explicitly calls _clear_connector_meta()
before returning (or alternatively ensure start_load_kv() implementations check
for and handle missing metadata), i.e., modify the flow around
bind_connector_meta(), _scheduler_output, and _clear_connector_meta() so
_metadata is cleared whenever _scheduler_output is absent to avoid passing stale
metadata into start_load_kv().
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c77cd546-3774-4188-8ba2-4c2b9cb7e6a3
📒 Files selected for processing (5)
cpp/include/tensorrt_llm/batch_manager/llmRequest.hcpp/tensorrt_llm/nanobind/batch_manager/bindings.cpptensorrt_llm/_torch/pyexecutor/kv_cache_connector.pytensorrt_llm/_torch/pyexecutor/llm_request.pytensorrt_llm/_torch/pyexecutor/py_executor.py
800372a to
c5b1399
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #40158 [ run ] triggered by Bot. Commit: |
|
Same changes as in #9698, moving to my fork to merge more quickly. |
|
PR_Github #40158 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #40324 [ run ] triggered by Bot. Commit: |
|
PR_Github #40324 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #40387 [ run ] triggered by Bot. Commit: |
|
PR_Github #40387 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #40452 [ run ] triggered by Bot. Commit: |
|
PR_Github #40452 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #40469 [ run ] triggered by Bot. Commit: |
|
PR_Github #40469 [ run ] completed with state
|
|
/bot skip --comment "Flaky multi-GPU Nemotron test" |
|
PR_Github #40511 [ skip ] triggered by Bot. Commit: |
|
PR_Github #40511 [ skip ] completed with state |
Summary by CodeRabbit
Description
Test Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.