nemo_automodel.components.models.hy_v4_flash.fsdp
nemo_automodel.components.models.hy_v4_flash.fsdp
FSDP policy of the Hy4-flash decoder root.
The decoder blocks are sharded by dtype by the shared MoE parallelizer, but the root HYV4FlashModel also owns the
fp32 output hyper-connection (hc_head) next to the bf16 final norm. FSDP requires one parameter dtype per unit and
would cast hc_head to the bf16 policy dtype, so hc_head gets its own fp32 unit before the root is sharded.
Module Contents
Classes
Data
API
Bases: ModelParallelizer
Give the fp32 output hyper-connection a dtype-uniform FSDP unit.
Shard module in place like the base parallelizer, first isolating a directly owned hc_head.