[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
Closed
[https://nvbugs/6293823][fix] Restored the one-line MLA-generation override from PR #13505 in…#15279tensorrt-cicd wants to merge 1 commit into
tensorrt-cicd wants to merge 1 commit into
Conversation
…IA#13505 in `mlaGeneration() Signed-off-by: Chenfei Zhang <chenfeiz@nvidia.com>
Contributor
|
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 (1)
📝 WalkthroughWalkthroughThis PR updates the FMHA runner parameter in TensorRT-LLM's attention operation. The ChangesFMHA Kernel Parameter Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tllmRunnerParams.mMaxSeqLenKv = generation_params.max_attention_window_sizeand replaced it withmax_past_kv_lengthplus a startup JIT warmup grid. The new warmup grid covers (HVPerCta128, MultiCtasKv-noCga), (HVPerCta128, MultiCtasKvCga), and (HVPerCta256, MultiCtasKvCga), but NOT the (HVPerCta256, MultiCtasKv-noCga) variant the autotuner picks at runtime for DeepSeek-R1 MLA, FP8/BF16, HQk576/HV512, page=32, batch=1, kv-len≈8199. Each cache miss synchronously JIT-compiles for ~20s mid-benchmark, blowing up mean/p99 TTFT and dropping output_token_throughput by 38.2%.mlaGeneration()sotllmRunnerParams.mMaxSeqLenKvis again pinned togeneration_params.max_attention_window_size(the max cache capacity). This collapses runtime kv-len variability onto the single shape the CUDA-graph warmup already covers, eliminating the autotuner's mid-benchmark switch to the uncovered (HVPerCta256, MultiCtasKv-noCga) variant. Kept all of PR [https://nvbugs/6185446][fix] Add warmup for trtllm-gen fmha JIT kernels #14851's JIT warmup framework, plumbing, and the cache-miss warning intact (this is Option B from the triage report and matches the historical PR [None][perf] Drop cubin and Eliminate ~6s FMHA JIT recompile in eager generation by aligning kernel selection with CUDA graph warmup #13505 fix pattern). One-file, ~9-line change.Test plan
Links
Summary by CodeRabbit