flashinfer.moe_ep.CakeAlltoAllConfig¶
- class flashinfer.moe_ep.CakeAlltoAllConfig(backend_name: str = 'cake', extra_payload_bytes_per_token: int = 0, eplb_stats_num_experts: int = 0, enable_rank_mask: bool = False, use_low_precision_combine: bool = False, comm_backend: 'CommBackend' | None = None, enable_pdl: bool | None = None)¶
Bases:
objectOptions of
CakeAlltoAll.Pass to
create_communication(..., backend=CakeAlltoAllConfig(...))orMoEEpLayer(..., backend=SplitConfig(comm=CakeAlltoAllConfig())).The dispatch workspace holds each token’s activations as described by
MoEEpCommParams.dispatch_formatplus its routing;extra_payload_bytes_per_tokenreserves room for anything else sent per token.eplb_stats_num_expertsenables all-gathering EPLB statistics of that many experts during dispatch.enable_rank_maskcompiles in rank-mask support foractive_rank_mask.use_low_precision_combinesends combine payloads as FP8.comm_backendexchanges the MNNVL memory handles and defaults to torch.distributed over the bootstrap process group.enable_pdllaunches the kernels with programmatic dependent launch;None(default) enables it on compute capability 9.0 and newer.