AGENT SKILL

autodistill

Guides core Autodistill workflows for foundation-model auto-labeling, target-model distillation, CLI/plugin registry use, custom model interfaces, and utilities.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
autodistill
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Guides core Autodistill workflows for foundation-model auto-labeling, target-model distillation, CLI/plugin registry use, custom model interfaces, and utilities.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Autodistill Repo Skill

Use this skill when a task mentions Autodistill, automatic image labeling from foundation models, prompt-to-class ontologies, distilling labels into smaller vision target models, autodistill CLI commands, DetectionBaseModel/CaptionOntology, model plugin aliases, or Autodistill utility/debugging workflows.

Autodistill's core package defines interfaces, dataset writers, a CLI, a plugin registry, and utilities. Concrete base/target model implementations live in separate autodistill-* plugin packages and may require model downloads, GPU, credentials, long training, or separate licenses.

First Steps

  1. For stale-skill checks, read repository provenance.
  2. For package concepts and snapshot caveats, read package overview.
  3. Run the safe root smoke script when checking an environment:
python scripts/check_autodistill_install.py --check-cli
  1. Route to the most specific sub-skill below.

Sub-skill Routes

User task Read
Auto-label an image folder, validate a generated YOLO/classification dataset, debug .label(), use SAHI/NMS, or run a safe dummy dataset-writer check dataset-labeling
Build an autodistill ... command, inspect base/target aliases, understand plugin packages, run a safe CLI dry run, or debug CLI/model registry errors cli-and-model-registry
Design an ontology, implement a custom base/target model, validate abstract interface conformance, compose detector+classifier models, or use embedding ontologies ontologies-and-model-interfaces
Convert image inputs, use plotting/comparison helpers, split video frames, understand split_data, or handle Roboflow sync utility boundaries utilities

Install and Minimal Import Check

Core install:

pip install autodistill
python - <<'PY'
import autodistill
from autodistill.detection import CaptionOntology
print(autodistill.__version__)
print(CaptionOntology({"milk bottle": "bottle"}).classes())
PY

Plugin example for a full detection pipeline:

pip install autodistill autodistill-grounding-dino autodistill-yolov8

Install only the selected plugin packages. Do not install every supported model just to use the core package.

Safe Core Workflow Skeleton

from autodistill.detection import CaptionOntology
from autodistill_grounding_dino import GroundingDINO

ontology = CaptionOntology({"shipping container": "container"})
base_model = GroundingDINO(ontology=ontology)
base_model.label(input_folder="images", extension=".jpg", output_folder="dataset")

This shows the core call shape. The selected plugin's environment and runtime behavior must be verified separately.

Cross-cutting Troubleshooting

Read troubleshooting when failures involve install/import, missing plugins, GPU/backend crashes, CLI side effects, Roboflow credentials, dataset output, stale docs names, or utility boundaries.

Important snapshot warnings:

  • Source-verified core version is 0.1.29.
  • In this snapshot the source method is label(), not the stale docs name label_folder().
  • In this snapshot the source method is sahi_predict(), not the stale docs name predict_sahi().
  • In this snapshot composed detection uses ComposedDetectionModel; some docs use stale names.
  • The CLI SUPPORTED_MODEL_TYPES source constant has a missing comma, so classification/segmentation CLI paths may not match docs.

Stop Conditions

Before continuing, ask for approval when a task would install plugin packages, download model weights, run large labeling/training, use GPU unexpectedly, contact Roboflow/cloud APIs, or overwrite user output directories.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351