[None][fix] NVTX annotation in sampler.py#12459
[None][fix] NVTX annotation in sampler.py#12459Funatiq merged 1 commit intoNVIDIA:mainNVIDIA/TensorRT-LLM:mainfrom
Conversation
|
/bot run |
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 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.
🧹 Nitpick comments (1)
tensorrt_llm/_torch/pyexecutor/sampler.py (1)
2335-2341: Add a regression test for the staticmethod + NVTX decorator contract.The decorator reordering looks correct, but this is easy to accidentally regress. Please add a targeted test that calls
TorchSampler._update_original_tokens(...)under profiling/NVTX-enabled execution and asserts it does not raise.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 5987ffb6-4602-4565-be70-b92d60f6167d
📒 Files selected for processing (1)
tensorrt_llm/_torch/pyexecutor/sampler.py
|
PR_Github #39946 [ run ] triggered by Bot. Commit: |
|
PR_Github #39946 [ run ] completed with state
|
|
/bot run |
|
PR_Github #40092 [ run ] triggered by Bot. Commit: |
|
PR_Github #40092 [ run ] completed with state
|
8db4bf1 to
c4e8923
Compare
|
/bot run |
|
PR_Github #40122 [ run ] triggered by Bot. Commit: |
c4e8923 to
57060e8
Compare
|
/bot run |
|
PR_Github #40142 [ run ] triggered by Bot. Commit: |
|
PR_Github #40142 [ run ] completed with state
|
Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
57060e8 to
c82e5b8
Compare
|
/bot run |
|
PR_Github #40290 [ run ] triggered by Bot. Commit: |
|
/bot run |
|
PR_Github #40350 [ run ] triggered by Bot. Commit: |
|
PR_Github #40290 [ run ] completed with state
|
|
PR_Github #40350 [ run ] completed with state |
Description
Avoids error during profiling.
Test Coverage
n/a
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.Summary by CodeRabbit