vllm - 💡(How to fix) Fix [Feature]: Integrate fused `kMoEFinalizeARResidualRMSNorm` from FlashInfer [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#40544Fetched 2026-04-22 07:43:54
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
1
Timeline (top)
labeled ×2commented ×1cross-referenced ×1parent_issue_added ×1
RAW_BUFFERClick to expand / collapse

🚀 The feature, motivation and pitch

Available today via FlashInfer 0.6.8, we can leverage this fused MoE Finalize + ResidualAdd + AllReduce + RMSNorm https://github.com/flashinfer-ai/flashinfer/pull/2982.

This should be added as a new torch.compile custom pass. I think moe_finalize might still be inside the wrapped fused_moe op so this might require pulling that out.

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

TL;DR

Extract the moe_finalize from the wrapped fused_moe op to create a new torch.compile custom pass.

Guidance

  • Identify the fused_moe op in the FlashInfer 0.6.8 codebase and locate the embedded moe_finalize to determine the best approach for extraction.
  • Verify that the moe_finalize can be successfully pulled out and used as a separate custom pass in torch.compile.
  • Investigate the PR https://github.com/flashinfer-ai/flashinfer/pull/2982 for potential insights into the fused MoE implementation.
  • Consider testing the new custom pass with a minimal example to ensure it functions as expected.

Notes

The solution assumes that the moe_finalize can be extracted and used as a custom pass without significant modifications to the existing codebase.

Recommendation

Apply workaround: Extract and refactor the moe_finalize to create a new torch.compile custom pass, as this approach allows for incremental testing and validation of the new pass without requiring a full upgrade or rewrite.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

vllm - 💡(How to fix) Fix [Feature]: Integrate fused `kMoEFinalizeARResidualRMSNorm` from FlashInfer [1 comments, 2 participants]