Skip to content
Machine Learning
Skill

/modelopt-launcher

Run a ModelOpt launcher pipeline YAML (tools/launcher/launch.py) on SLURM or local Docker. Covers preview, the SLURM_* env vars, mapping clusters.yaml to launcher args, sizing the job, and finding its outputs. Use when submitting or previewing a launcher job, or when another

From plugin
modelopt
5.7k32 skills6 agents

Claude Code

$ npx -y skills add nvidia/model-optimizer --skill modelopt-launcher --agent claude-code

SKILL.md

modelopt-launcher.SKILL.md
name: modelopt-launcher
description: Run a ModelOpt launcher pipeline YAML (tools/launcher/launch.py) on SLURM or local Docker. Covers preview, the SLURM_* env vars, mapping clusters.yaml to launcher args, sizing the job, and finding its outputs. Use when submitting or previewing a launcher job, or when another ModelOpt skill sends you here. Do NOT use to write a workflow's task config (use that workflow's skill, e.g. modelopt-ptq) or to monitor a submitted job (use modelopt-monitor).

ModelOpt Launcher

The launcher (`tools/launcher/`) runs a pipeline YAML on SLURM or in local Docker. Read `tools/launcher/CLAUDE.md` for the YAML format and full docs; the workflow skill that sent you here covers its own task config.

Quick Start

cd tools/launcher
uv run launch.py --yaml <config.yaml> --dryrun --yes -v       # preview the resolved config
uv run launch.py --yaml <config.yaml> --yes                   # SLURM (SLURM_HOST set)
uv run launch.py --yaml <config.yaml> hf_local=<cache> --yes  # Local Docker

To start a new pipeline, `ls tools/launcher/examples/`, copy the closest match and modify it.

SLURM vs Local Docker

| Mode | Invocation | | --- | --- | | Remote SLURM | `SLURM_HOST=<host> SLURM_ACCOUNT=<acct> uv run launch.py --yaml <cfg> user=<ssh_user> identity=<ssh_key> --yes` | | Local SLURM | `SLURM_HOST=$(hostname) SLURM_ACCOUNT=<acct> uv run launch.py --yaml <cfg> --yes` | | Local Docker | `uv run launch.py --yaml <cfg> hf_local=<cache> --yes` |

The launcher SSHes to `SLURM_HOST` via `nemo_run.SSHTunnel`. If `identity` is omitted, it uses `~/.ssh/id_rsa`.

> **`SLURM_HF_LOCAL` — HF cache bind-mount.** `slurm_factory` mounts the host HF > cache at `/hf-local` from `$SLURM_HF_LOCAL` (default `/hf-local`). If that host > dir is missing, pyxis fails at container start (`enroot-mount: failed to mount: > /hf-local`). Export a real path (`SLURM_HF_LOCAL=/lustre/.../hf-local`).

**If using `clusters.yaml`**: read the cluster config and map fields to launcher args:

| `clusters.yaml` field | Launcher arg/env | | --- | --- | | `login_node` | `SLURM_HOST` env var | | `user` | `user=` CLI arg | | `ssh_key` | `identity=` CLI arg | | `workspace` | `SLURM_JOB_DIR` env var (default: `~/experiments`) | | `slurm.default_account` | `SLURM_ACCOUNT` env var | | `slurm.default_partition` | `SLURM_PARTITION` env var (default: `batch`), for every task; `pipeline.task_<N>.slurm_config.partition=<name>` overrides one task |

Sizing the Job

> **Match `gpus_per_node` to the cluster's node GPU count / QOS minimum.** If it > is below what the QOS requires (many clusters mandate a full node), `sbatch` > rejects the job with `QOSMinGRES` or `Requested node configuration is not > available`. e.g. GB300 nodes have 4 GPUs and require the full node → set > `gpus_per_node: 4`; B300/B200 nodes have 8. Check with `sinfo -o '%P %G'`. > > Also: the launcher emits `#SBATCH --mem=0` (all node RAM) unless `SLURM_MEM` is > set, so clusters that scale RAM per GPU reject a partial-GPU alloc (`requested … > RAM, but only <N> GPUs`). Requesting the full node fixes it.

Output Location

A task's `/scratchspace` is its experiment's folder on the host, `<job_dir>/cicd/<experiment_id>`; you cannot change the host path. Every task of one YAML shares it, and a later experiment sees it as `/cicd/<experiment_id>/`.

**Local Docker** — `<job_dir>` is `tools/launcher/local_experiments` on the local host.

**Remote SLURM** — `<job_dir>` is `SLURM_JOB_DIR` (default `~/experiments`) on the remote host. Use `remote_run "find ..."` (see the common skill's `remote-execution.md`) or check the job log for the path.

Known Issues

  • **UID mapping in Docker**: May cause `getpwuid` failures. Add `USER=user` and `LOGNAME=user` to environment.
Read more
@nvidia
Ships withmodelopt

Documentation | Roadmap | NVIDIA Model Optimizer (referred to as Model Optimizer, or ModelOpt) is a library comprising state-of-the-art model optimization techniques including quantization, pruning, Neural Architecture Search (NAS), distillation, speculative

5.7k32 skills6 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
5.7k
Star history of nvidia/model-optimizer on GitHub, a chart by star-history.com

Other skills on modelopt.

accessing-mlflow

accessing-mlflow

Compatibility name for modelopt-accessing-mlflow. Browse ModelOpt evaluation runs and artifacts in MLflow.

@nvidia@nvidiaInstall Skill
benchmark-model-kernels

benchmark-model-kernel…

Compatibility name for modelopt-benchmark-model-kernels. Inspect model shapes and benchmark GEMM or fused-MoE kernels.

@nvidia@nvidiaInstall Skill
common

common

Shared ModelOpt support files. Use only when another ModelOpt skill directs you here.

@nvidia@nvidiaInstall Skill
compare-results

compare-results

Compatibility name for modelopt-compare-results. Compare baseline and quantized evaluation results.

@nvidia@nvidiaInstall Skill
day0-release

day0-release

Compatibility name for modelopt-day0-release. Run the full ModelOpt day-0 quantization and validation workflow.

@nvidia@nvidiaInstall Skill
debug

debug

Compatibility name for modelopt-debug. Run commands through the remote Docker debugger relay.

@nvidia@nvidiaInstall Skill

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow13d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

skills4w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast2w7.4k
@feast-dev@feast-devInstall Skill
add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

civitai2w7.3k
@civitai@civitaiInstall Skill

Questions about modelopt-launcher.

Which coding agents can use modelopt-launcher?
modelopt-launcher installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.