Nemo Automodel Launcher Config
NVIDIAOfficialCreated by NVIDIA
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The nemo-automodel-launcher-config skill provides the necessary configuration patterns for launching NeMo AutoModel jobs across different compute environments. It covers interactive local execution, batch processing on Slurm HPC clusters, and cloud-agnostic deployment via SkyPilot. The skill details how to define job parameters, manage container mounts, handle environment variables, and enable diagnostic profiling using Nsight Systems.
What it does
- Defines YAML configurations for Slurm batch job submissions.
- Configures cloud-agnostic job execution using SkyPilot, including spot instance support.
- Provides settings for interactive local training runs using torchrun.
- Manages multi-node environment variables and distributed communication settings.
- Enables Nsight Systems profiling for Slurm-based performance diagnostics.
- Configures container bind mounts and environment variable injection.
When to use it
- When setting up multi-node training jobs on Slurm clusters.
- When deploying training workloads to cloud providers via SkyPilot.
- When debugging job submission failures or environment configuration issues.
- When switching between interactive development and production cluster execution.
- When profiling training performance using Nsight Systems on Slurm.
Advantages
- Unified configuration interface for diverse compute backends.
- Simplifies complex multi-node setup and rendezvous configuration.
- Provides clear patterns for cost-effective spot instance usage.
- Enables seamless transition from local debugging to large-scale cluster training.
Usage examples
- “How do I configure a 2-node Slurm job for NeMo AutoModel?”
- The agent provides a YAML block under the slurm key, specifying nodes: 2, ntasks_per_node, time, and other required parameters like container_image and hf_home.
- “Show me how to run a training job on AWS using SkyPilot with spot instances.”
- The agent provides a skypilot YAML configuration with use_spot: true, cloud: aws, and necessary setup commands, while advising on checkpoint intervals.
- “How can I profile my Slurm training job?”
- The agent explains how to add nsys_enabled: true to the slurm configuration block and notes that the resulting .nsys-rep file will be in the job output directory.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/nemo-automodel-launcher-config/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip nemo-automodel-launcher-config.zip -d .agents/skills
Documentation by NVIDIA
Launcher Configuration
NeMo AutoModel supports three launch methods: interactive (torchrun), Slurm (HPC clusters), and SkyPilot (cloud-agnostic).
Instructions
For launcher questions, answer directly from this skill without inspecting the repository unless the user asks you to edit files. Keep the answer focused on the relevant launch YAML, required fields, and the expected runtime behavior.
Use these compact answer patterns for common questions:
Slurm multi-node: show a
slurm:YAML block withjob_name,nodes,ntasks_per_node,time,accountorpartition,container_image,hf_home, optionalextra_mounts,env_vars, andmaster_port; explain that the launcher derivesWORLD_SIZE = nodes * ntasks_per_nodeand setsMASTER_ADDRandMASTER_PORT.SkyPilot spot: show a
skypilot:YAML block withcloud,accelerators,num_nodes,use_spot: true,disk_size,region,setup, andenv_vars; warn that spot instances can be preempted, set a shortstep_scheduler.checkpoint_interval, and resume withrestore_from.path.Nsight Systems on Slurm: show
slurm.nsys_enabled: truealongside normal Slurm fields, say the launcher wraps the training command withnsys profile, and state that it produces a.nsys-repreport file. Treat profiling as diagnostic-only: use short profiling runs and disable it for normal production training because it adds overhead and large artifacts.
For Slurm answers, start with this minimal template and then adjust only the fields the user asked about:
slurm:
job_name: llm_finetune
nodes: 2
ntasks_per_node: 8
time: "04:00:00"
account: my_account
partition: batch
container_image: nvcr.io/nvidia/nemo:dev
hf_home: ~/.cache/huggingface
master_port: 13742
env_vars:
HF_TOKEN: "${HF_TOKEN}"For Slurm-only questions, do not discuss SkyPilot or profiling unless the user
asks. For profiling questions, say the .nsys-rep report is written in the
Slurm job working or output directory, using the launcher's Nsys output setting
when one is configured.
Routing Boundary
Use this skill only for launch mechanics: interactive execution, Slurm, SkyPilot, containers, mounts, environment variables, rendezvous settings, and profiling.
Do not use this skill for implementing or registering new model architectures, Hugging Face state-dict adapters, model files, or capability flags. Those are model onboarding tasks, not launcher configuration tasks.
Launch Methods
Interactive (default): runs torchrun on the current node. Suitable for single-node development and debugging.
Slurm: submits a batch job to an HPC cluster scheduler. Handles multi-node setup, container management, and environment configuration.
SkyPilot: cloud-agnostic job submission to AWS, GCP, Azure, Lambda, or Kubernetes. Supports spot instances.
Interactive Launch
# Single GPU
automodel finetune llm -c config.yaml
# Multi-GPU (all GPUs on current node)
torchrun --nproc_per_node=8 -m nemo_automodel._cli.app finetune llm -c config.yamlNo additional YAML section is needed for interactive mode. The CLI routes to torchrun automatically when no slurm: or skypilot: section is present in the config.
Slurm Configuration
The SlurmConfig dataclass generates an SBATCH script from a template.
YAML Example
slurm:
job_name: llm_finetune
nodes: 2
ntasks_per_node: 8
time: "04:00:00"
account: my_account
partition: batch
container_image: nvcr.io/nvidia/nemo:dev
hf_home: ~/.cache/huggingface
extra_mounts:
- source: /data
dest: /data
env_vars:
WANDB_API_KEY: "${WANDB_API_KEY}"
HF_TOKEN: "${HF_TOKEN}"Key Fields
job_name: Slurm job identifiernodes: number of nodes to requestntasks_per_node: number of tasks (GPUs) per nodetime: wall-time limit in HH:MM:SS formataccount,partition: Slurm scheduling parameterscontainer_image: Enroot/Pyxis container image pathnemo_mount: mount point for NeMo AutoModel source inside the containerhf_home: HuggingFace cache directory pathextra_mounts: list ofVolumeMapping(source, dest)for additional container bind mountsmaster_port: port for distributed communication (default 13742)env_vars: environment variables passed into the jobnsys_enabled: when true, wraps the training command withnsys profilefor Nsight Systems profiling
SkyPilot Configuration
The SkyPilotConfig dataclass defines cloud job parameters.
YAML Example
skypilot:
cloud: aws
accelerators: "H100:8"
num_nodes: 2
use_spot: true
disk_size: 200
region: us-east-1
setup: "pip install nemo-automodel"
env_vars:
HF_TOKEN: "${HF_TOKEN}"Key Fields
cloud: target cloud provider (aws,gcp,azure,lambda,kubernetes)accelerators: GPU type and count (e.g.,"H100:8","A100-80GB:4")num_nodes: number of cloud instancesuse_spot: use preemptible/spot instances for cost savingsdisk_size: disk size in GB per noderegion: cloud region for instance placementsetup: shell commands to run before the training job (e.g., install dependencies)env_vars: environment variables for the job
SkyPilot spot checklist
When using spot or preemptible instances:
Set
use_spot: truein theskypilot:section.Include
accelerators,num_nodes,disk_size,region,setup, and requiredenv_vars.Use short checkpoint intervals in the recipe, for example
step_scheduler.checkpoint_interval, because spot instances can be preempted.Resume from the most recent checkpoint after preemption with the recipe's
restore_fromsetting.
Minimal spot-resume recipe keys:
step_scheduler:
checkpoint_interval: 100
restore_from:
path: /checkpoints/latestMulti-Node Environment
For multi-node training (both Slurm and SkyPilot), the launcher automatically configures:
MASTER_ADDR: hostname of the first nodeMASTER_PORT: port for rendezvous (default 13742)WORLD_SIZE: total number of processes (nodes * ntasks_per_node)NCCL environment variables for optimized collective communication
Nsys Profiling
Enable Nsight Systems profiling in Slurm jobs:
slurm:
job_name: llm_profile
nodes: 1
ntasks_per_node: 8
time: "00:30:00"
account: my_account
partition: batch
container_image: nvcr.io/nvidia/nemo:dev
nsys_enabled: trueThis is a Slurm launcher setting. Normal Slurm fields such as job_name,
nodes, ntasks_per_node, time, account or partition, and
container_image still apply.
When nsys_enabled: true, the launcher wraps the training command with
nsys profile and writes a .nsys-rep report file for performance analysis
in the Slurm job working or output directory.
Profiling is diagnostic-only: run it for a short investigation, expect overhead
and large artifacts, and turn it off for normal production training.
Code Anchors
components/launcher/slurm/config.py- SlurmConfig dataclass, VolumeMappingcomponents/launcher/slurm/template.py- SBATCH script template generationcomponents/launcher/slurm/utils.py- Slurm submission utilitiescomponents/launcher/skypilot/config.py- SkyPilotConfig dataclass_cli/app.py- CLI entry point and launcher routing logic
Pitfalls
Port collisions: if the default
master_port(13742) is in use by another job on the same node, change it to avoid connection failures.Container mounts: the
sourcepath inextra_mountsmust exist on all nodes in the allocation. Missing paths cause container startup failures.Slurm fault tolerance: the fault tolerance plugin is Slurm-specific and does not work with SkyPilot or interactive mode.
SkyPilot spot preemption: spot instances (
use_spot: true) may be preempted by the cloud provider. Enable checkpointing with short intervals to minimize lost work.Environment variable syntax: use
${VAR}syntax in YAML for shell variable expansion. Bare variable names will not be expanded.Time limit vs async checkpoint: if the Slurm
timelimit is too short, an in-progress async checkpoint write may be killed before completion, resulting in a corrupted checkpoint. Leave at least 5-10 minutes of margin.
Files
- ATTRIBUTION.mdAdded by AutoGineer948 B
- BENCHMARK.md4.1 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md8.6 KiB
- evals/evals.json3.4 KiB
- skill-card.md3.6 KiB
- skill.oms.sig4.5 KiB
BENCHMARK.md
Evaluation Report
Evaluation of the nemo-automodel-launcher-config skill before publication through NVSkills-Eval.
This benchmark summarizes 3-Tier Evaluation from NVSkills-Eval results for the skill. The goal is to document whether the skill is safe, discoverable, effective, and useful for agents before it is published for broader workflow use.
Evaluation Summary
Skill:
nemo-automodel-launcher-configEvaluation date: 2026-05-28
NVSkills-Eval profile:
externalEnvironment:
localDataset: 3 evaluation tasks
Attempts per task: 2
Pass threshold: 50%
Overall verdict: PASS
Agents Used
claude-codecodex
Metrics Used
Reported benchmark dimensions:
Security: checks whether skill-assisted execution avoids unsafe behavior such as secret leakage, destructive commands, or unauthorized access.
Correctness: checks whether the agent follows the expected workflow and produces the correct final output.
Discoverability: checks whether the agent loads the skill when relevant and avoids using it when irrelevant.
Effectiveness: checks whether the agent performs measurably better with the skill than without it.
Efficiency: checks whether the agent uses fewer tokens and avoids redundant work.
Underlying evaluation signals used in this run:
skill_execution(Skill Execution): verifies that the agent loaded the expected skill and workflow.skill_efficiency(Efficiency): checks routing quality, decoy avoidance, and redundant tool usage.accuracy(Accuracy): grades final-answer correctness against the reference answer.goal_accuracy(Goal Accuracy): checks whether the overall user task completed successfully.behavior_check(Behavior Check): verifies expected behavior steps, including safety expectations.token_efficiency(Token Efficiency): compares token usage with and without the skill.
Test Tasks
The benchmark dataset contained 3 evaluation tasks:
Positive tasks: 3 tasks where the skill was expected to activate.
Negative tasks: 0 tasks where no skill was expected.
Unlabeled tasks: 0 tasks where positive/negative intent could not be inferred.
Task composition is derived from the evaluation dataset when possible. Entries with expected_skill set are treated as positive skill-activation cases, while entries with expected_skill: null are treated as negative activation cases.
Results
| Dimension | Num | claude-code | codex |
|---|---|---|---|
| Security | 6 | 100% (+0%) | 97% (+4%) |
| Correctness | 6 | 100% (+0%) | 95% (+1%) |
| Discoverability | 6 | 100% (+0%) | 78% (+2%) |
| Effectiveness | 6 | 96% (+0%) | 93% (+0%) |
| Efficiency | 6 | 93% (-0%) | 70% (+4%) |
Score values show skill-assisted performance. Values in parentheses show uplift versus the no-skill baseline when baseline data is available.
Tier 1: Static Validation Summary
Tier 1 validation passed with observations. NVSkills-Eval ran 9 checks and found 8 total findings.
Top findings:
MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Examples' (
skills/nemo-automodel-launcher-config/SKILL.md)LOW QUALITY/quality_discoverability: No '## Purpose' section (
skills/nemo-automodel-launcher-config/SKILL.md)LOW QUALITY/quality_reliability: No prerequisites/requirements documented (
skills/nemo-automodel-launcher-config/SKILL.md)LOW QUALITY/quality_reliability: No limitations documented (
skills/nemo-automodel-launcher-config/SKILL.md)LOW QUALITY/quality_reliability: No troubleshooting section documented (
skills/nemo-automodel-launcher-config/SKILL.md)
Tier 2: Deduplication Summary
Tier 2 validation passed. NVSkills-Eval ran 2 checks and found 0 total findings.
Notable observations:
Context Deduplication: Collected 1 file(s)
Inter-Skill Deduplication: Parsed skill 'nemo-automodel-launcher-config': 105 char description
Publication Recommendation
The skill is suitable to proceed toward NVSkills-Eval publication based on this benchmark. Skill owners should keep this file with the skill and refresh it when the evaluation dataset, skill behavior, or target agents materially change.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an API key, Needs Python, Needs Node.js
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA
- Publisher
- NVIDIA (Official)
- Source
- NVIDIA/skills · skills/nemo-automodel-launcher-config · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download nemo-automodel-launcher-config.zip