/nvidia-tao-toolkit:tao-run-on-virtualenvfrom NVIDIA TAO Toolkit
Runs Python training/eval scripts directly in an existing local virtualenv without Docker. Implements submit/status/logs/cancel lifecycle with durable on-disk state and process-group cleanup.
Ships in NVIDIA TAO Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Standalone install? If this session was not initialized by the TAO skill bank plugin, run the
tao-setupskill first (host preflight, credentials, cross-skill discovery).
The virtualenv platform runs a Python script natively in an existing venv —
as an argv vector whose first element is <venv>/bin/python, never through a
shell, never activating anything. The vendored runner
(references/virtualenv_runner.py) is this platform's "native CLI" — the role
docker/kubectl/sbatch play elsewhere — and owns only the process
lifecycle. Job records stay with tao_job_record.py; specs are authored by the
agent, exactly like every other platform.
tao-run-on-docker; for
clusters use -slurm / -kubernetes.# 1. The venv is real and has an executable interpreter.
[ -f "$VENV/pyvenv.cfg" ] && [ -x "$VENV/bin/python" ] || echo "MISSING: $VENV is not a venv"
# 2. The script's top-level imports resolve inside it (catches wrong-venv early);
# substitute the real modules your script imports.
"$VENV/bin/python" -c "import torch" || echo "MISSING: script dependency not in $VENV"
# 3. GPU visibility only if the script needs CUDA.
nvidia-smi >/dev/null 2>&1 || echo "note: no GPU visible (fine for CPU scripts)"
No credentials are required by the platform itself; model-specific env vars
(e.g. HF_TOKEN) pass through by NAME with -e (values never land on argv).
Tier A by definition — everything is local paths. Datasets must already be
on local disk (stage with tao-data-io first if they live in S3). Outputs land
in the job record's results_dir, which IS the runner's --job-dir.
$BANK = ${TAO_SKILL_BANK_PATH}; $RUNNER =
$BANK/skills/platform/tao-run-on-virtualenv/references/virtualenv_runner.py.
redact_secrets.py lint.results_dir BEFORE launch:
JOB_ID=$("$BANK/scripts/tao_job_record.py" open --platform virtualenv \
--image "$VENV/bin/python" --network-arch "$ARCH" --action "$ACTION" \
--storage-tier A --results-root "$RESULTS_ROOT")
RESULTS_DIR="$RESULTS_ROOT/$JOB_ID"
set -a; source /path/to/.env; set +a # omit if already exported
python3 "$RUNNER" submit --job-dir "$RESULTS_DIR" --venv "$VENV" \
--script train.py --job-id "$JOB_ID" --config-path "$SPEC" \
--arg train --arg=--config={config_path} --arg=--out={results_dir} \
--gpu-ids 0 -e HF_TOKEN
Placeholders {config_path} {results_dir} {job_id} render inside
--arg tokens. A token starting with - must use the --arg=TOKEN
form (argparse). --gpu-ids sets CUDA_VISIBLE_DEVICES; --gpus 0
hides GPUs; neither reserves anything."$BANK/scripts/tao_job_record.py" mark "$JOB_ID" --state RUNNING --backend-ref "pid:<pid>"
One submit per job dir — a retry gets a NEW record (--retry-of), never a
re-submit into the same dir.
python3 "$RUNNER" status --job-dir "$RESULTS_DIR" # {"status": "...", ...}
Prints the fixed vocabulary directly: PENDING RUNNING COMPLETE ERROR CANCELED UNKNOWN — no mapping table needed. Status is derived from durable files
(exit_status.json, launcher identity) and is safe to poll from any process,
any time, including after reboots of the polling agent. On a terminal status,
mark the record.
python3 "$RUNNER" logs --job-dir "$RESULTS_DIR" --tail 200
python3 "$RUNNER" cancel --job-dir "$RESULTS_DIR"
"$BANK/scripts/tao_job_record.py" mark "$JOB_ID" --state CANCELED --source agent
Cancel marks first (a not-yet-started wrapper self-cancels at its start gate),
then uses a durable group guardian and Linux pidfds for SIGTERM→SIGKILL. The
guardian prevents PGID reuse during discovery; a pidfd pins each target across
the observation/signal boundary. already_terminal in the reply means the job
finished before the cancel — mark the record with the status it reports instead.
pidfd_open, and pidfd_send_signal. On another POSIX host the
ps/pgrep fallback can prove a group is empty, but cancellation of active
members returns UNKNOWN instead of risking a reused numeric PID or PGID.tao-data-io).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nvidia-tao/tao-skill-bank --plugin nvidia-tao-toolkit82 skills in this plugin
/paidf-cosmos-predictPrepare and run PAIDF Cosmos Predict video generation for DEFT media samples./tao-analyze-changenet-rcaPerforms deep Root Cause Analysis (RCA) on NVIDIA TAO Visual ChangeNet classification experiments with image-evidence-driven investigation. Use when analyzing ChangeNet model failures, investigating poor recall / FAR / PASS-NO_PASS metrics, auditing visual inspection pipeline quality, or running an RCA report for an AOI defect-detection model. Trigger phrases include "RCA on my ChangeNet model", "why is my AOI model failing", "audit ChangeNet predictions", "investigate FAR regressions", "root cause analysis on visual-changenet"./tao-analyze-detection-kpiOther plugins' skills for the same job