[None][fix] Enable LoRA in EAGLE3 speculative decoding#13005
[None][fix] Enable LoRA in EAGLE3 speculative decoding#13005Funatiq merged 2 commits intoNVIDIA:mainNVIDIA/TensorRT-LLM:mainfrom
Conversation
|
/bot run |
|
PR_Github #43093 [ run ] triggered by Bot. Commit: |
|
PR_Github #43093 [ run ] completed with state
|
bca258d to
a7e50d9
Compare
|
/bot run |
|
PR_Github #43108 [ run ] triggered by Bot. Commit: |
|
PR_Github #43108 [ run ] completed with state
|
a7e50d9 to
37caeac
Compare
|
/bot run |
|
PR_Github #43510 [ run ] triggered by Bot. Commit: |
|
PR_Github #43510 [ run ] completed with state
|
- Handle optional PEFT cache manager in AdapterSlotManager and update weight pointers in CudaGraphLoraParams. - Add unit tests for CudaGraphLoraParams and AdapterSlotManager to validate behavior when PEFT cache manager is missing. - Add integration test for LoRA in EAGLE3 speculative decoding with and without CUDA graph. Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
37caeac to
6b051cd
Compare
|
/bot run |
|
PR_Github #43579 [ run ] triggered by Bot. Commit: |
|
PR_Github #43579 [ run ] completed with state |
📝 WalkthroughWalkthroughThe changes add null-safety to two LoRA parameter management methods by making PEFT-related inputs optional, enabling graceful handling when LoRA/PEFT context is unavailable. New unit tests validate null-parameter behavior, and integration testing extends speculative decoding to cover LoRA scenarios. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ 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 `@tests/unittest/_torch/lora/test_lora.py`:
- Around line 1-5: This new test file is missing the required NVIDIA copyright
header—add the standard NVIDIA copyright header (with the current year) at the
very top of the file before any imports; ensure the header precedes the existing
imports for AdapterSlotManager and CudaGraphLoraParams and matches the project's
canonical header format.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 18218512-59c9-46b8-aea5-e32c2e8dedd1
📒 Files selected for processing (5)
tensorrt_llm/_torch/peft/lora/adapter_slot_manager.pytensorrt_llm/_torch/peft/lora/cuda_graph_lora_params.pytests/integration/test_lists/test-db/l0_h100.ymltests/unittest/_torch/lora/test_lora.pytests/unittest/_torch/speculative/test_eagle3.py
Summary by CodeRabbit
Bug Fixes
Tests
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.