Skip to content

Conversation

@bnellnm
Copy link
Collaborator

@bnellnm bnellnm commented Aug 20, 2025

Purpose

Overlap shared experts computation with send and receive operations in all2all dispatcher.

TODO

  • Implement prepare_async for flashinfer prepare/finalize class?
  • Move sum of shared/fused experts and final reduce of into the FusedMoE layer.

Test Plan

Tried it with llama4 and deepseek_v2
Added unit test for shared experts in test_pplx_moe.py

Test Result

This trace shows the MLP (nvjet...) overlapped with DeepEP dispatch send/receive (green).

Screenshot 2025-08-29 at 3 19 55 PM

Documentation Update

Updated modular kernel docs

cc @SageMoore , @LucasWilkinson

@mergify mergify bot added the llama Related to Llama models label Aug 20, 2025
@mergify
Copy link

mergify bot commented Aug 20, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @bnellnm.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Aug 20, 2025
@github-actions
Copy link

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

@bnellnm bnellnm changed the title Interleave shared experts with send/recv WIP [Kernels] Interleave shared experts with send/recv Aug 20, 2025
@bnellnm bnellnm marked this pull request as ready for review August 21, 2025 13:45
@mergify mergify bot added the documentation Improvements or additions to documentation label Aug 21, 2025
@bnellnm bnellnm changed the title [Kernels] Interleave shared experts with send/recv [Kernels] Overlap shared experts with send/recv Aug 21, 2025
@mergify mergify bot added the deepseek Related to DeepSeek models label Aug 22, 2025
@bnellnm bnellnm force-pushed the shared-fused-experts branch from d19e631 to 679ff7b Compare August 23, 2025 00:53
@mergify mergify bot removed the needs-rebase label Aug 23, 2025
@bnellnm bnellnm requested a review from WoosukKwon as a code owner August 27, 2025 03:50
Copy link
Contributor

@SageMoore SageMoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, @bnellnm. I only have minor nits. Otherwise looks good.

Copy link
Collaborator

@LucasWilkinson LucasWilkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Would be good to get a trace though to show the overlap

@bnellnm bnellnm force-pushed the shared-fused-experts branch from 1e81a2c to 5939843 Compare August 29, 2025 18:16
@mergify
Copy link

mergify bot commented Aug 30, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @bnellnm.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Aug 30, 2025
@bnellnm bnellnm force-pushed the shared-fused-experts branch from 17eeab8 to e2a93cc Compare September 1, 2025 19:33
@mergify mergify bot removed the needs-rebase label Sep 1, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thunk?

Copy link
Collaborator Author

@bnellnm bnellnm Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A parameterless function. I can change the wording if it's not clear.

Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
auto-merge was automatically disabled September 3, 2025 02:40

Head branch was pushed to by a user without write access

@bnellnm bnellnm force-pushed the shared-fused-experts branch from 4f87a94 to 068ad88 Compare September 3, 2025 02:40
@robertgshaw2-redhat robertgshaw2-redhat enabled auto-merge (squash) September 3, 2025 02:43
@robertgshaw2-redhat
Copy link
Collaborator

/ready

Signed-off-by: Bill Nell <bnell@redhat.com>
auto-merge was automatically disabled September 3, 2025 02:44

Head branch was pushed to by a user without write access

@bnellnm
Copy link
Collaborator Author

bnellnm commented Sep 3, 2025

@SageMoore , @LucasWilkinson could you guys take a final look? Should be ready to merge. @robertgshaw2-redhat verified that it works on multi-node systems now.

@robertgshaw2-redhat robertgshaw2-redhat merged commit e9b92dc into vllm-project:main Sep 3, 2025
54 checks passed
eicherseiji pushed a commit to eicherseiji/vllm that referenced this pull request Sep 9, 2025
@yewentao256
Copy link
Member

This PR introduces the R1 accuracy issue #24530

FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek Related to DeepSeek models documentation Improvements or additions to documentation llama Related to Llama models ready ONLY add when PR is ready to merge/full CI is needed v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants