nemo_automodel.components.models.flint.parallelization
nemo_automodel.components.models.flint.parallelization
Flint-owned FSDP precision boundaries for learned sinks and the output head.
Module Contents
Classes
API
Bases: ModelParallelizer
Preserve FP32 compute units within the existing generic FSDP2 flow.
Apply inherited FSDP policies and retain this stage’s CP token mesh.
Parameters:
Native full model or pruned PP stage; parameter tensor layouts remain [out,in] projections and grouped expert matrices.
Resolved shared mesh, including its named CP axis.
Existing shared FSDP/AC/compile policies, passed unchanged.
Returns: nn.Module
Parallelized native module with its optional CP mesh. This mesh owns
Apply the shared primitive with Flint’s two protected dtype boundaries.
Parameters:
Decoder block, optional activation-checkpoint wrapper, input embedding, output head, or outer model. Block ordinary parameters use native [out,in] matrices and fused expert [experts,hidden,2*intermediate] / [experts,intermediate,hidden] layouts. Sink holders own [heads] parameters; the head owns [vocab,hidden].
FSDP data-parallel mesh. Parameters become DTensors sharded by the shared FSDP primitive; callers must enter on all mesh ranks.
Bulk compute/reduction policy; FP32 master storage remains unchanged. Sink holders and the independently wrapped head use FP32.
Existing FSDP storage-offload policy.
Existing FSDP reshard policy, or its default.
Runtime parameters owned by another FSDP unit, if any. They may have arbitrary global/native shapes or rank-local shards; their existing DTensor mesh/placements are preserved.
Returns: nn.Module
The same module, mutated in place into FSDP units. Existing shapes