vllm.model_executor.layers.fused_moe.router.custom_routing_router
¶
Classes:
-
CustomRoutingRouter–Router using a custom user-provided routing function.
CustomRoutingRouter
¶
Bases: BaseRouter
Router using a custom user-provided routing function.
Source code in vllm/model_executor/layers/fused_moe/router/custom_routing_router.py
_compute_routing(hidden_states, router_logits, indices_type, *, input_ids=None)
¶
Compute routing using the custom routing function.