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§
- MoeRouting
Config - 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.