Skip to content

[https://nvbugs/6287561][fix] Add get_sm_version() < 90 check at the top of run_MTP() in… - #15343

Open
tensorrt-cicd wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-bug6287561
Open

[https://nvbugs/6287561][fix] Add get_sm_version() < 90 check at the top of run_MTP() in…#15343
tensorrt-cicd wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-bug6287561

Conversation

@tensorrt-cicd

@tensorrt-cicd tensorrt-cicd commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Root cause: DeepSeek MLA generation FMHA kernel (D=576, DV=512, bf16) is only built for Hopper+ (SM>=90); on A100/SM80 the MPI worker aborts via std::terminate during attention warmup, and the parent pytest hangs in subprocess.wait() until the A100X CI stage timeout fires (~1.5h).
  • Fix: Add get_sm_version() < 90 check at the top of run_MTP() in examples/llm-api/llm_speculative_decoding.py that emits logger.warning() and returns cleanly; the subprocess returns 0, parent pytest's subprocess.wait() returns immediately, and Hopper+ behavior is unchanged. Remove the now-redundant full:A100X/...mtp waiver entry.
  • Automated fix generated by repair-bot

Test plan

  • Verify fix on the same GPU type as the original failure
  • Check for regressions in related tests

Links

Summary by CodeRabbit

Release Notes

  • New Features

    • Enhanced speculative decoding examples with GPU compatibility validation. Users receive a clear warning if their hardware doesn't support required features.
  • Tests

    • Re-enabled previously excluded integration test for speculative decoding functionality.

@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This change adds an SM-version check to the MTP speculative decoding example so it skips execution on GPUs below SM 90 with a warning, and it removes the integration-test waiver for that MTP example.

Changes

MTP speculative decoding gating

Layer / File(s) Summary
Runtime SM guard and test re-enable
examples/llm-api/llm_speculative_decoding.py, tests/integration/test_lists/waives.txt
run_MTP now imports and checks the GPU SM version, logs a warning, and returns early when the device is below SM 90; the waived integration test entry for the MTP example is removed from waives.txt.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • NVIDIA/TensorRT-LLM#15061: Also updates tests/integration/test_lists/waives.txt to remove waiver coverage for the speculative decoding MTP test.

Suggested reviewers

  • tburt-nv
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main fix and references the bug, though it is slightly truncated.
Description check ✅ Passed The description covers the issue, fix, test plan, and bug link, matching the template well.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
examples/llm-api/llm_speculative_decoding.py (1)

1-1: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add the required NVIDIA copyright header to this modified Python file.

Line 1 starts directly with content, but modified TensorRT-LLM source files are required to include the NVIDIA copyright/license header block.
As per coding guidelines, “All TensorRT-LLM Open Source Software code should contain an NVIDIA copyright header... update year on modified files.”

🤖 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 `@examples/llm-api/llm_speculative_decoding.py` at line 1, The file
llm_speculative_decoding.py is missing the required NVIDIA copyright/license
header block that must appear at the beginning of all modified TensorRT-LLM
source files. Add the NVIDIA copyright and license header as a comment block at
the very start of the file, before the existing content (### :title Speculative
Decoding), ensuring it includes the copyright notice, appropriate year, and
license information formatted according to TensorRT-LLM coding guidelines for
Python files.

Source: Coding guidelines

🤖 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.

Outside diff comments:
In `@examples/llm-api/llm_speculative_decoding.py`:
- Line 1: The file llm_speculative_decoding.py is missing the required NVIDIA
copyright/license header block that must appear at the beginning of all modified
TensorRT-LLM source files. Add the NVIDIA copyright and license header as a
comment block at the very start of the file, before the existing content (###
:title Speculative Decoding), ensuring it includes the copyright notice,
appropriate year, and license information formatted according to TensorRT-LLM
coding guidelines for Python files.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 13b1200d-5400-484e-a25f-d1516cf1400c

📥 Commits

Reviewing files that changed from the base of the PR and between 1283c6b and 7e9ff03.

📒 Files selected for processing (2)
  • examples/llm-api/llm_speculative_decoding.py
  • tests/integration/test_lists/waives.txt
💤 Files with no reviewable changes (1)
  • tests/integration/test_lists/waives.txt

@tensorrt-cicd
tensorrt-cicd force-pushed the repair-bot-bug6287561 branch from 7e9ff03 to cfc91d6 Compare June 15, 2026 11:55
@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54392 [ run ] triggered by Bot. Commit: cfc91d6 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54392 [ run ] completed with state SUCCESS. Commit: cfc91d6
/LLM/main/L0_MergeRequest_PR pipeline #43460 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

@tensorrt-cicd
tensorrt-cicd force-pushed the repair-bot-bug6287561 branch from cfc91d6 to 3931432 Compare June 16, 2026 10:15
@ziyixiong-nv

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54576 [ run ] triggered by Bot. Commit: 3931432 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54576 [ run ] completed with state FAILURE. Commit: 3931432
/LLM/main/L0_MergeRequest_PR pipeline #43619 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

@ziyixiong-nv

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54699 [ run ] triggered by Bot. Commit: 3931432 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54699 [ run ] completed with state FAILURE. Commit: 3931432
/LLM/main/L0_MergeRequest_PR pipeline #43730 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

@ziyixiong-nv

Copy link
Copy Markdown
Collaborator

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54797 [ run ] triggered by Bot. Commit: 3931432 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #54797 [ run ] completed with state FAILURE. Commit: 3931432
/LLM/main/L0_MergeRequest_PR pipeline #43813 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

@tensorrt-cicd
tensorrt-cicd force-pushed the repair-bot-bug6287561 branch from 3931432 to 7d06c73 Compare June 24, 2026 06:56
@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #55437 [ run ] triggered by Bot. Commit: 7d06c73 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #55437 [ run ] completed with state SUCCESS. Commit: 7d06c73
/LLM/main/L0_MergeRequest_PR pipeline #44373 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

@tensorrt-cicd
tensorrt-cicd force-pushed the repair-bot-bug6287561 branch from 7d06c73 to 0a8e67e Compare June 27, 2026 04:03
@trtllm-agent
trtllm-agent force-pushed the repair-bot-bug6287561 branch from 0a8e67e to 03a2bd1 Compare July 7, 2026 00:48
@sunnyqgg

sunnyqgg commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #58192 [ run ] triggered by Bot. Commit: 03a2bd1 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #58192 [ run ] completed with state FAILURE. Commit: 03a2bd1
/LLM/main/L0_MergeRequest_PR pipeline #46837 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

@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61163 [ run ] triggered by Bot. Commit: fbaf25e Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61163 [ run ] completed with state FAILURE. Commit: fbaf25e
/LLM/main/L0_MergeRequest_PR pipeline #49411 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

@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61205 [ run ] triggered by Bot. Commit: fbaf25e Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61205 [ run ] completed with state FAILURE. Commit: fbaf25e
/LLM/main/L0_MergeRequest_PR pipeline #49449 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

@sunnyqgg
sunnyqgg force-pushed the repair-bot-bug6287561 branch from fbaf25e to da74fec Compare July 23, 2026 09:27

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61264 [ run ] triggered by Bot. Commit: da74fec Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61264 [ run ] completed with state FAILURE. Commit: da74fec
/LLM/main/L0_MergeRequest_PR pipeline #49500 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

@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61774 [ run ] triggered by Bot. Commit: f97b508 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61774 [ run ] completed with state SUCCESS. Commit: f97b508
/LLM/main/L0_MergeRequest_PR pipeline #49974 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

@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61806 [ run ] triggered by Bot. Commit: f97b508 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61806 [ run ] completed with state SUCCESS. Commit: f97b508
/LLM/main/L0_MergeRequest_PR pipeline #50005 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

@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61842 [ run ] triggered by Bot. Commit: f97b508 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61842 [ run ] completed with state SUCCESS. Commit: f97b508
/LLM/main/L0_MergeRequest_PR pipeline #50036 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

@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61863 [ run ] triggered by Bot. Commit: f97b508 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61863 [ run ] completed with state SUCCESS. Commit: f97b508
/LLM/main/L0_MergeRequest_PR pipeline #50056 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

@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61890 [ run ] triggered by Bot. Commit: f97b508 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #61890 [ run ] completed with state FAILURE. Commit: f97b508
/LLM/main/L0_MergeRequest_PR pipeline #50081 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

Signed-off-by: qgai <qgai@nvidia.com>
@sunnyqgg
sunnyqgg force-pushed the repair-bot-bug6287561 branch from f97b508 to 41eab75 Compare July 28, 2026 07:46
@sunnyqgg

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #62154 [ run ] triggered by Bot. Commit: 41eab75 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #62154 [ run ] completed with state FAILURE. Commit: 41eab75
/LLM/main/L0_MergeRequest_PR pipeline #50329 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

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.

8 participants