Skip to content

[https://nvbugs/6316983][fix] In _is_supported_with_reason, return False when `fwd.mrope_rotary_cos_sin is… - #15651

Closed
tensorrt-cicd wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-bug6316983
Closed

[https://nvbugs/6316983][fix] In _is_supported_with_reason, return False when `fwd.mrope_rotary_cos_sin is…#15651
tensorrt-cicd wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-bug6316983

Conversation

@tensorrt-cicd

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

Copy link
Copy Markdown
Collaborator

Summary

  • Root cause: PR [None][feat] Default on FlashInferTrtllmGenAttention #14618 made trtllm-gen the default Blackwell FMHA, but its mRoPE numerics regress Qwen2.5-VL MMMU by ~6 points on every Blackwell SKU.
  • Fix: In _is_supported_with_reason, return False when fwd.mrope_rotary_cos_sin is not None, causing the dispatcher to fall through to FallbackFmha; remove the three stale nvbugs/6316983 waivers (B200/GB200/GB300). No new waivers added.
  • 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

  • Bug Fixes
    • Improved multimodal model compatibility by explicitly blocking a configuration known to cause numeric regressions, helping avoid incorrect results.
  • Tests
    • Removed several test waivers, so additional multimodal accuracy checks now run on supported systems.

@coderabbitai

coderabbitai Bot commented Jun 26, 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: 17a49678-33e2-4f3b-9910-b15744f882a5

📥 Commits

Reviewing files that changed from the base of the PR and between 0425801 and ae14fcd.

📒 Files selected for processing (2)
  • tensorrt_llm/_torch/attention_backend/fmha/flashinfer_trtllm_gen.py
  • tests/integration/test_lists/waives.txt
💤 Files with no reviewable changes (1)
  • tests/integration/test_lists/waives.txt

📝 Walkthrough

Walkthrough

The FMHA backend now rejects requests that supply fwd.mrope_rotary_cos_sin. The integration waiver list removes three SKIP entries for TestQwen2_5_VL_7B::test_auto_dtype on B200, GB200, and GB300.

Changes

mRoPE rejection and waiver cleanup

Layer / File(s) Summary
Backend gate and waivers
tensorrt_llm/_torch/attention_backend/fmha/flashinfer_trtllm_gen.py, tests/integration/test_lists/waives.txt
FlashInferTrtllmGenFmha._is_supported_with_reason rejects non-null fwd.mrope_rotary_cos_sin, and three SKIP waivers for TestQwen2_5_VL_7B::test_auto_dtype are removed from waives.txt.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • NVIDIA/TensorRT-LLM#15443: Both PRs modify tests/integration/test_lists/waives.txt by removing SKIP entries in overlapping contexts for specific Qwen/K2.5 Thinking disagg gen-only/e2e tests, so the changes are directly related.
  • NVIDIA/TensorRT-LLM#15505: Both PRs touch the TestQwen2_5_VL_7B::test_auto_dtype waiver entries in tests/integration/test_lists/waives.txt.
  • NVIDIA/TensorRT-LLM#15609: Both PRs change tests/integration/test_lists/waives.txt by adjusting SKIP/waiver entries for integration coverage.

Suggested reviewers

  • HuiGao-NV
  • liji-nv
  • xxi-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 includes the bug ID and type, even though the ending is truncated.
Description check ✅ Passed The description covers the issue, fix, test plan, and bug link, with only the template's dedicated Description section implicit.
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.

@yechank-nvidia

Copy link
Copy Markdown
Collaborator

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #56013 [ run ] triggered by Bot. Commit: ae14fcd Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator Author

PR_Github #56013 [ run ] completed with state FAILURE. Commit: ae14fcd
/LLM/main/L0_MergeRequest_PR pipeline #44886 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-bug6316983 branch from ae14fcd to fd897f0 Compare June 29, 2026 19:08
@trtllm-agent
trtllm-agent force-pushed the repair-bot-bug6316983 branch from fd897f0 to 00c1433 Compare July 6, 2026 02:08
… use

PR NVIDIA#14618 made the trtllm-gen FMHA the default Blackwell attention
backend; while it ships mRoPE plumbing (mrope_rotary_cos_sin is passed
to trtllm_gen_context_{preprocess,postprocess}), its mRoPE numerics
regress Qwen2.5-VL MMMU by ~6 points on every Blackwell SKU
(B200/GB200/GB300), dropping accuracy from ~51 to ~44.9 and tripping
the 47.343 threshold in test_llm_api_pytorch_multimodal::
TestQwen2_5_VL_7B::test_auto_dtype.

Gate trtllm-gen off in _is_supported_with_reason whenever
fwd.mrope_rotary_cos_sin is not None; the dispatcher then falls
through to FallbackFmha (legacy attention path), which already plumbs
mrope_rotary_cos_sin through fmha/fallback.py and handles it
correctly. This is a per-request gate, so pure-text requests on the
same model still take the fast trtllm-gen path.

Also drop the three existing waivers for this bug (B200/GB200/GB300)
now that the test passes (verified MMMU=47.78 on GB300, threshold
47.343).

Signed-off-by: tensorrt-cicd <90828364+tensorrt-cicd@users.noreply.github.com>
@trtllm-agent
trtllm-agent force-pushed the repair-bot-bug6316983 branch from 00c1433 to cf802f4 Compare July 7, 2026 00:42
@yuxianq
yuxianq self-requested a review July 7, 2026 07:08
@yuxianq

yuxianq commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

#15661 fixes this issue, close this PR.

@yuxianq yuxianq closed this Jul 7, 2026
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.

3 participants