[https://nvbugs/6095851][fix] Refresh FlashMLA metadata for draft KV cache - #15251
Conversation
|
/bot run --stage-list "DGX_H100-PyTorch-Post-Merge-1,DGX_H100-PyTorch-Post-Merge-2" |
|
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 (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR re-initializes FlashMLA state at critical points during speculative execution: draft replay preparation and restoration, and KV-cache layout switching. It removes two related test waivers for DeepSeekV3Lite that now pass. ChangesFlashMLA State Management in Speculative Execution
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
PR_Github #53509 [ run ] triggered by Bot. Commit: |
|
PR_Github #53509 [ run ] completed with state |
|
/bot run --disable-fail-fast |
|
PR_Github #53796 [ run ] triggered by Bot. Commit: |
|
PR_Github #53796 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #54184 [ run ] triggered by Bot. Commit: |
|
PR_Github #54184 [ run ] completed with state
|
c85c30e to
eb69b34
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #54277 [ run ] triggered by Bot. Commit: |
|
PR_Github #54277 [ run ] completed with state
|
eb69b34 to
23da8f5
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #54435 [ run ] triggered by Bot. Commit: |
|
PR_Github #54435 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #54723 [ run ] triggered by Bot. Commit: |
|
PR_Github #54723 [ run ] completed with state
|
23da8f5 to
0740bb9
Compare
|
/bot run |
|
PR_Github #56272 [ run ] triggered by Bot. Commit: |
|
PR_Github #56272 [ run ] completed with state
|
0740bb9 to
ad9a75a
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #56867 [ run ] triggered by Bot. Commit: |
|
PR_Github #56867 [ run ] completed with state
|
…cache Signed-off-by: Yi Zhang <187001205+yizhang-nv@users.noreply.github.com>
ad9a75a to
39cfba0
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #56956 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
|
PR_Github #56986 [ run ] triggered by Bot. Commit: |
|
PR_Github #56956 [ run ] completed with state |
|
PR_Github #56986 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
1 similar comment
|
/bot run --disable-fail-fast |
|
PR_Github #57142 [ run ] triggered by Bot. Commit: |
|
PR_Github #57142 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #57364 [ run ] triggered by Bot. Commit: |
|
PR_Github #57364 [ run ] completed with state |
…cache (NVIDIA#15251) Signed-off-by: Yi Zhang <187001205+yizhang-nv@users.noreply.github.com>
Summary by CodeRabbit
Bug Fixes
Tests
Description
MTP draft replay temporarily switches attention metadata from the target KV cache manager to the draft KV cache manager. For FlashMLA, the separate block id table also needs to be rebuilt after that switch and after restoring the target KV cache manager. Without refreshing it, FlashMLA can use block ids from the wrong V2 KV cache pool and hit an illegal memory access.
This change refreshes FlashMLA metadata around the draft KV cache context and unwaives the two DeepSeekV3Lite H100 coverage cases for https://nvbugs/6084720 and https://nvbugs/6095851.
Test Coverage
Relevant tests:
Checks run locally:
CI requested on this PR:
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)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.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.