Skip to content

vllm.model_executor.layers.fused_moe.router.custom_routing_router

Classes:

CustomRoutingRouter

Bases: BaseRouter

Router using a custom user-provided routing function.

_compute_routing(hidden_states, router_logits, indices_type, *, input_ids=None)

Compute routing using the custom routing function.