flashinfer.moe_ep: Expert-Parallel Communication¶
A MoEEpCommunication dispatches each token to the ranks that own its
experts and combines the expert outputs back on the token’s source rank.
create_communication() builds one from a BootstrapConfig, which
describes the expert-parallel group, and a backend config; the backends below
run over NVLink (MNNVL) symmetric memory.
|
Inputs each backend needs to construct a Fleet. |
|
Self-contained MoE expert-parallel dispatch/combine backend. |
|
EP sizing shared by every communication backend. |
|
Rank-major receive buffers produced by |
|
Rank-major dispatch/combine with NVLink one-sided put/get kernels. |
|
Options of |
|
Rank-major dispatch/combine with the generated Cake kernels. |
|
Options of |
|
Rank-major dispatch/combine with NVLink two-sided all-to-all-v kernels. |
|
Options of |
|
Instantiate the registered communication backend named by |
Complete EP selection¶
MoEEpLayer(..., backend=AutoConfig(...)) compares complete Mega and split
forwards during a v2 warmup. See the EP architecture notes for candidate
configuration, cache matching and graph lifetime.
|
Select a complete EP path from explicitly configured candidates. |
|
Tune explicit Mega and split candidates over the complete EP forward. |
|
A prepared input profile and its selected EP plan. |