Airgap

From NVIDIA-NeMo/Nemotron · View interactive version

Airgap is an AI agent skill from the GitHub repository NVIDIA-NeMo/Nemotron. Prepare, validate, build, and use Nemotron Customizer airgap image bundles for offline clusters. Use when planning airgapped deployments, editing deploy/nemotron-customizer/airgap/airgap.yaml, selecting workflow targets, grouping step execution images, baking repo overlays or wheel additions, resumi

How to use this skill

Skill file

Nemotron Customizer Airgap

Use this skill to help an agent produce a connected-machine airgap bundle and

then submit Nemotron Customizer steps from the airgapped side. Keep it grounded

in the checked-in runner and manifests; do not invent a parallel packaging flow.

Read First

For selected steps, inspect the catalog through the CLI:

uv run nemotron steps show <step_id> --json

Workflow

  1. Establish the side of the workflow:
  1. Gather the minimum inputs:

Docker volume cleanup, or state-file removal are explicitly allowed.

  1. Plan with the runner first:
uv run python deploy/nemotron-customizer/airgap/runner.py \
  --config deploy/nemotron-customizer/airgap/airgap.yaml

Use --target <step_id>:<config> for one-off selections without editing YAML.

The runner expands dependencies from dependencies, validates selected step

files/configs, groups execution images, and prints selected execution images.

  1. Edit airgap.yaml only where the runner expects configuration:
  1. Execute only when the user asks for a real build:
uv run python deploy/nemotron-customizer/airgap/runner.py \
  --config deploy/nemotron-customizer/airgap/airgap.yaml \
  --execute

If a build fails midway, keep airgap-build-state.yaml and rerun the same

command. Remove or move that state only when intentionally changing the plan.

  1. On the airgapped side, use images from out/airgap-manifest.yaml under

step_execution_images. Submit with the plural CLI:

uv run nemotron steps run <step_id> \
  -c <config-or-airgap-overlay> \
  -b <airgap-profile> \
  run.env.container_image=<image-from-manifest>

For sft/megatron_bridge, prefer the airgap overlay configs under

deploy/nemotron-customizer/airgap/configs/; they clear runtime git auto-mounts

because the runner bakes those repos into the execution image.

Guardrails

Put them on persistent storage and reference them through config overrides and

run.env.mounts.

bakes pinned repo overlays into execution images so airgapped jobs do not clone

from GitHub.

import probes determine small additions; keep heavyweight framework deps in

the base image choice.

HF_HUB_OFFLINE=1, TRANSFORMERS_OFFLINE=1, HF_DATASETS_OFFLINE=1,

and WANDB_MODE=offline.

Validation

After edits to runner logic, YAML structure, or airgap docs, run:

uv run pytest tests/deploy/test_airgap_runner.py -q

For CLI-facing examples, also smoke the command shape:

uv run nemotron steps --help
uv run nemotron steps show data_prep/sft_packing --json

Do not run Docker build/save stages during validation unless the user explicitly

asked for a real connected-machine bundle build.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.