nemo_automodel.components.models.inkling2.parallelization
nemo_automodel.components.models.inkling2.parallelization
Inkling precision policy on Automodel’s shared FSDP and expert parallelizers.
Module Contents
Classes
Functions
Data
API
Bases: ModelParallelizer
Keep model-owned casts while reusing shared sharding and communication.
Shard the FP32 modules as their own units, then the module around them.
Parameters:
Owner of matrices [output, input], expert tensors [experts, input, output], and vectors [features]. Nested FSDP units keep ownership.
One-dimensional DP shard mesh or two-dimensional HSDP mesh.
Requested compute policy; model code owns input/output casts.
Shared parameter storage/offload policy.
Shared FSDP reshard setting.
Parameters with the module’s tensor layouts already owned by another parallelism unit; their placements are preserved.
Returns: nn.Module
The same module with global-shaped DTensor parameters. Dense parameters
Validate qualified text topology before shared parallelization mutates ownership.
Parameters:
Inkling text model with shared grouped experts and an untied head.
Shared meshes and strategy/compute policy.
Residual histories are explicit immutable inputs to each decoder layer.
Return whether a dotted module name is one of the model-owned FP32 modules.
Parameters:
Module name relative to the module being sharded; activation
checkpoint wrappers add a _checkpoint_wrapped_module segment.
Returns: bool
True when the name equals or ends with an FP32_MODULES entry.
Make module one FSDP unit that leaves already-owned parameters alone.
Parameters:
Module whose remaining parameters become one FSDP unit.
One-dimensional DP shard mesh or two-dimensional HSDP mesh.
Compute policy of this unit.
Shared parameter storage/offload policy.
Shared FSDP reshard setting.
Parameters owned elsewhere; only those inside module are passed on.
Yield the FP32 modules below module that need their own FSDP unit.
Parameters:
Module about to become an FSDP unit; only its descendants are searched.
Parameters already owned by nested FSDP units or by expert parallelism.