[https://nvbugs/6011517][fix] Fix autotuner OOM for trtllmGen MoE runners at large context length#12523
Conversation
…ners at large context length Set tune_max_num_tokens=8192 in TuningConfig for FP4BlockScaleMoERunner trtllmGen MoE runners. Without this cap, the autotuner uses the raw input dimension (e.g. 1M+ tokens at 128k context) to generate profiling shapes, causing OOM or CUDA_ERROR_INVALID_VALUE during tactic profiling. Signed-off-by: Yukun He <23156053+hyukn@users.noreply.github.com>
|
/bot run |
📝 WalkthroughWalkthroughUpdated the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
PR_Github #40234 [ run ] triggered by Bot. Commit: |
|
PR_Github #40234 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #40673 [ run ] triggered by Bot. Commit: |
|
PR_Github #40673 [ run ] completed with state |
|
/bot run --disable-fail-fast |
|
PR_Github #40827 [ run ] triggered by Bot. Commit: |
|
PR_Github #40827 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #41098 [ run ] triggered by Bot. Commit: |
|
PR_Github #41098 [ run ] completed with state |
…ners at large context length (NVIDIA#12523) Signed-off-by: Yukun He <23156053+hyukn@users.noreply.github.com>
Summary by CodeRabbit
Description
Cap
tune_max_num_tokens=8192inTuningConfigforFP4BlockScaleMoERunner. Without this cap, the autotuner uses raw input dimensions (e.g. 1M+ tokens at 128k context) to generate profiling shapes, causing OOM orCUDA_ERROR_INVALID_VALUEduring tactic profiling.Test Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.