nemo_automodel.components.checkpoint
nemo_automodel.components.checkpoint
Subpackages
Submodules
nemo_automodel.components.checkpoint._torch_backportsnemo_automodel.components.checkpoint.addonsnemo_automodel.components.checkpoint.checkpointingnemo_automodel.components.checkpoint.confignemo_automodel.components.checkpoint.conversion_mappingnemo_automodel.components.checkpoint.lifecyclenemo_automodel.components.checkpoint.state_dict_adapternemo_automodel.components.checkpoint.stateful_wrappersnemo_automodel.components.checkpoint.utils
Package Contents
Classes
API
Configuration for checkpointing.
Every field has a default so the recipe layer can construct this directly
from the YAML checkpoint: block merged with the model-derived
model_repo_id / model_cache_dir / is_peft values. When
model_cache_dir is None it falls back to the HF hub cache.
Resolve the cache dir, enforce PEFT constraints, and coerce the save format/mode.
Build the Checkpointer engine for this config.
Checkpointer is imported lazily to avoid a circular import
(checkpointing.py imports CheckpointingConfig from this module)
and to keep the heavy DCP/safetensors deps out of module load.
Parameters:
Data-parallel rank.
Tensor-parallel rank.
Pipeline-parallel rank.
Optional device mesh for MoE checkpointing.
Process group used for distributed checkpoint collectives.
Optional pipeline-parallel process group. Threaded to the
PEFT save path so adapter weights are gathered across PP stages
(required for complete adapters when pp_size > 1).
Returns: Checkpointer
class:Checkpointer.