nemo_automodel.components.models.mistral_large4.parallelization
nemo_automodel.components.models.mistral_large4.parallelization
Model-owned FSDP precision and activation-checkpointing policy.
Module Contents
Classes
API
Bases: ModelParallelizer
Use existing FSDP machinery while preserving Large 4 precision and sharing.
Expert ownership and dispatch use the common MoE parallelizer.
Apply the inherited FSDP flow and retain the CP token mesh.
Parameters:
Native full model or pruned PP stage.
Resolved shared mesh, including its named CP axis.
Existing shared FSDP/AC/compile policies, passed unchanged.
Returns: nn.Module
Parallelized model with its optional CP mesh.
Apply existing dtype-aware FSDP grouping to a model-owned boundary.
Parameters:
Parameter-owning module; its matrices have shape [output, input], vectors [features]. Existing nested FSDP units retain ownership.
One-dimensional DP shard mesh or [replicate, shard] HSDP mesh.
Requested compute policy; sensitive parameters always use FP32.
Existing FSDP storage policy.
Existing FSDP reshard setting.
Optional parameter set with the module’s tensor layouts; these parameters retain their existing ownership and placements.
Returns: nn.Module
Same module, with global-shaped DTensor parameters sharded on their
Shared KV and index selections are explicit immutable block inputs.