[None][fix] Increase max top logprobs limit#16851
Conversation
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
|
/bot run |
WalkthroughThe default maximum allowed value for ChangesLogprob validation limit
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tensorrt_llm/sampling_params.py (1)
28-28: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd boundary tests for the new shared limit.
Add coverage confirming that
logprobsandprompt_logprobsaccept100, reject101, and preserve existing behavior for0/None. This constant also controls downstream logprob storage sizing, so both validation paths should be covered.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tensorrt_llm/sampling_params.py` at line 28, Add boundary tests around MAX_TOP_LOGPROBS covering both logprobs and prompt_logprobs: verify 100 is accepted, 101 is rejected, and existing 0/None behavior remains unchanged. Exercise both validation paths and confirm downstream logprob storage sizing remains consistent with the shared limit.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@tensorrt_llm/sampling_params.py`:
- Line 28: Add boundary tests around MAX_TOP_LOGPROBS covering both logprobs and
prompt_logprobs: verify 100 is accepted, 101 is rejected, and existing 0/None
behavior remains unchanged. Exercise both validation paths and confirm
downstream logprob storage sizing remains consistent with the shared limit.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: cd3deba9-1b30-4183-8091-920617556a78
📒 Files selected for processing (1)
tensorrt_llm/sampling_params.py
|
PR_Github #61647 [ run ] triggered by Bot. Commit: |
|
PR_Github #61647 [ run ] completed with state
|
Dev Engineer Review
MAX_TOP_LOGPROBSfrom 20 to 100 intensorrt_llm/sampling_params.py.logprobsandprompt_logprobswithout altering other behavior.QA Engineer Review
No test changes.
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)
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.