Skip to main content

Module routing

Module routing 

Expand description

MoE top-k router and gating logic (Work Package F9).

Provides zero-heap top-k expert selection and routing weight normalization for bounded generic expert counts and model-selected routing widths.

Structs§

MoeRoutingConfig
Configuration for MoE routing.

Enums§

MoeError
Error conditions during MoE routing.

Constants§

MAX_MOE_TOPK
Maximum number of routed experts per token supported on the stack.

Functions§

combine_expert_outputs
Combine expert outputs using computed routing weights.
route_topk
Zero-heap top-k expert selection and routing weight calculation.