For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
Struct_moe_single_group_router_packed
struct Struct_moe_single_group_router_packed
Registers the moe.single.group.router.packed graph op.
The single-group router that also writes each token's ids, as
scores_type, then its weights to one [tokens, 2 * top_k] row of
packed, the routing an allgather replicates.
Implemented traitsโ
Methodsโ
executeโ
static def execute[n_routed_experts: Int, n_experts_per_tok: Int, norm_weights: Bool](expert_indices: T, expert_weights: T, packed: T, expert_scores: T, expert_bias: T, routed_scaling_factor: Float32, context: DeviceContext)