Generated banner for Tao Run Automl
Generated logo for Tao Run Automl

Tao Run Automl

NVIDIAOfficialCreated by NVIDIA Corporation

  • Skill
  • Workflow
  • Software development
  • Apache-2.0
  • Medium risk
  • Has scripts

From the author

Run container-backed AutoML / hyperparameter optimization (HPO) for NVIDIA TAO networks using AutoMLRunner. Handles algorithm selection (bayesian, hyperband, asha, bohb, llm, hybrid, autoresearch), WandB experiment tracking, job execution on any TAO SDK platform, result interpretation, and per-rec custom evaluation hooks. Use when the user mentions TAO AutoML, hyperparameter optimization, HPO, automl, automl_settings, AutoMLRunner, tao_automl, bayesian search, hyperband, ASHA, LLM-guided search, autoresearch, or wants to tune train/evaluate/inference/distill/prune/quantize for a TAO network. Model actions use the resolved image; venv training requires an explicit request. Platform-agnostic — runs on any SDK (Brev, SLURM, Kubernetes, Docker). Do not use generic "keep improving" language alone to override a matching domain-specific DEFT workflow; attribute-labelled CLIP / SigLIP image-retrieval loops belong to tao-run-deft-pas unless HPO is explicit.
— the description by NVIDIA Corporation

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The tao-run-automl skill provides a structured, platform-agnostic workflow for running hyperparameter optimization (HPO) on NVIDIA TAO models. It integrates with various platforms like Brev, SLURM, Kubernetes, and Docker to manage the lifecycle of training, evaluation, and compression tasks. The skill handles algorithm selection, experiment tracking via WandB, and provides a rigorous pre-launch review process to ensure compute resources are used efficiently. It supports advanced search strategies including Bayesian, Hyperband, ASHA, and LLM-guided optimization, ensuring that model tuning is both systematic and data-driven.

What it does

  • Automates hyperparameter search using algorithms like Bayesian, ASHA, and BOHB.
  • Executes platform-agnostic jobs across Docker, Kubernetes, SLURM, and Brev.
  • Performs mandatory baseline evaluations before launching optimization trials.
  • Integrates LLM-based analysis for periodic experiment review and search space refinement.
  • Manages experiment tracking and result interpretation for model training, distillation, pruning, and quantization.
  • Enforces strict pre-launch reviews and resource budget checks.

When to use it

  • When you need to optimize hyperparameters for a NVIDIA TAO network.
  • When you want to automate the tuning of training, evaluation, inference, distillation, pruning, or quantization tasks.
  • When you require a systematic approach to model performance improvement using advanced search algorithms.
  • When you need to track and compare multiple experiment configurations efficiently.

Advantages

  • Reduces manual effort in finding optimal model configurations.
  • Provides consistent, reproducible experiment tracking.
  • Supports diverse compute environments without changing the workflow logic.
  • Prevents resource waste through pre-launch validation and baseline evaluation.
  • Offers flexible search strategies tailored to different budget and performance requirements.

Usage examples

“Run AutoML for my object detection model on Kubernetes using Bayesian search.”
The agent will initiate the preflight checks for the Kubernetes platform, validate the model schema, perform a baseline evaluation, and begin the Bayesian optimization process.
“Optimize the pruning parameters for my classification model using ASHA.”
The agent will configure the ASHA algorithm, set up the pruning action, and manage the trial lifecycle to find the best-performing pruned model.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/nvidia/tao-run-automl/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip tao-run-automl.zip -d .agents/skills

Documentation by NVIDIA Corporation

TAO AutoML

Standalone install? If this session was not initialized by the TAO skill bank plugin, run tao-setup first (host preflight, credentials, cross-skill discovery).

Run automated hyperparameter optimization for a TAO model by combining:

  1. The selected model skill under skills/models/<model_skill>/.

  2. The selected platform skill under skills/platform/<platform>/.

  3. AutoMLRunner, which generates recommendations, launches selected action jobs, extracts metrics, and feeds results back to the optimizer.

