vllm.model_executor.layers.fused_moe.prepare_finalize.alltoall_batched
¶
Classes:
-
AllToAllBatchedPrepareAndFinalize–Routed all-to-all EP dispatch/combine in the batched activation format,
AllToAllBatchedPrepareAndFinalize
¶
Bases: FusedMoEPrepareAndFinalizeModular
Routed all-to-all EP dispatch/combine in the batched activation format, over fixed-capacity all_to_all_single collectives. A token is sent to a destination rank once, however many of its experts live there, carrying its local expert ids and router weights as metadata.
Methods:
-
capacities–Returns token slots per rank, expert slots per token, rows per expert.
capacities(topk)
¶
Returns token slots per rank, expert slots per token, rows per expert.