nemo_automodel.components.launcher.interactive
nemo_automodel.components.launcher.interactive
Module Contents
Classes
Functions
Data
API
Bases: Launcher
Launch a recipe locally on the current node using torchrun or in-process.
Return True when this process was already spawned by torchrun.
torchrun (torch.distributed.run) sets both LOCAL_RANK and
TORCHELASTIC_RUN_ID in the environment of every worker it spawns.
We check for both to avoid false positives from environments (e.g.
SLURM) that may set LOCAL_RANK without an active torchrun session.
When the user launches the CLI via
torchrun --nproc-per-node N -m nemo_automodel.cli.app config.yaml,
each worker must run the recipe in-process instead of re-launching torchrun.
Instantiate and run a recipe in the current process.
Return the repository root. If CWD looks like an editable checkout,
prepend it to PYTHONPATH so the local source takes precedence.
Convert a dotted recipe target into an absolute filesystem path.
Import and return the recipe class from a dotted path.
” pip install nemo-automodel # CPU/basic ” ” pip install nemo-automodel[all] # with CUDA & all extras
”