vllm.model_executor.layers.fused_moe.runner.shared_experts
¶
Classes:
SharedExperts
¶
Bases: Module
Methods:
-
maybe_forward_async–Enqueue shared experts on the aux stream without waiting for them.
-
wait–Block the main stream until
maybe_forward_asyncoutput is ready.
maybe_forward_async(shared_experts_input)
¶
Enqueue shared experts on the aux stream without waiting for them.
Returns true if the shared experts were enqueued, false otherwise. Call
wait to wait for the shared experts to finish if this returns true.
wait()
¶
Block the main stream until maybe_forward_async output is ready.