[https://nvbugs/6707518][fix] Fix Kimi K3 spec dec test - #18682
Conversation
f0c5af4 to
c567dee
Compare
Signed-off-by: Mike Iovine <miovine@nvidia.com> Signed-off-by: Mike Iovine <6158008+mikeiovine@users.noreply.github.com>
c567dee to
6aa64bb
Compare
|
/bot run |
|
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 skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe Kimi K3 speculative-decoding harness disables logprob collection for spec runs, reports one-sided parity, omits empty logprob fields, and documents aggregate divergence handling. ChangesSpeculative-decoding logprob handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This updates the speculative-decoding test harness to avoid unsupported logprob requests; no current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
PR_Github #71333 [ run ] triggered by Bot. Commit: |
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
Changing the dump condition from comp.logprobs is not None to truthiness hides an unexpected empty logprob result. On a baseline run where logprobs were requested, comp.logprobs=[] should remain visible (or fail) rather than becoming indistinguishable from 'logprobs were not requested', otherwise the parity fixture can silently lose coverage.
|
PR_Github #71333 [ run ] completed with state
|
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
/bot run |
|
PR_Github #71557 [ run ] triggered by Bot. Commit: |
I don't think that's right, baseline runs that request logprobs but return nothing should still fail after this change |
|
PR_Github #71557 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #71597 [ run ] triggered by Bot. Commit: |
|
PR_Github #71597 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #71625 [ run ] triggered by Bot. Commit: |
|
PR_Github #71625 [ run ] completed with state |
Description
Fix the harness. Logprobs with spec dec has never been supported, but it previously used to warn instead of crashing.
#18401 broke this test by introducing the hard error. Fix it by just disabling logprobs when spec dec is on. The behavior of the test is unchanged.
Test Coverage
Existing tests.
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.Dev Engineer Review
QA Engineer Review
test_kimi_k3_specdecdocumentation.