nemo_automodel.components.distributed.model_parallelizer
nemo_automodel.components.distributed.model_parallelizer
Resolve and execute model-owned parallelization sidecars.
Module Contents
Classes
Functions
Data
API
Single model-owned parallelization sidecar contract.
Apply the shared dense FSDP2 implementation.
Wrap the model’s submodules into FSDP2 units.
Model-owned sidecar strategies deriving from this class override this
hook to change how parameters are grouped into FSDP units without
reimplementing the surrounding TP/AC/mixed-precision flow. Override
_fully_shard_module when a model needs a different primitive.
Apply the FSDP2 primitive used by this model sidecar.
Return whether this model safely opts into whole-layer checkpointing.
Validate the model’s attention topology against its TP mesh.
Apply every requested parallelism and return the parallelized model.
Execute shared strategy dispatch for one model-owned parallelizer.
Compile FSDP2 layers after parallelization when requested.
Return the class-owned sidecar, or the shared default implementation.
Apply all requested parallelisms through the model-owned contract.