Tao Train Dinov3 logo

Tao Train Dinov3

Organization
NVIDIA-TAO
tao-train-dinov3

DINOv3 continual self-supervised pre-training. Domain-adapts public DINOv3 ViT backbones on unlabeled images via teacher-student self-distillation (DINO + iBOT + KoLeo, optional Gram anchoring) and converts the EMA teacher into a timm-format backbone for downstream tasks. Trigger phrases include "train DINOv3", "DINOv3 SSL", "domain-adapt a foundation backbone", "continual pretraining", "self-supervised finetune DINOv3".

Overview

PublisherNVIDIA-TAO
Repositorytao-skill-bank
Skill nametao-train-dinov3
Stars
98
Forks
28
Bundled files
14
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 14 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by NVIDIA-TAO on GitHub. Read the source before you install it.

Installation

Install the Tao Train Dinov3 AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/NVIDIA-TAO/tao-skill-bank/tree/main/skills/models/tao-train-dinov3
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NVIDIA-TAO/tao-skill-bank.git /tmp/tao-skill-bank
mkdir -p .claude/skills
cp -r /tmp/tao-skill-bank/skills/models/tao-train-dinov3 .claude/skills/tao-train-dinov3
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tao Train Dinov3 in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tao Train Dinov3 on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tao Train Dinov3 is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

DINOv3

Standalone install? If this session was not initialized by the TAO skill bank plugin, run the tao-setup skill first.

Use this skill to continue self-supervised training of a DINOv3 backbone on unlabeled images, then convert, export, or run inference with a trained teacher checkpoint.

Quick Start (docker run)

Docker-native launch — no TAO SDK and no Python on the host. Use the local Docker/platform skill instead when it gives a stricter environment-specific command (non-root UID mapping, cache redirects, remote daemons).

bash
TAO_PYT_IMAGE_DEFAULT=nvcr.io/nvidia/tao/tao-toolkit:7.3.0-pyt  # versions-key: images.tao_toolkit.pyt
TAO_PYT_IMAGE="${TAO_PYT_IMAGE:-$TAO_PYT_IMAGE_DEFAULT}"
RUN_ROOT="${RUN_ROOT:-$PWD}"
DOCKER_COMMON=(
  --rm --gpus all --ipc=host
  --shm-size=8g
  --ulimit memlock=-1
  --ulimit stack=67108864
  -v "$RUN_ROOT/data:/data:ro"
  -v "$RUN_ROOT/specs:/specs:ro"
  -v "$RUN_ROOT/results:/results"
)

Train:

bash
docker run "${DOCKER_COMMON[@]}" "$TAO_PYT_IMAGE" \
  dinov3 train -e /specs/train.yaml

Inference:

bash
docker run "${DOCKER_COMMON[@]}" "$TAO_PYT_IMAGE" \
  dinov3 inference -e /specs/inference.yaml

Export:

bash
docker run "${DOCKER_COMMON[@]}" "$TAO_PYT_IMAGE" \
  dinov3 export -e /specs/export.yaml

Convert:

bash
docker run "${DOCKER_COMMON[@]}" "$TAO_PYT_IMAGE" \
  dinov3 convert -e /specs/convert.yaml

Every action takes its spec with -e; results_dir is set in the spec or overridden on the command line. Mount any pretrained-weights directory the spec references, and keep every in-container path consistent across actions.

Configuration

Use schemas/<action>.schema.json for supported fields, defaults, ranges, and options. Start from the matching references/spec_template_<action>.yaml.

Training is AutoML-enabled. Read references/skill_info.yaml and resolve an explicit automl_policy or user request before training. Default to automl_policy: on; requests such as "disable AutoML", "no HPO", or "plain training" mean off for that run. When it is on and the train schema and template are packaged, route training through tao-skill-bank:tao-run-automl. Use direct training only when the policy is off or those files are missing, and report the missing-file limitation. Non-train actions remain in this skill.

Treat train_loss as an optimization signal; use downstream evaluation when selecting a checkpoint for deployment.

For method background or tuning ideas, optionally read:

  • references/dinov3-method.md
  • references/dinov3-recipes.md

Core workflow

  1. Obtain a compatible DINOv3 checkpoint in timm or TAO format.
  2. Point dataset.train_dataset.images_dir to a directory of unlabeled images.
  3. Configure the backbone, training scale, and output location.
  4. Run training and evaluate useful teacher checkpoints on data representative of the downstream task.
  5. Use the selected teacher checkpoint with convert, export, or inference.

Provide either train.pretrained_model_path for a new run or train.resume_training_checkpoint_path to resume an existing run.

Essential fields

PurposeSpec field
Training imagesdataset.train_dataset.images_dir
Initial weightstrain.pretrained_model_path
Resume checkpointtrain.resume_training_checkpoint_path
Backbonemodel.backbone.teacher_type, model.backbone.student_type
Training scaledataset.batch_size, train.num_gpus, train.num_nodes
Output directoryresults_dir
Conversion inputconvert.checkpoint
Export inputexport.checkpoint
Inference inputsinference.checkpoint, dataset.test_dataset.images_dir

Example train settings:

