vllm.model_executor.layers.fused_moe.prepare_finalize.mori
¶
Classes:
-
MoriPrepareAndFinalize–Prepare/Finalize using MoRI kernels.
MoriPrepareAndFinalize
¶
Bases: FusedMoEPrepareAndFinalizeModular
Prepare/Finalize using MoRI kernels.
Methods:
-
prepare–Returns a tuple of:
prepare(a1, topk_weights, topk_ids, num_experts, expert_map, apply_router_weight_on_input, quant_config, defer_input_quant=False)
¶
Returns a tuple of: - quantized + dispatched a. - Optional quantized + dispatched a1_scales. - Optional ExpertTokensMetadata containing gpu/cpu tensors as big as the number of local experts with the information about the number of tokens assigned to each local expert. - Optional dispatched expert topk IDs - Optional dispatched expert topk weight