Skip to content

[None][perf] Fuse index-q/index-k projections in MinimaxM3 - #8

Merged
brb-nv merged 1 commit into
feat/m3_with_msafrom
user/brb/fuse-index-q-k
Jul 18, 2026
Merged

brb-nv merged 1 commit into
feat/m3_with_msafrom
user/brb/fuse-index-q-k

Conversation

@brb-nv

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

Copy link
Copy Markdown
Owner

Description

Fuse index_q and index_k projections into a single GEMM just like q/k/v.

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    : 345.5368
[Latency] P90    : 346.0675
[Latency] P95    : 346.4071
[Latency] P99    : 346.8475
[Latency] MINIMUM: 344.7297
[Latency] MAXIMUM: 346.8475
[Latency] AVERAGE: 345.5573

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 force-pushed the user/brb/fuse-index-q-k branch 2 times, most recently from 19604d3 to f96a9fe Compare July 17, 2026 20:47
@brb-nv
brb-nv force-pushed the user/brb/fuse-index-q-k branch from f96a9fe to 67a07b9 Compare July 17, 2026 20:55
@brb-nv
brb-nv requested review from pcicotti, peihu-nv and zheyuf July 17, 2026 20:56
@brb-nv
brb-nv merged commit 19db591 into feat/m3_with_msa Jul 18, 2026
8 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