Do not launch until model metadata, platform preflight, data visibility, credentials, image choice, and compute shape are all proven.

Execution Runtime — Hard Gate

Every recommendation, baseline evaluation, per-recommendation evaluation, and final evaluation runs in the selected model action's resolved container_image by default. Resolve it from the model skill before any training-environment setup. A local checkpoint or Hugging Face model ID does not change this rule.

Use venv-based model execution only when explicitly requested. Never infer venv mode from local-docker, local GPUs, Python, or pyproject.toml. If absent, execution is container-backed. A host/controller venv for tao_automl, TAO SDK, or a platform adapter is control-plane-only; keep child model actions in the resolved container image.

Reference Map

  • references/skill_info.yaml: this workflow's structured metadata.

  • Split detailed references: automl-preflight-concepts.md for prerequisites and support checks; automl-intent-algorithms.md for search policy; automl-compression-literature.md for distill/prune/quantize algorithm sufficiency and future compression-search roadmap; automl-runner-configuration.md for runner/API/WandB details; automl-advanced-monitoring.md for hooks, resume, and pitfalls; and automl-examples.md for conversation examples; and automl-common-pitfalls.md for recurring safety checks. detailed-guide.md is only the map.

  • skills/models/<network>/SKILL.md: model-specific dataset requirements, metrics, HPO notes, checkpoint handoff, and known failures.

  • skills/models/<network>/references/skill_info.yaml: action contract, container image, inputs, outputs, upload exclusions, and mode.

  • skills/platform/<platform>/SKILL.md: selected platform preflight, credentials, resource shape, monitoring, and cancellation.

  • skills/core/tao-launch-workflow/SKILL.md: shared intake pattern for platform, credentials, dataset visibility, image confirmation, and user confirmation.

Preflight

  1. Run the shared launch intake. If the user has not chosen a platform, ask; Brev, SLURM, Kubernetes, and Docker are equal peers.

  2. Run the selected platform skill's preflight before generating runner files.

  3. Verify nvidia-tao-automl imports:

python -c "import tao_automl; from tao_automl.runner import AutoMLRunner; print('OK')"

Then verify the selected platform's SDK constructs — importing tao_automl does not prove the platform backend is installed (e.g. DockerSDK() raises CredentialError without the docker package). See automl-preflight-concepts.md.

If missing, show the exact install command from versions.yaml and ask before installing:

SB="${TAO_SKILL_BANK_PATH:-~/tao-skill-bank}"
pip install "$($SB/scripts/resolve_versions_key.py wheels.tao_automl_<platform>)"

Valid platform wheel keys are tao_automl_brev, tao_automl_slurm, tao_automl_kubernetes, tao_automl_docker, and tao_automl_all. Use all only for development machines that need every backend. Add ,llm only when the user requests LLM-guided algorithms.

Model Support Gate

Before every run:

  1. Read the model SKILL.md and references/skill_info.yaml.

  2. Confirm automl_enabled: true for the model or that the model skill explicitly routes the selected action to AutoML.

  3. Confirm <skill_dir>/schemas/<action>.schema.json exists and parses. This is the AutoML search-space gate.

  4. For non-TAO-Core models such as Cosmos-RL and CLIP, also require references/spec_template_<action>.yaml; otherwise the runner has no complete action defaults.

  5. If any gate fails, do not improvise a search space. Report the missing package artifact.

Inputs

Collect these before runner construction:

InputRequirement
model_skillResolved model skill directory under skills/models/. Resolve user aliases such as network_arch to the packaged skill directory first.
network_archRead from the resolved model skill metadata.
actionAction to optimize — train, evaluate, inference, distill, prune, or quantize with a packaged schema/template.
platformOne of the supported TAO platform skills.
train_dataset / eval_dataset / action inputsUse model-specific spec keys and layout. Non-train actions may also need parent/teacher checkpoints, calibration data, or pruned artifacts.
results_rootLocal, Lustre, or S3 path appropriate for the platform.
gpu_count, num_nodesRespect model and platform limits.
container_imageResolve through model metadata and versions.yaml; show it to the user.
automl_algorithmDefault bayesian unless user asks for another algorithm or the model skill recommends one.
metric, directionPrefer the model skill's validation/task metric.
automl_budgetRecommendation count, max epochs/rungs, concurrency, or population size as required by the algorithm.

