Skip to content

[None][perf] Deduplicate MSA plan builds in eager mode - #10

Merged
brb-nv merged 1 commit into
feat/m3_with_msafrom
user/brb/dedup-msa-plan-builds
Jul 18, 2026
Merged

brb-nv merged 1 commit into
feat/m3_with_msafrom
user/brb/dedup-msa-plan-builds

Conversation

@brb-nv

@brb-nv brb-nv commented Jul 17, 2026 •

Copy link
Copy Markdown
Owner

Description

Currently, we run separate plan build for each layer in eager mode (prefill / mixed batches). These plans are layer-invariant and it'll suffice to just build them once per forward and share across layers.

For ISL=8192 + OSL=1 at c=1, request latency (ms):

Before:

[Latency] P50    : 352.5532
[Latency] P90    : 354.8767
[Latency] P95    : 356.3088
[Latency] P99    : 357.0346
[Latency] MINIMUM: 351.7977
[Latency] MAXIMUM: 357.0346
[Latency] AVERAGE: 353.0862

After:

[Latency] P50    : 326.2400
[Latency] P90    : 329.3294
[Latency] P95    : 329.5437
[Latency] P99    : 330.7380
[Latency] MINIMUM: 325.2656
[Latency] MAXIMUM: 330.7380
[Latency] AVERAGE: 326.9381

Test Coverage

$ pytest tests/integration/defs/accuracy/test_llm_api_pytorch.py::TestMiniMaxM3::test_nvfp4[use_msa=True] -s -v

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)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

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

@brb-nv
brb-nv marked this pull request as ready for review July 17, 2026 22:46
@brb-nv
brb-nv requested review from pcicotti, peihu-nv and zheyuf July 17, 2026 22:46
@brb-nv
brb-nv force-pushed the user/brb/dedup-msa-plan-builds branch from a577940 to 8ff85c4 Compare July 17, 2026 22:51
@brb-nv
brb-nv force-pushed the user/brb/dedup-msa-plan-builds branch from 8ff85c4 to 1ecffc6 Compare July 18, 2026 00:09
@brb-nv
brb-nv merged commit d9aafa1 into feat/m3_with_msa Jul 18, 2026
11 checks passed
brb-nv pushed a commit that referenced this pull request Nov 17, 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.

2 participants