MoE Commnucator design doc#818
Draft
Binyang2014 wants to merge 25 commits into
Draft
Conversation
jeseszhang1010
pushed a commit
that referenced
this pull request
Jun 26, 2026
…high-level API Unify the high-level MoECommunicator to select its backend from MoECommunicatorConfig.mode: - mode="ll": low-latency (EXPERT_MAJOR) via MoERuntime (reused from binyli/ep, PR #818). The LL runtime is built lazily, so a build that only binds the HT Buffer can still use mode="ht" without MoERuntime being present. - mode="ht": high-throughput (FLAT) via the DeepEP-style Buffer; intranode vs internode is auto-selected from the RDMA buffer-size hint. dispatch() gains an optional previous_handle that reuses the routing layout from a prior dispatch with identical topk_ids (cached intranode dispatch also skips notify_dispatch's host-side counter wait), letting a benchmark isolate the on-GPU dispatch-kernel cost (NCCL-EP ep_bench convention). Rewrite the intranode/internode HT benchmark loops to drive the public MoECommunicator(mode="ht") API instead of raw Buffer calls. Export MoERuntime. Validated on 1 node x 4 GB200 GPUs: correctness PASS; dispatch/combine match the raw-Buffer baseline under identical env (no high-level overhead).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add API doc for MoE communication