yaml
model:
  backbone:
    teacher_type: vit_b
    student_type: vit_b
    rope_theta: 100.0
dataset:
  train_dataset:
    images_dir: /path/to/unlabeled/images
  batch_size: 16
train:
  pretrained_model_path: /path/to/dinov3/weights
  num_epochs: 10
  num_gpus: 1

Supported image extensions include jpg, jpeg, png, ppm, bmp, pgm, tif, tiff, and webp. Keep evaluation data separate from training data when measuring downstream quality.

Every dataset.*.images_dir value must be an extracted image folder. Managed archive-backed sources use runtime: extracted_folder, which unpacks the source before injecting the directory into the spec. For direct Docker or TAO CLI runs, extract .tar, .tar.gz, .tgz, or .zip inputs before launch.

Checkpoints

FileUse
model_epoch_*_step_*.pthResume training, or export its EMA teacher
teacher_epoch_*_step_*.pthConvert, export, inference, or downstream evaluation
student_epoch_*_step_*.pthDiagnostics

For export, prefer a selected stripped teacher_epoch_*_step_*.pth. Export also accepts a selected full model_epoch_*_step_*.pth and deterministically selects and logs teacher.backbone. Inference requires a stripped teacher checkpoint. Do not substitute dinov3_model_latest.pth without evaluating that milestone.

Training loss does not directly measure downstream representation quality. When possible, compare candidate teacher checkpoints using metrics relevant to the target task.

For convert, export, and inference, copy the training-time backbone configuration into the action spec, including rope_theta. Stripped checkpoints do not restore the RoPE frequency base, so falling back to the default can change the trained model's behavior.

Key options

  • model.backbone.teacher_type and student_type support vit_s, vit_s_plus, vit_b, vit_l, vit_h_plus, and vit_7b.
  • When model.distill.enable: false, the teacher and student backbone types must match.
  • model.backbone.rope_theta controls the rotary frequency base. It defaults to 100.0 and is tunable; changing it alters positional encoding, so evaluate the resulting checkpoint for the intended task.
  • model.centering_method supports sinkhorn and softmax.
  • model.gram.* controls optional Gram anchoring.
  • model.lora.* enables parameter-efficient continual pre-training. The default targets the attention qkv and proj projections; num_last_blocks: 0 adapts every transformer block.
  • model.preservation.* adds CLS-token MSE and cosine losses against the frozen anchor teacher. It is recommended with LoRA when global embedding quality matters.
  • train.log_every_n_steps controls step-level loss visibility and defaults to 1, so short smoke runs emit component and preservation losses.
  • train.precision defaults to 16-mixed; choose precision based on hardware and measured quality.
  • train.use_custom_attention: false uses native attention when custom attention is unavailable.
  • Crop and export dimensions need to be divisible by model.backbone.patch_size.

Distributed training

For iterative GRIT or multi-task weakness mining from an unlabeled pool followed by DINOv3 SSL retraining, use the related tao-run-dinov3-ssl-deft application. Ordinary pretraining and fine-tuning remain in this model skill.

Use train.num_gpus, train.gpu_ids, train.num_nodes, and train.distributed_strategy. Start with auto; use ddp or fsdp when appropriate for the selected backbone, resolution, and available memory.

Common issues

  • Checkpoint load failure: verify that the checkpoint is DINOv3 and that its backbone matches the configured teacher and student types.
  • No images found or archive rejected: pass an extracted image folder to dataset.*.images_dir, not an archive file.
  • Out of memory: reduce batch size or image resolution, or use a sharded distributed strategy.
  • Custom-attention failure: set train.use_custom_attention: false.
  • Deterministic-backward failure: xformers memory-efficient attention does not provide a deterministic backward kernel; use train.cudnn.deterministic: false.
  • Grid-size error: choose crop and export dimensions divisible by the patch size.
  • Unexpected inference keys: use a stripped teacher_epoch_*_step_*.pth checkpoint.
  • Full-checkpoint export: a selected model_epoch_*_step_*.pth is supported; export selects and logs its EMA teacher.backbone.
  • Resume mismatch: the SSL dataloader is not step-resumable, so resume from an epoch/checkpoint boundary when reproducibility matters.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tao Train Dinov3 AI skill do?

DINOv3 continual self-supervised pre-training. Domain-adapts public DINOv3 ViT backbones on unlabeled images via teacher-student self-distillation (DINO + iBOT + KoLeo, optional Gram anchoring) and converts the EMA teacher into a timm-format backbone for downstream tasks. Trigger phrases include "train DINOv3", "DINOv3 SSL", "domain-adapt a foundation backbone", "continual pretraining", "self-supervised finetune DINOv3".

Why use Tao Train Dinov3 on TypingMind?

Because you install it once and use it with any model. Tao Train Dinov3 is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tao Train Dinov3 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/NVIDIA-TAO/tao-skill-bank/tree/main/skills/models/tao-train-dinov3. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tao Train Dinov3?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tao Train Dinov3?

As many as you like. As long as a model supports skills, you can use Tao Train Dinov3 with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tao Train Dinov3 AI skill free?

Yes. It is published on GitHub by NVIDIA-TAO under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