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
DistributedEPDispatch
struct DistributedEPDispatch
Implemented traitsโ
AnyType,
ImplicitlyDestructible
Methodsโ
executeโ
static def execute[dispatch_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, //, target: StringSlice[StaticConstantOrigin], _trace_name: StringSlice[StaticConstantOrigin]](output_tokens: VariadicTensors[Output, static_specs=output_tokens.static_specs], row_offsets: VariadicTensors[Output, static_specs=row_offsets.static_specs], expert_ids: VariadicTensors[Output, static_specs=expert_ids.static_specs], src_info: VariadicTensors[Output, static_specs=src_info.static_specs], input_tokens: VariadicTensors[Input, static_specs=input_tokens.static_specs], topk_ids: VariadicTensors[Input, static_specs=topk_ids.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], atomic_counters: VariadicTensors[MutableInput, static_specs=atomic_counters.static_specs], dev_ctxs: DeviceContextList)
Multi-device fused Expert Parallelism BF16 dispatch.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!