nemo_automodel.components.models.nemotron_v3.parallelization
nemo_automodel.components.models.nemotron_v3.parallelization
Model-owned distributed parallelization for Nemotron-H and Nemotron-V3.
Module Contents
Classes
Functions
Data
API
Bases: ModelParallelizer
Apply Nemotron-H’s specialized TP, CP, AC, and FSDP policy.
Apply every requested parallelism to a Nemotron-H model.
Return the mutable decoder container and its ordered blocks.
Return whether model is the HF NemotronH layout rather than native Nemotron-V3.
Both classes are named NemotronHForCausalLM and share this parallelizer: the HF
remote-code model keeps its decoder blocks in backbone.layers (nn.ModuleList),
while the native model keeps them in model.layers (nn.ModuleDict). The HF class
exposes no API that distinguishes the two, so this attribute probe is the single place
the layout is decided.
Parameters:
A Nemotron-H or native Nemotron-V3 causal LM.
Returns: bool
True for the HF layout, False for the native layout.