vllm.models.hy_v4_flash.nvidia.moe
¶
Flash latent experts with HYV4's routing, shared experts and weight format.
Classes:
-
LatentUpProjection–Routed latent-to-hidden projection.
LatentUpProjection
¶
Bases: ReplicatedLinear
Routed latent-to-hidden projection.
When bias-free and unquantized it commutes with the TP sum, so the routed and shared outputs share one all-reduce, and it takes the shared output as the GEMM's accumulate input instead of a separate add.
Source code in vllm/models/hy_v4_flash/nvidia/moe.py
_defers_allreduce(config)
¶
Whether the MLP leaves its output TP-partial for the sandwich norm to reduce in a fused all-reduce + RMSNorm.