Never ask for secret values. Verify required env vars with [ -n "$VAR_NAME" ] && echo SET || echo UNSET.

Pre-Launch Review Gate

Before launching any recommendation jobs, show a concrete launch review and get user confirmation. This gate applies to every AutoML run for every AutoML-supported model/network; it is not Cosmos-specific and must not be scoped to a single model skill. This applies even when platform and image preflight already passed. The review must include:

  • model/network, platform, image, GPU/node shape, and result/workspace root

  • dataset mode and concrete spec keys, including train/eval sample counts when they can be read cheaply

  • algorithm, budget, max concurrent jobs, metric, and direction

  • searchable parameters and ranges, including default values when the user did not provide an explicit search space

  • exact generated recommendation configs for the initial launch batch, produced in a review-only step before any recommendation job is submitted

  • estimated runtime per recommendation and total expected wall time, with the assumptions used

  • the automatic baseline eval job id, metric value, and result path from the post-preflight eval job, or an explicit blocker if the model has no runnable evaluate action or validation data

  • the post-AutoML final evaluation plan for the selected best checkpoint/model, including metric, dataset, and record path

If the estimate is longer than the user's stated limit or materially longer than a normal interactive run, ask whether to reduce recommendations, epochs, dataset size, validation frequency, or search space before launch. Do not hide multi-day estimates in logs.

Automatic Baseline Eval Job

After platform, image, credential, data, and model preflight pass, run the model's evaluate action once on the selected validation/eval data before submitting any AutoML recommendation jobs. This is required AutoML setup, not an optional "pretrained eval" question for the user. Use the same base model or checkpoint that the AutoML training run starts from, the model skill's evaluate spec/template, and the selected platform's normal job submission path. If the model skill recommends a smaller shape for evaluation than training, use that shape and call it out in the launch review.

Share the eval metric number in the launch review before asking for confirmation. If a starting checkpoint exists but the baseline cannot be produced — no packaged evaluate action, missing eval dataset, failed eval job — stop and report the blocker instead of silently falling back to a training-loss-only run.

For training from scratch, record the baseline as unavailable and proceed; do not evaluate an empty checkpoint.

The runner owns final evaluation. When eval is runnable, pass final_eval_fn(best_rec, train_job_id) to AutoMLRunner.run; the result then carries result["final_evaluation"]. See automl-preflight-concepts.md for the callback, checkpoint, baseline, and from-scratch rules.

Dependency And Data Preflight

If the selected workflow needs object storage or a platform CLI and the tool is missing, report the missing dependency and offer the exact install command before continuing. After user approval, rerun scripts/check_tao_launch_preflight.py with --install-missing-tools so it installs the smallest needed package and immediately retries path verification. For S3 paths, verify both credentials and path readability from the launch platform before creating runner artifacts.

For models that read large media archives or directories during every training trial, stage or extract the dataset once to storage visible from the execution platform, then point all recommendation specs at that staged path. Record the source URI, staged path, byte/file-count evidence when available, and timestamp in <workspace>/evaluations/data_staging.json. If staging is not possible, include the repeated S3 I/O risk in the pre-launch review and ask before spending a long AutoML budget on it.

When the model skill defines sample-count-sensitive constraints, enforce them before launch. Reject or cap every batch-size recommendation that would create zero training steps for the selected dataset and GPU shard count. Use scripts/check_tao_launch_preflight.py --effective-batch-limit train_annotation=<batch_size>,<shard_count> for each generated recommendation before submitting it. If a recommendation later fails because the data is too small for the effective batch size, classify it as an invalid configuration, replace or adjust it only when remaining budget exists, and report the correction in the final summary. When train sample count is known from an annotation file or cheap manifest read, pass it as automl_settings["train_sample_count"] to AutoMLRunner.run so the runner can cap impossible recommendations before submitting a job and record the adjustment in result["history"][i]["adjustments"].

