Skip to content

[https://nvbugs/6293823][fix] Restored the one-line MLA-generation override from PR #13505 in… - #15279

Closed
tensorrt-cicd wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-bug6293823-3cf306
Closed

[https://nvbugs/6293823][fix] Restored the one-line MLA-generation override from PR #13505 in…#15279
tensorrt-cicd wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-bug6293823-3cf306

Conversation

@tensorrt-cicd

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

Copy link
Copy Markdown
Collaborator

Summary

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 attention parameter handling during model generation to ensure proper kernel selection during JIT compilation and avoid potential performance issues.

…IA#13505 in `mlaGeneration()

Signed-off-by: Chenfei Zhang <chenfeiz@nvidia.com>
@coderabbitai

coderabbitai Bot commented Jun 11, 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: f63c4677-4f3b-4368-ab6c-da5394fa76d0

📥 Commits

Reviewing files that changed from the base of the PR and between 1b360ee and 9a74256.

📒 Files selected for processing (1)
  • cpp/tensorrt_llm/common/attentionOp.cpp

📝 Walkthrough

Walkthrough

This PR updates the FMHA runner parameter in TensorRT-LLM's attention operation. The mMaxSeqLenKv parameter is changed from max_past_kv_length to max_attention_window_size for MLA generation under the trtllm-gen code path, with clarifying comments about JIT warmup kernel selection and paged-KV constraints.

Changes

FMHA Kernel Parameter Configuration

Layer / File(s) Summary
Max sequence length parameter for FMHA kernel selection
cpp/tensorrt_llm/common/attentionOp.cpp
Updated tllmRunnerParams.mMaxSeqLenKv to use generation_params.max_attention_window_size instead of max_past_kv_length in the MLA generation+trtllm-gen flow. Added comments explaining the intent around FMHA kernel selection during JIT warmup and handling of paged-KV behavior.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • chzblych
  • yunruis
  • dpitman-nvda
🚥 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 pull request title correctly identifies the fix being applied by referencing the restored override from PR #13505 and the bug ID, though it's truncated with an ellipsis.
Description check ✅ Passed The PR description thoroughly covers the root cause, fix approach, performance metrics, test plan, and relevant links, though it lacks explicit coverage of the checklist items from the template.
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.

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