IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo struct

DistributedEPCombine

struct DistributedEPCombine

Implemented traitsโ€‹

AnyType, ImplicitlyDestructible

Methodsโ€‹

executeโ€‹

static def execute[combine_dtype: DType, router_weights_dtype: DType, hidden_size: Int, top_k: Int, n_experts: Int, max_token_per_rank: Int, n_gpus_per_node: Int, n_nodes: Int, fused_shared_expert: Bool, lambdas_have_fusion: Bool, //, target: StringSlice[StaticConstantOrigin], _trace_name: StringSlice[StaticConstantOrigin]](output_tokens: _FusedOutputVariadicTensors[static_specs=output_tokens.static_specs], input_tokens: VariadicTensors[Input, static_specs=input_tokens.static_specs], src_info: VariadicTensors[Input, static_specs=src_info.static_specs], send_ptrs: VariadicTensors[Input, static_specs=send_ptrs.static_specs], recv_ptrs: VariadicTensors[Input, static_specs=recv_ptrs.static_specs], recv_count_ptrs: VariadicTensors[Input, static_specs=recv_count_ptrs.static_specs], router_weights: VariadicTensors[Input, static_specs=router_weights.static_specs], atomic_counters: VariadicTensors[MutableInput, static_specs=atomic_counters.static_specs], dev_ctxs: DeviceContextList)

Multi-device fused Expert Parallelism combine with output fusion.