Tao Train Dino
NVIDIAOfficialCreated by NVIDIA Corporation
- Skill
- Tool integration
- Software development
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The tao-train-dino skill provides an interface for training, evaluating, exporting, distilling, quantizing, and running inference for DINO (DETR with Improved DeNoising Anchor Boxes) object detection models. It supports transformer-based architectures with denoising training and multi-scale features. The skill integrates with TAO Core to handle model lifecycle tasks, including AutoML-enabled training, and requires specific dataset configurations and spec overrides for all actions.
What it does
- Trains DINO object detection models with support for AutoML and multi-GPU configurations.
- Evaluates model performance using standard metrics like mAP50 and COCO mAP.
- Exports trained models to formats compatible with TensorRT deployment.
- Supports model distillation to improve student model performance.
- Performs quantization for optimized model inference.
- Manages dataset requirements and spec overrides for various model actions.
When to use it
- When you need to train a DINO 2D object detector on custom COCO-format datasets.
- When you need to evaluate or benchmark a DINO model's detection accuracy.
- When you are preparing a DINO model for deployment via TensorRT.
- When you want to apply distillation or quantization to a DINO model.
Advantages
- Provides a structured workflow for the entire DINO model lifecycle.
- Includes AutoML capabilities for automated hyperparameter optimization.
- Supports multi-GPU training for efficient model development.
- Offers clear paths for model export and deployment to TensorRT.
Usage examples
- “Train a DINO model using my custom dataset.”
- The agent will prompt for the training and validation dataset URIs and the number of classes to generate the training spec.
- “Run DINO AutoML for my object detection task.”
- The agent will initiate an AutoML workflow using the provided dataset and class count, or the default profile if no inputs are provided.
- “Export my trained DINO model to TensorRT.”
- The agent will guide you through the export process using the appropriate spec template and configuration parameters.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/tao-train-dino/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip tao-train-dino.zip -d .agents/skills
Documentation by NVIDIA Corporation
DINO
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).
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.
When To Use
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.
Reference Map
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.
Dataclass Schemas
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.
Train Action Policy
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.
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.
Training Requirements
The agent MUST read this section before generating any training or AutoML script for DINO.
Dataset type: object_detection
Formats: coco, coco_raw
Accepted dataset intents: training, evaluation, testing, calibration
AutoML metric contract: for the default evaluation-backed workflow, use
test_mAP50with maximize direction. Usetest_mAPonly when the user explicitly requests COCO/paper-style mAP.Training monitoring metrics:
val_mAP50(logged asValidation mAP50) for quick operational checks;val_mAPfor COCO/paper-style benchmark comparisons.Evaluate action metrics:
test_mAP50for AP50 andtest_mAPfor COCO mAP. AutoML workflows that score recommendations with the standalone evaluate action must use the correspondingtest_*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 val_data_sources causes FileNotFoundError at startup regardless of the metric or workflow. If the user has no separate eval split, reuse the train URI. |
Required inputs before generating any training spec:
Train dataset URI — S3 path to COCO-format training data
Validation dataset URI — S3 path to COCO-format val data (can be same as train)
num_classes— How many object classes? Default 91 (COCO). Must be >=max(category_id) + 1. Too low causesCUDA error: device-side assert triggered.
Resolve these from the user request or the default profile below. Prompt only for values that are still missing after applying the profile rules.
Bankable local default profile for DINO AutoML smoke runs:
Use this profile only when the user asks to run DINO AutoML and does not provide dataset or class-count inputs. This profile is intentionally small and local to this skill bank; it is for smoke/iteration runs, not a production benchmark. Do not search previous runners, logs, session state, shell history, or the home directory to recover these values.
DINO_AUTOML_PROFILE = {
"train_dataset_uri": "s3://nvcf-storage-handling/data/tao_od_synthetic_subset_train_no_convert",
"validation_dataset_uri": "s3://nvcf-storage-handling/data/tao_od_synthetic_subset_val_no_convert",
"object_classes": 4,
"dataset_num_classes": 5,
"image_archive": "images.tar.gz",
"annotation_file": "annotations.json",
"max_recommendations": 10,
"train_num_epochs": 10,
"train_checkpoint_interval": 10,
"train_validation_interval": 1,
"train_num_gpus": 1,
}If the user supplies any dataset URI or class-count value, prefer the user value and ask for any remaining required DINO value. Do not partially mix a user's custom dataset with this profile's class count unless the user confirms it.
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.
Core Workflow
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.
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.
Important Parameters And Defaults
Default values: num_epochs=10, batch_size=4, learning_rate=2e-4,
lr_backbone=2e-5, num_classes=91, backbone=resnet_50.
dataset.num_classes: Default 91 (COCO). Must be >=
max(category_id) + 1. Too low causesCUDA error: device-side assert triggered. Set as<num_classes> + 1in spec overrides.num_epochs: default 10 (quick iteration); real datasets typically need 30-50+ epochs for good mAP.
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.
Multi-GPU And AutoML / HPO
When increasing train.num_gpus, also set train.gpu_ids to the same visible
device range, or distributed startup can be inconsistent.
AutoML runs training — all Training Requirements above apply. For no-input
local smoke runs, use DINO_AUTOML_PROFILE. 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, weight_decay
behavior, dense-dataset resume guidance, and parent-model inference mappings).
Error Patterns
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.
Spec Param / Parent Model Inference
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.
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.
Deployment
Files
- ATTRIBUTION.mdAdded by AutoGineer912 B
- BENCHMARK.md7.0 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md10.9 KiB
- config/skillspector-baseline.yaml834 B
- evals/evals.json793 B
- references/detailed-guide.md623 B
- references/dino-actions-errors.md5.9 KiB
- references/dino-data-specs.md13.5 KiB
- references/dino-tuning-multigpu.md5.8 KiB
- references/skill_info.yaml4.2 KiB
- references/spec_template_deploy_evaluate.yaml598 B
- references/spec_template_deploy_gen_trt_engine.yaml735 B
- references/spec_template_deploy_inference.yaml600 B
- references/spec_template_distill.yaml4.3 KiB
- references/spec_template_evaluate.yaml3.1 KiB
- references/spec_template_export.yaml3.2 KiB
- references/spec_template_gen_trt_engine.yaml3.4 KiB
- references/spec_template_inference.yaml3.2 KiB
- references/spec_template_quantize.yaml3.0 KiB
- references/spec_template_train.yaml3.0 KiB
- references/tao-deploy-dino.md9.0 KiB
- references/tao-deploy-dino.skill_info.yaml2.7 KiB
- schemas/distill.schema.json51.3 KiB
- schemas/evaluate.schema.json54.6 KiB
- schemas/export.schema.json55.1 KiB
- schemas/gen_trt_engine.schema.json59.7 KiB
- schemas/inference.schema.json55.5 KiB
- schemas/manifest.json18.5 KiB
- schemas/quantize.schema.json51.3 KiB
- schemas/train.schema.json51.3 KiB
- skill-card.md4.3 KiB
- skill.oms.sig10.8 KiB
LICENSE
Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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
The author says: Requires docker + nvidia-container-toolkit.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
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-train-dino · 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-train-dino.zip