·
Last changedVersion:
This version passed the hardening gate. Hardening updated the skill content and independently checked the resulting changes. Classified findings before hardening: 4. Classified findings closed: 1. Classified findings remaining: 3. Unclassified scanner findings remaining: 0. Review findings closed: 15. Review findings remaining: 1.
3
1
3
Expand | File | Group | Subtype | Severity | Status |
|---|---|---|---|---|---|
references/tao-deploy-dino.md | Supply Chain & Install-Time Trust | — | Medium | Open | |
evals/evals.json | Excessive Agency & Rogue Autonomy | — | Medium | Open | |
references/dino-data-specs.md | Excessive Agency & Rogue Autonomy | — | Medium | Open | |
SKILL.md | Prompt Injection | Indirect prompt injection | Low | Closed |
4 findings
DINO (DETR with Improved DeNoising Anchor Boxes) for 2D object detection. Transformer-based detector with denoising training, multi-scale features, and optional distillation support.
Uses pretrained backbone weights (e.g. ResNet-50 ImageNet). Set model.pretrained_backbone_path for backbone-only or train.pretrained_model_path for full model.
Checkpoint files are pickle based and can run code when they are loaded. Load pretrained, parent, and teacher checkpoints only from the user's own job outputs or from sources the user trusts, and confirm with the user where any outside checkpoint comes from before loading it.
Train, evaluate, export, distill, quantize, or run inference for a TAO DINO 2D object detector.
For TAO Deploy TensorRT actions (gen_trt_engine, TensorRT evaluate, and
TensorRT inference), read references/tao-deploy-dino.md first. Deploy spec templates live
in this skill's references/ folder with the spec_template_deploy_*.yaml
prefix.
references/dino-data-specs.md — dataset contracts, per-action dataset requirements, per-action spec-override examples (train, evaluate, export, deploy/gen_trt_engine, inference, quantize, distill), data-source arrays, checkpoint inference, and dataset layout.references/dino-actions-errors.md — important parameters, default values, evaluate/export defaults, hardware, and the full error-pattern catalog.references/dino-tuning-multigpu.md — full AutoML/HPO notes (metrics, hyperparameters, extractor) and multi-GPU spec consistency.references/tao-deploy-dino.md — TensorRT deploy workflow.references/detailed-guide.md — map to the detailed model guide.Some referenced files may not be packaged with this skill. When a referenced file is missing, tell the user it is missing and continue with the packaged content rather than searching elsewhere for it.
Generated TAO Core schemas are packaged in schemas/<action>.schema.json, with schemas/manifest.json listing available actions. Each generated schema also emits references/spec_template_<action>.yaml from the schema top-level default field. AutoML enablement is declared at the model layer in references/skill_info.yaml via automl_enabled. Runnable AutoML still requires schemas/train.schema.json and references/spec_template_train.yaml to exist and parse. Use the packaged train schema for automl_default_parameters, automl_disabled_parameters, defaults, min/max bounds, enums, option weights, math conditions, dependencies, and popular parameters. Do not expect ~/tao-core at runtime; maintainers regenerate schemas/templates before packaging the skill bank.
This model is AutoML-enabled at the model layer. Before handling any train-stage request, read references/skill_info.yaml and resolve the run override from either an explicit automl_policy value or the user's workflow request. Use automl_policy: on by default and only expose on / off in new launch prompts. Treat phrases like "turn off AutoML", "disable AutoML", "no HPO", or "plain training" as automl_policy: off for this run only. When automl_policy: on, automl_enabled: true, and both schemas/train.schema.json and references/spec_template_train.yaml are packaged, route the train action through tao-skill-bank:tao-run-automl by default with this model's skill_dir. Preserve workflow/application overrides for datasets, specs, output directories, GPU/platform settings, parent checkpoints, and automl_policy. Use direct model training only when automl_policy: off or the packaged train schema/template is missing; in the missing-schema case, report that AutoML is enabled but not runnable for this model until schemas are generated.
Before routing a train request to the AutoML skill, tell the user that the request will be handed to the tao-skill-bank AutoML skill, state the expected number of trials and GPUs, and get the user's confirmation before the sweep starts. If the user declines, treat it as automl_policy: off for this run.
Non-train actions such as evaluate, inference, export, and deploy flows stay in this model skill. The per-run automl_policy override does not change model metadata.
The agent MUST read this section before generating any training or AutoML script for DINO.
test_mAP50 with maximize direction. Use test_mAP only when the user explicitly requests COCO/paper-style mAP.val_mAP50 (logged as Validation mAP50) for quick operational checks; val_mAP for COCO/paper-style benchmark comparisons.test_mAP50 for AP50 and test_mAP for COCO mAP. AutoML workflows that score recommendations with the standalone evaluate action must use the corresponding test_* KPI.Required datasets — MUST resolve both:
| Dataset | Required | Why |
|---|---|---|
Train dataset URI | Yes | Training data (COCO format) |
Validation dataset URI | Yes — ALWAYS | DINO unconditionally builds a val dataloader. Omitting |
Required inputs before generating any training spec:
num_classes — How many object classes? Default 91 (COCO). Must be >= max(category_id) + 1. Too low causes CUDA error: device-side assert triggered.Accept only dataset paths or URIs that the user supplies or confirms: local working-directory paths or the S3 bucket form this skill already shows. Reject internal network addresses and cloud metadata service addresses.
Resolve these from the user request. This skill ships no default dataset and
never substitutes a remote one. When the user gives no dataset, look in the
working directory for a COCO-format dataset: per split, a COCO
annotations.json with its images, as images.tar.gz (the standard TAO DINO
artifact described below) or an image folder. Tell the user what was found and
what a dataset has to look like, then ask for the train and validation paths
or URIs and the class count that are still missing. Do not search previous
runners, logs, session state, shell history, or the home directory to recover
these values.
Do not prompt for image layout for the standard DINO dataset. The standard
TAO DINO dataset artifact is images.tar.gz plus annotations.json. Use
images.tar.gz in the remote image_dir spec override. The SDK downloads the
archive and rewrites the runtime spec to the extracted folder named after the
archive stem (images.tar.gz -> images). Only deviate if the user explicitly
provides a different image artifact name.
Image archives must come from locations the user supplies or confirms; check a checksum when the user provides one. Let the SDK perform extraction. If manual extraction is ever needed, extract into a separate empty folder and reject archive members with absolute paths or parent folder references.
DINO supports train, evaluate, export, distill, quantize, and inference. Data-source
overrides are mandatory for every action — DINO's config.json has empty
data_sources because the runner cannot auto-resolve array-of-objects spec keys.
The agent MUST construct data source paths and include them in spec_overrides.
Place user paths only as quoted values in the spec or as quoted command arguments, keep them out of shell command strings, and check them against the accepted dataset locations above. Run generated training or AutoML scripts only after the user approves them.
See references/dino-data-specs.md for the per-action dataset requirements table,
the standard dataset artifact (images.tar.gz + annotations.json) and runtime
folder rewrite rules, and the complete per-action spec_overrides examples for
train, evaluate, export, deploy/gen_trt_engine, inference, quantize, and distill —
including checkpoint inference via parent_model, the results_dir/train/
checkpoint location, and the distillation FAN-teacher / student rules.
Delegate only to the tao-skill-bank tao-setup and tao-run-automl skills.
Keep credentials and the encryption key out of specs, scripts, command output,
and logs. The encryption_key value in the deploy spec templates is a
placeholder default, not a secret; take the real key from the user or from the
key spec-param inference.
The spec templates ship with Weights and Biases logging turned on. Tell the user that experiment metadata is sent to Weights and Biases and get the user's consent before launching with that logging on; otherwise set its enable value to false.
Mount only the specs, dataset, model, and results folders into TAO containers. Keep the home directory, the docker socket, and credential folders unmounted.
Default values: num_epochs=10, batch_size=4, learning_rate=2e-4,
lr_backbone=2e-5, num_classes=91, backbone=resnet_50.
max(category_id) + 1. Too low causes CUDA error: device-side assert triggered. The value written to the spec must satisfy that rule; the <num_classes> + 1 form in spec overrides applies when the user's class count excludes the zero id, as with COCO-style ids that start at 1.See references/dino-actions-errors.md for the full parameter list (backbone
options, train.optim.lr/lr_steps, model.num_queries, batch_size),
default values, evaluate defaults, export defaults (input 960x544, opset 17,
TRT data types, workspace 1024 MB), and hardware requirements.
When increasing train.num_gpus, also set train.gpu_ids to the same visible
device range, or distributed startup can be inconsistent. Before a multi-GPU
launch, state the number of GPUs to the user and get confirmation.
AutoML runs training — all Training Requirements above apply, including
the rule that a dataset is never assumed. For training-log-only scoring, use
val_mAP50 (extracted from Validation mAP50) or val_mAP. When each
recommendation is scored through the standalone evaluate action, use
test_mAP50 or test_mAP with direction="maximize".
See references/dino-tuning-multigpu.md for the full multi-GPU spec-consistency
rule (8-GPU example, NCCL timeout note) and the full AutoML/HPO notes (metric
selection, metric_extractor, recommended hyperparameters, dense-dataset
resume guidance, and parent-model inference mappings).
Common failures include CUDA OOM (reduce batch_size), missing val_data_sources
(FileNotFoundError at startup — always supply val), num_classes too low (CUDA device-side assert), and the parent dino gen_trt_engine / dino convert PyT-CLI
restrictions.
See references/dino-actions-errors.md for the complete error-pattern catalog
with diagnostics and fixes.
Model-specific inference mappings belong in this MD file. For
parent_model/parent_model_folder, pass the upstream train/export/AutoML
child job id as the parent job id; list the parent result folder, filter
checkpoint artifacts, and select the resolved model.
Select checkpoints only from the user's own jobs. Warn the user and get confirmation before using a third-party checkpoint, including a distillation teacher.
See references/dino-tuning-multigpu.md for the full inference-mapping table
(per action: parent_model, key, output_dir, ptm_if_no_resume_model,
resume_model, create_onnx_file) and the TensorRT-mapping note. TensorRT
mappings live in the deploy workflow, not the PyT model skill.
Get started with chainctlchainctl skill install public/nvidia/tao-train-dino:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.chainreg.biz/public/github.com/nvidia/skills/tao-train-dino:latest
Apache-2.0
BENCHMARK.md
HARDENING.md
SKILL.md
config/skillspector-baseline.yaml
evals/evals.json
references/detailed-guide.md
references/dino-actions-errors.md
references/dino-data-specs.md
references/dino-tuning-multigpu.md
references/skill_info.yaml
references/spec_template_deploy_evaluate.yaml
references/spec_template_deploy_gen_trt_engine.yaml
references/spec_template_deploy_inference.yaml
references/spec_template_distill.yaml
references/spec_template_evaluate.yaml
references/spec_template_export.yaml
references/spec_template_gen_trt_engine.yaml
references/spec_template_inference.yaml
references/spec_template_quantize.yaml
references/spec_template_train.yaml
references/tao-deploy-dino.md
references/tao-deploy-dino.skill_info.yaml
schemas/distill.schema.json
schemas/evaluate.schema.json
schemas/export.schema.json
schemas/gen_trt_engine.schema.json
schemas/inference.schema.json
schemas/manifest.json
schemas/quantize.schema.json
schemas/train.schema.json
skill-card.md
skill.oms.sig