Algorithm Policy

AlgorithmGood fitRequired knobs
bayesianDefault for small/medium budgets and few parameters.num_recommendations, metric, direction
hyperband, ashaMany configs, cheap early rungs; ASHA is parallel-friendly.max_epochs, reduction_factor, optional max_concurrent
bohb, dehbMixed Bayesian/evolutionary search with multi-fidelity budgets.same rung budget fields as Hyperband
pbtLong training where schedules should mutate during training.population and generation budget
llm, hybrid, autoresearchUser explicitly wants LLM-guided search with a configured endpoint.LLM endpoint config plus budget

For evaluate or inference, default to Bayesian/BFBO-style search over the selected action's prompt, decoding, preprocessing, or runtime config knobs. Use a task metric from the action outputs/logs and set direction explicitly when the metric name is ambiguous. Do not use training-loss assumptions for actions that do not update weights.

For distill, use the same train-like policy when the distill action performs epoch-based optimization and writes checkpoints. For single-shot prune and quantize, default to bayesian or bfbo unless the action schema/model skill declares an epoch-like or calibration-budget field that makes hyperband/asha/bohb/dehb meaningful. Use eval_fn when the selected metric must be computed by a follow-up evaluate/inference action after the compression action completes.

Prefer the model skill's recommendation over generic defaults. Avoid ASHA or Hyperband when the model skill says startup, validation, or checkpoint cost dominates short trials.

Spec And Search Space

Build specs as nested dictionaries. If a model skill lists paths in dotted notation for readability, walk the path and assign the nested leaf; do not store flat dotted strings as spec keys.

Use the packaged selected-action schema for:

  • automl_default_parameters

  • automl_disabled_parameters

  • valid min/max ranges

  • enums, option weights, conditions, dependencies, and popular parameters

User-provided search spaces must stay inside schema constraints. For integer knobs with discrete choices, include the schema's required integer option shape instead of a loose list if the model skill calls that out.

Data source overrides are mandatory unless the model skill says the launcher can derive them. Preserve exact user-provided spec keys when the dataset uses direct annotation/media paths.

Metric Policy

Training loss is cheap but can be misleading. Prefer the model skill's task metric. Use one of these:

  • Log metric: metric=<name>, direction=maximize|minimize.

  • metric_extractor(logs, metric_name): parse the model's logs when the default resolver is ambiguous.

  • eval_fn(rec, train_job_id): run the model's evaluate action after each recommendation when the user wants a downstream task metric.

Do not map kpi to a metric unless the model skill explicitly defines that mapping.

The final report must compare the baseline metric, each recommendation's metric, and the selected best metric so users can see the impact of tuning. For model skills that require an eval_fn to compute the real task metric, use that evaluator instead of optimizing a convenient training loss unless the user explicitly accepts the proxy metric.

Runner Construction

Use the selected platform SDK only after its preflight passes. Construct SDKs without embedding credentials in code.

sdk is the platform SDK object; containerless venv models use VirtualEnvSDK(venv_path=..., work_dir=...). Always pass work_dir -- the default ~/.tao_sdk/virtualenv fills the home directory with trial checkpoints. See automl-runner-configuration.md.

import sys
from pathlib import Path
from tao_automl.runner import AutoMLRunner

skill_bank = Path("<absolute-tao-skill-bank>")
model_skill = "<resolved-model-skill-directory>"
skill_dir = skill_bank / "skills" / "models" / model_skill
sys.path.insert(
    0, str(skill_bank / "skills/applications/tao-run-automl/scripts")
)
from resolve_automl_session import validate_session_settings

runner = AutoMLRunner(
    sdk=sdk,
    skill_dir=str(skill_dir),
    action=action,                      # train, distill, prune, quantize, ...
)

workspace_path = Path("<automl_workspace>")
resume = False
# Mandatory fail-closed gate from this skill's bundled scripts directory.
validate_session_settings(
    automl_settings,
    resume=resume,
    workspace=workspace_path if resume else None,
)
result = runner.run(
    workspace_path=str(workspace_path),    # timestamp it to avoid collisions
    automl_settings=automl_settings,       # must contain an explicit session_id
    spec_overrides=spec_overrides,
    automl_hyperparameters=automl_hyperparameters,
    custom_param_ranges=custom_param_ranges,
    metric_extractor=metric_extractor,  # optional
    eval_fn=eval_fn,                    # optional
    final_eval_fn=final_eval_fn,        # optional but required when final eval is runnable
    resume=resume,
)

Set automl_settings["session_id"] explicitly and call validate_session_settings before every run. Generate a fresh ID once with scripts/resolve_automl_session.py new. Resume only when explicitly requested; resolve its controller with scripts/resolve_automl_session.py resolve --workspace <full-run-path>. Missing or ambiguous state is a blocker. See the resume section of references/automl-advanced-monitoring.md for the complete fresh/resume pattern.

Monitoring

Use runner status output and the platform SDK's get_job_status, get_job_logs, and get_failure_analysis. For active jobs, report:

  • recommendation id / trial id

  • platform job id

  • status

  • current metric

  • best metric so far

  • selected hyperparameters for the current/best recommendation

  • elapsed time and updated ETA when enough timing data exists

On failure, classify whether it is infrastructure, data visibility, image, credential, spec/schema, or model-code failure. Fix only the minimal cause and do not silently spend additional budget on repeated invalid recommendations. If a blocker is fixed during run setup, continue from the original task after showing the updated preflight/launch review instead of leaving the user to restate the request.

For LLM-based algorithms, inspect the brain logs before calling the run valid. Verify that LLM calls succeeded, proposals were generated, prior metrics were used to choose later parameter changes, and logs show keep/discard or equivalent algorithm decisions. If the brain falls back to random sampling, classify the LLM workflow as failed or blocked instead of treating it as a valid LLM-guided run.

Result Handoff

At completion:

  1. Identify the best recommendation by the selected metric and direction.

  2. Return the best child job id and its result path.

  3. Resolve the model checkpoint or action artifact using the model skill's checkpoint/artifact metadata and SDK helpers; do not guess filenames such as latest.

  4. Report the exact search space, algorithm, budget, metric, and platform.

  5. Report the automatic baseline eval job id/result path/metric, all recommendation metrics, final evaluation status/result path/metric, failed recommendations and root causes, elapsed time, and final runtime notes.

  6. If this feeds a workflow such as AutoML + DEFT, pass the winning spec overrides and checkpoint through the workflow's declared handoff fields.

  7. With the default retention policy, verify that cleanup-supported, safely prunable terminal trial artifacts were deleted and that the winning training artifacts remain. Report protected promotion/resume parents or conservative Hybrid results explicitly. A remote bind, named volume, or other output route the SDK cannot reclaim must fail retention preflight before the first trial rather than be silently retained.

Common Pitfalls

See references/automl-common-pitfalls.md before launching or recovering an AutoML run.

Files

references/automl-preflight-concepts.md

TAO AutoML Preflight And Concepts

Preflight, platform prerequisites, support checks, and core AutoML concepts from the pre-refactor guide.

Load this file only when the compact SKILL.md points here for the current task. If this reference conflicts with SKILL.md, skill_info.yaml, schemas, or platform/model skills, the compact/current source wins.

Contents

  • Preflight

  • Prerequisites

  • Verify LLM features (optional)

  • Verify WandB (optional)

  • Concepts: What is TAO AutoML?

  • Quick Support Queries

TAO AutoML Skill

This is a skill-bank workflow skill at skills/applications/tao-run-automl/. The agent discovers it by reading this file directly (or via the tao-skills plugin).

Run automated hyperparameter optimization (HPO) for any TAO network/action. The agent uses AutoMLRunner — a single interface that manages the full loop: generate hyperparameter recommendations, launch action jobs, extract metrics, and feed results back to the optimizer.

The runner is platform-agnostic — it takes any object implementing the standard SDK shape (create_job, get_job_status, get_job_logs, get_failure_analysis) and calls those methods. Pick whichever SDK matches where you want jobs to run; the runner doesn't care:

SDKBest for AutoML
BrevSDKCost-tuned sweeps on Brev instances (single-instance per rec, multi-GPU OK). Multi-credential / multi-workspace accounts must pass cloud_cred_id= and workspace_group_id= to create_job — see skills/platform/tao-run-on-brev/SKILL.md.
SlurmSDKLarge sweeps on shared HPC clusters with queue/quota
KubernetesSDKSweeps on EKS / GKE / AKS / on-prem clusters with the NVIDIA GPU Operator
DockerSDKLocal debugging or single-host sweeps with a few recs
VirtualEnvSDKContainerless model skills (container_image: null, execution.type: python_script) that run trials as local Python processes. Takes constructor args, not credentials: VirtualEnvSDK(venv_path=..., work_dir=...) — see automl-runner-configuration.md § "VirtualEnvSDK (containerless venv runs)".

Multi-node per rec works on SLURM and K8s (each rec is an N-node distributed training job). Brev and local Docker are single-host per rec — multi-GPU within one host still works (gpu_count > 1), but you can't parallelize one rec across multiple hosts.

Preflight

This skill needs nvidia-tao-automl, which pulls nvidia-tao-sdk as a transitive dependency. Both packages are pinned in versions.yaml under wheels:. Resolve the selected platform extra with scripts/resolve_versions_key.py:

python -c "import tao_automl" 2>/dev/null || {
  SB="${TAO_SKILL_BANK_PATH:-~/tao-skill-bank}"
  echo "MISSING: nvidia-tao-automl not installed. Pick the platform extra you need:"
  echo "  pip install \"$($SB/scripts/resolve_versions_key.py wheels.tao_automl_slurm)\"       # on-prem SLURM cluster"
  echo "  pip install \"$($SB/scripts/resolve_versions_key.py wheels.tao_automl_kubernetes)\"  # K8s (EKS / GKE / on-prem)"
  echo "  pip install \"$($SB/scripts/resolve_versions_key.py wheels.tao_automl_docker)\"      # local Docker daemon"
  echo "  pip install \"$($SB/scripts/resolve_versions_key.py wheels.tao_automl_brev)\"        # Brev GPU instances"
  echo "  pip install \"$($SB/scripts/resolve_versions_key.py wheels.tao_automl_all)\"         # all platforms"
  echo "  (append ,llm or ,wandb to the extra only when needed)"
  exit 1
}

(For local development against a checkout: pip install -e '~/tao-run-automl[brev]' from the cloned repo.)

If missing, the agent prompts the user to authorize the install via Bash, then re-runs the preflight before continuing.

Prerequisites

Before running AutoML:

  1. Shared launch preflight: Run the tao-launch-workflow intake pattern first. AutoML must not create runner files, workspaces, state files, logs, compatibility shims, or install dependencies until the selected platform's credentials, access check, dataset visibility, model credentials, container image confirmation, and compute shape are satisfied. This prevents wasting the AutoML budget on fake recommendation failures caused by SSH, storage, image, or credential setup.

  2. SDK credentials: env vars read from the session environment (export them in your shell before launching, or source a user-approved env file with set -a; source /path/to/.env; set +a). Required env vars depend on which SDK you choose — see each platform's SKILL.md (skills/platform/tao-run-on-brev, skills/platform/tao-run-on-slurm, skills/platform/tao-run-on-kubernetes, skills/platform/tao-run-on-local-docker). Before asking for credentials, read the chosen platform skill's ## Credentials section and references/skill_info.yaml (required_credentials / credential_groups). Ask only for the credentials listed there. For example, SLURM needs SLURM credentials and not Brev or S3 credentials; Kubernetes and local Docker do not need SLURM or Brev credentials. Ask S3 credentials only when the selected platform and dataset/result URIs use s3://. For container pulls: NGC_KEY. The agent never reads values — only checks presence with [ -n "$VAR_NAME" ]. Construct the credential-reading SDKs with no arguments — e.g., BrevSDK(), SlurmSDK(), KubernetesSDK(), or DockerSDK(). VirtualEnvSDK is the exception: it reads no credentials but requires venv_path= and must be given an explicit work_dir=.

    Verify the SDK actually constructs before generating runner files. A successful import tao_automl does not prove the selected AutoML platform extra is installed. Instantiate the SDK class for the chosen platform, for example:

    python -c "from tao_sdk.platforms.docker import DockerSDK; DockerSDK(); print('OK')"

    Substitute the matching import for brev, slurm, or kubernetes. Catch a missing platform extra during preflight, before spending time on an image pull or recommendation. Local Docker launches with the host UID:GID when a writable results bind is present, so any model dataloader that writes through a spec path must point that path at a writable mount.

    Baseline eval when training from scratch. The required baseline is scoped to runs that have a starting checkpoint. With no pretrained, parent, or resume checkpoint, there is no starting model to evaluate, so the baseline is inapplicable rather than failed:

    • Record the baseline as unavailable with the reason and surface it in the launch review.

    • Proceed to recommendations; only the impact-versus-starting-point delta is unavailable.

    • Supply baseline_fn or automl_settings["baseline_metric"] only when a checkpoint exists. final_eval_fn still applies; a from-scratch smoke test may explicitly use reuse_best_metric_for_final_evaluation=True.

  3. Dataset: Training data accessible from the compute backend. URI format depends on the SDK's platform:

    • Brev / cloud: s3://bucket/path (S3-compatible; do not generate aws://...)

    • Slurm / internal shared storage: an absolute shared filesystem path visible to the Slurm job, e.g. /lustre/fsw/tao_datasets/<model>/train and /lustre/fsw/tao_datasets/<model>/eval

    • Azure: azure://container/path

    • Local / Docker: local filesystem path Accept either dataset roots or exact spec-key paths. For exact spec paths, preserve user-supplied keys such as custom.train_dataset.annotation_path=/lustre/.../annotations.json and custom.train_dataset.media_path=/lustre/.../videos.tar.gz; do not force both files to share one parent directory.

  4. Skill bank available: the runner takes an explicit skill_dir — the absolute path to a model directory inside the skill bank, e.g. <bank-root>/skills/models/tao-train-dino. No global env var; pass per run. The agent already knows the bank root (it loaded this SKILL.md from there) — use that same root. Resolve user model aliases to a packaged skill directory before constructing this path; do not assume network_arch equals the directory name. Common locations:

    • cloned standalone: ~/tao-skill-bank/ (or wherever the user cloned).

    • Installed skill-bank cache: <agent-cache>/tao-skill-bank/<version>/.

    • Codex plugin: ~/.codex/plugins/cache/<marketplace>/tao-skill-bank/<version>/.

    • submodule inside a cloned SDK: <sdk>/tao-skill-bank/.

    from pathlib import Path
    SKILL_BANK = Path("<bank-root>")        # substitute the actual path
    skill_dir  = SKILL_BANK / "skills" / "models" / model_skill

    The bank structure is:

    tao-skill-bank/
    └── skills/
        ├── applications/         # workflow configs (this skill)
        ├── models/               # per-network skill packages
        │   ├── <model_skill>/
        │   │   ├── SKILL.md
        │   │   ├── schemas/
        │   │   │   └── <action>.schema.json       # REQUIRED AutoML gate
        │   │   └── references/
        │   │       ├── skill_info.yaml             # actions, data_sources, container image
        │   │       └── spec_template_train.yaml    # default training spec (recommended)
        │   └── ...
        ├── data/
        └── platform/

    CRITICAL: AutoML requires a packaged generated dataclass schema at <bank-root>/skills/models/<model_skill>/schemas/<action>.schema.json. The schema must exist and parse as JSON — it's the AutoML support gate because it defines automl_enabled parameters, defaults, ranges, options, weights, and popular metadata. Schemas are generated during skill-bank maintenance and shipped with the plugin; the runtime must not expect ~/tao-core to exist. If the packaged action schema is missing, do not run AutoML for that model/action.

    references/spec_template_<action>.yaml is required for non-TAO-Core models (cosmos-rl, clip, etc.) — without it the runner has no defaults and the trial spec will be missing keys. For TAO Core / Hydra-based models (DINO, BEVFusion, etc.) the template is optional; Hydra fills container-side defaults at runtime.

  5. nvidia-tao-automl installed with the platform extra you want. Resolve the pinned install command from versions.yaml:

    SB="${TAO_SKILL_BANK_PATH:-~/tao-skill-bank}"
    pip install "$($SB/scripts/resolve_versions_key.py wheels.tao_automl_brev)"   # or _slurm, _kubernetes, _docker, _all
    # With LLM/agentic algorithms, append ,llm to the resolved extra:
    pip install "$($SB/scripts/resolve_versions_key.py wheels.tao_automl_brev | sed 's/]/,llm]/')"

    For local development against a checkout: pip install -e '~/tao-run-automl[brev]'.

Verify setup:

python3 -c "from tao_automl.runner import AutoMLRunner; print('OK')"

# Verify LLM features (optional)
python3 -c "from tao_automl.brain.llm_brain import LLMBrain; print('LLM OK')"

# Verify WandB (optional)
python3 -c "import wandb; print('WandB OK')"

Concepts: What is TAO AutoML?

TAO AutoML automates the "try different hyperparameter values → run action → compare results → repeat" cycle. Instead of manually tweaking action settings, you tell AutoML:

  • What network/action to optimize (network_arch, action)

  • Which hyperparameters to search over (from the model skill and schema)

  • What metric to optimize (from the model skill or user request)

  • How many trials (budget)

AutoML then:

  1. Picks hyperparameter values using a search algorithm (Bayesian, Hyperband, LLM, etc.)

  2. Launches a real action job on whichever backend the SDK targets (Brev, SLURM, Kubernetes, or local Docker)

  3. Reads the result metric from logs or an optional follow-up evaluator

  4. Feeds the result back to the algorithm so it learns what works

  5. Repeats until budget is exhausted

  6. Returns the best configuration found

Each "trial" is called a recommendation (rec). One rec = one full action run with a specific set of hyperparameters.


Quick Support Queries

When the user asks what models/networks are supported for AutoML, run the packaged model-list helper in AutoML mode. AutoML enablement is model-level metadata (skills/models/<network>/references/skill_info.yaml has automl_enabled: true), not workflow-level metadata. The helper reads that model metadata, then validates whether the model also has packaged, parseable selected-action dataclass schemas:

${TAO_SKILL_BANK_PATH:-~/tao-skill-bank}/scripts/list_tao_models.py \
  --skill-bank ${TAO_SKILL_BANK_PATH:-~/tao-skill-bank} --scope automl --format text

The compatibility wrapper below is also valid and delegates to the same logic:

${TAO_SKILL_BANK_PATH:-~/tao-skill-bank}/scripts/list_automl_support.py \
  --skill-bank ${TAO_SKILL_BANK_PATH:-~/tao-skill-bank} --format text

Return both sections from that output: runnable AutoML model/actions and AutoML-enabled model/actions still blocked on schema packaging. The support rule is: AutoML is enabled at model level; runnable AutoML for an action also requires skills/models/<model_skill>/schemas/<action>.schema.json to be packaged and valid. Use --action evaluate, --action inference, --action distill, --action prune, or --action quantize for a focused non-train action query.


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: Declares allowed tools, Needs Python, Needs Node.js

The author says: Requires docker + nvidia-container-toolkit. Workflows declare additional requirements.

Security

What our scanner noticed· Medium risk

  • Phrasing that asks for actions without confirmation
  • Large base64-encoded blobs
  • References to credential files
  • Instructions that use the network
  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

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 Corporation
Publisher
NVIDIA (Official)
Source
NVIDIA/skills · skills/tao-run-automl · 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 Corporation or NVIDIA.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download tao-run-automl.zip