Skip to content

[https://nvbugs/6450341][fix] Lower MTP acceptance rate threshold for nvfp4 ws8 trtllm - #16375

Open
MrGeva wants to merge 5 commits into
NVIDIA:mainfrom
nv-auto-deploy:fix-nemotron-super-v3-mtp-acceptance-rate-flakiness
Open

[https://nvbugs/6450341][fix] Lower MTP acceptance rate threshold for nvfp4 ws8 trtllm#16375
MrGeva wants to merge 5 commits into
NVIDIA:mainfrom
nv-auto-deploy:fix-nemotron-super-v3-mtp-acceptance-rate-flakiness

Conversation

@MrGeva

@MrGeva MrGeva commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • TestNemotronSuperV3::test_mtp[nvfp4_ws8_80gb-trtllm] intermittently fails just under the 50% acceptance rate threshold (observed 49.70%).
  • The 8-rank all-reduce/all-to-all in this config is not bit-reproducible, so tiny logit noise occasionally flips an argmax and shifts the measured MTP acceptance rate below the current threshold.
  • Lower the threshold to 0.492 specifically for model_id == "nvfp4", world_size == 8, attn_backend == "trtllm"; all other test_mtp parametrizations keep the existing 0.50 threshold since they run with more margin.

Test plan

  • Re-run test_llm_api_autodeploy.py::TestNemotronSuperV3::test_mtp[nvfp4_ws8_80gb-trtllm] a few times in CI to confirm it no longer flakes at the new threshold.
  • Confirm other test_mtp parametrizations (bf16/fp8 ws4, fp8 ws8) are unaffected.

Dev Engineer Review

  • Lowered the acceptance-rate threshold only for nvfp4_ws8_80gb-trtllm from 0.50 to 0.492.
  • Preserved the 0.50 threshold for all other test_mtp configurations.
  • Removed the corresponding waiver.
  • The change matches the reported non-bit-reproducible 8-rank reduction behavior.

QA Engineer Review

  • Modified TestNemotronSuperV3::test_mtp.
  • Removed its entry from tests/integration/test_lists/waives.txt.
  • No test-db/ or qa/ coverage entry was provided.
  • Verdict: needs follow-up.

@MrGeva
MrGeva requested review from a team as code owners July 14, 2026 13:02
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1b6632a5-eab6-40fa-87ea-0b10eff67fe7

📥 Commits

Reviewing files that changed from the base of the PR and between 1ddd407 and 6e65995.

📒 Files selected for processing (2)
  • tests/integration/defs/accuracy/test_llm_api_autodeploy.py
  • tests/integration/test_lists/waives.txt
💤 Files with no reviewable changes (1)
  • tests/integration/test_lists/waives.txt
🚧 Files skipped from review as they are similar to previous changes (1)
  • tests/integration/defs/accuracy/test_llm_api_autodeploy.py

Walkthrough

The MTP speculative decoding accuracy test now uses a lower acceptance-rate threshold for one NVFP4, eight-rank TRT-LLM configuration. Its test waiver is removed. Other configurations retain the existing threshold.

Changes

MTP accuracy validation

Layer / File(s) Summary
Configuration-specific acceptance threshold
tests/integration/defs/accuracy/test_llm_api_autodeploy.py, tests/integration/test_lists/waives.txt
The test uses 0.492 for the targeted configuration and 0.50 otherwise. The matching waiver is removed.

Estimated code review effort: 2 (Simple) | ~5 minutes

Possibly related PRs

Suggested reviewers: brnguyen2, zhanruisunch, nvchenghaoz

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the NVBugs fix and the specific MTP acceptance-rate threshold change.
Description check ✅ Passed The description explains the intermittent failure, the targeted threshold change, and the relevant test coverage.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@MrGeva

MrGeva commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --extra-stage "DGX_B200-8_GPUs-AutoDeploy-Post-Merge-1"

@MrGeva MrGeva changed the title [None][fix] Lower MTP acceptance rate threshold for nvfp4 ws8 trtllm [https://nvbugs.com/6450341][fix] Lower MTP acceptance rate threshold for nvfp4 ws8 trtllm Jul 14, 2026
@MrGeva MrGeva changed the title [https://nvbugs.com/6450341][fix] Lower MTP acceptance rate threshold for nvfp4 ws8 trtllm [https://nvbugs/6450341][fix] Lower MTP acceptance rate threshold for nvfp4 ws8 trtllm Jul 14, 2026
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59208 [ run ] triggered by Bot. Commit: afe2659 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59208 [ run ] completed with state FAILURE. Commit: afe2659
/LLM/main/L0_MergeRequest_PR pipeline #47706 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@jieli-matrix jieli-matrix left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz also un-waive the test case when fix landing, thx!

TestNemotronSuperV3::test_mtp[nvfp4_ws8_80gb-trtllm] intermittently
fails just under the 50% acceptance rate threshold (observed as low
as 49.70%). The 8-rank all-reduce/all-to-all is not bit-reproducible,
so tiny logit noise occasionally flips an argmax and shifts the
measured acceptance rate. Lower the threshold to 0.492 for this
specific config only; other model_id/world_size/attn_backend
combinations keep the existing 0.50 threshold since they run with
more margin.

Signed-off-by: Eran Geva <19514940+MrGeva@users.noreply.github.com>
@MrGeva
MrGeva force-pushed the fix-nemotron-super-v3-mtp-acceptance-rate-flakiness branch from afe2659 to b6ce009 Compare July 15, 2026 07:57
Signed-off-by: Eran Geva <19514940+MrGeva@users.noreply.github.com>
@MrGeva

MrGeva commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --extra-stage "DGX_B200-8_GPUs-AutoDeploy-Post-Merge-1"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59405 [ run ] triggered by Bot. Commit: 1c103aa Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59405 [ run ] completed with state SUCCESS. Commit: 1c103aa
/LLM/main/L0_MergeRequest_PR pipeline #47878 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@MrGeva

MrGeva commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --extra-stage "DGX_B200-8_GPUs-AutoDeploy-Post-Merge-1" --disable-fail-fast

…akiness

Signed-off-by: Eran Geva <19514940+MrGeva@users.noreply.github.com>
@MrGeva
MrGeva enabled auto-merge (squash) July 15, 2026 11:55
@MrGeva

MrGeva commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --extra-stage "DGX_B200-8_GPUs-AutoDeploy-Post-Merge-1" --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59607 [ run ] triggered by Bot. Commit: 5c2f420 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59607 [ run ] completed with state SUCCESS. Commit: 5c2f420
/LLM/main/L0_MergeRequest_PR pipeline #48048 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

…akiness

Signed-off-by: Gal Hubara-Agam <96368689+galagam@users.noreply.github.com>
@galagam

galagam commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

/bot run --extra-stage "DGX_B200-8_GPUs-AutoDeploy-Post-Merge-1"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59785 [ run ] triggered by Bot. Commit: 5a60145 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #59785 [ run ] completed with state FAILURE. Commit: 5a60145

Link to invocation

…akiness

Signed-off-by: Gal Hubara-Agam <96368689+galagam@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

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.

@galagam

galagam commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

/bot run --extra-stage "DGX_B200-8_GPUs-AutoDeploy-Post-Merge-1"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64237 [ run ] triggered by Bot. Commit: 6e65995 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64237 [ run ] completed with state FAILURE. Commit: 6e65995
/LLM/main/L0_MergeRequest_PR pipeline #52143 completed with status: 'FAILURE'

CI Report

⚠️ Multi-GPU Label Required:
Multi-GPU tests require the ci: full pre-merge approved label on this PR. Ask a member of NVIDIA/trt-llm-ci-approvers to add the label, then re-trigger CI with the same bot command (no rebase needed).

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@galagam

galagam commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64297 [ run ] triggered by Bot. Commit: 6e65995 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64297 [ run ] completed with state FAILURE. Commit: 6e65995
/LLM/main/L0_MergeRequest_PR pipeline #52197 completed with status: 'UNSTABLE'

CI Report

⚠️ Multi-GPU Label Required:
Multi-GPU tests require the ci: full pre-merge approved label on this PR. Ask a member of NVIDIA/trt-llm-ci-approvers to add the label, then re-trigger CI with the same bot command (no rebase needed).

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants