Autodistill chains a foundation model, an ontology and a small supervised model into one labeling pipeline
Images to inference with no labeling (use foundation models to train supervised models).
At a glance
- What is it?
- autodistill/autodistill labels unlabeled images with a large Base Model, then trains a small Target Model on the result. Its interfaces ship in the core package and the actual models arrive as separate plugins.
- Who is it for?
- Autodistill suits a team that has unlabeled images, wants an object detection or instance segmentation model for a narrow job, and is happy to let a foundation model do the labeling. It does not suit classification work today, language models, or anyone expecting the labeled dataset to be perfect.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 58 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.
Star history
- autodistill/autodistill2,804 ★ · +20
| Repository | 2026-10-08 | 2026-11-26 |
|---|---|---|
| autodistill/autodistill | 2.8k | 2.8k |
20 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Six named primitives turn unlabeled images into a deployable model
Autodistill's pipeline has a fixed vocabulary. Unlabeled data goes into a Base Model, which uses an Ontology to label a Dataset. The Dataset trains a Target Model, and the Target Model outputs a Distilled Model fine-tuned to perform one Task.
Each word has a job. The Task defines what the Target Model will predict. The Base Model is a large foundation model that knows a lot about a lot, and the project describes such models as large, slow and expensive. The Ontology defines how the Base Model is prompted, what the Dataset describes and what the Target Model will predict. The Dataset is the Base Model's output. The Target Model is a supervised model that consumes that Dataset. The Distilled Model is the final set of weights you deploy.
The project states the aim in one sentence: use big, slower foundation models to train small, faster supervised models, and go from unlabeled images to inference on a custom model running at the edge with no human intervention in between.
Only detection works today, and classification is still marked as coming
Task is not decoration. The Task of the Base Model, the Ontology and the Target Model in one pipeline must match for the three to be compatible. If one component was written for a different task, it will not plug in.
The supported task is called detection, and it covers object detection and instance segmentation. The documentation says classification support will be added soon. That sentence has been in the documentation for a while, and the tagged releases do not settle it: the latest is v0.1.26 from 2024-02-13. If you need an image classifier, check the plugin list at docs.autodistill.com before you plan around it.
The project also states that it currently supports vision tasks and that it could in future expand to language and other models. That is a direction the authors state, not a feature. Nothing in the repository's description or setup.py promises text models today.
CaptionOntology maps text prompts to class names, and other ontologies are possible
The simplest ontology is CaptionOntology. It prompts a Base Model with text captions and maps each caption to a class name. The caption is what the foundation model hears, and the class name is what ends up in the Dataset and in the Target Model's output.
That split is useful. A caption such as a long descriptive phrase can be mapped to a short class label, so the model you train does not inherit the prompt wording. The same mapping also decides what the Distilled Model can predict, because the Ontology defines what the Target Model will predict.
The project notes that other Ontologies may use a CLIP vector or example images instead of a text caption. Those are described as possibilities, not shipped features, so the prompt style you get depends on which Base Model plugin you install and what it accepts. The example output in the documentation comes from a model trained on an auto-labeled dataset to detect milk bottles and bottlecaps, with a YouTube walkthrough linked for the full process.
Installing the core package alone gives you interfaces and no models
Autodistill is modular on purpose. The autodistill package defines the interfaces for the concepts above, and Base Model and Target Model plugins implement specific models. The documentation gives the reason: packaging models separately minimizes dependency and licensing incompatibilities, and lets anyone implement and maintain a new model.
The example install pulls in a Base Model plugin and a Target Model plugin together with the core:
pip install autodistill autodistill-grounded-sam autodistill-yolov8For local development against the v0.1.26 release, clone that tag from the Autodistill repository:
git clone --branch v0.1.26 https://github.com/autodistill/autodistill.git
cd autodistill
pip install -e .The cost of the plugin design is that a working pipeline needs at least three installs, and each plugin brings its own dependencies. The core's setup.py requires Python 3.7 or newer, and install_requires lists opencv-python>=4.6.0, supervision, tqdm, Pillow>=7.1.2, PyYAML>=5.3.1 and click. The repository's requirements.txt pins supervision==0.25.0 and adds roboflow and scikit-learn. Those two files do not agree on every package, so install through pip and check what it resolves.
The Target Model gets small and fast by giving up generality
A Target Model is described as usually small, fast and fine-tuned to do one task very well. The same sentence carries the price: Target Models do not generalize well beyond the information described in their Dataset. The examples named are YOLOv8 and DETR.
That tradeoff is the whole design. A Base Model like GroundedSAM knows many things and is expensive to run on every frame. The distilled model knows the classes in your Ontology and runs where a large model cannot. If your classes change, you rebuild the Dataset and retrain.
The project frames this as a stage in a longer argument. It says human labeling is one of the biggest barriers to broad adoption of computer vision, that building a production dataset can take thousands of hours, and that traditional human labeling is itself a form of distillation from a very capable Base Model, the human brain. Foundation models, in its words, know a lot about a lot, while production needs models that know a lot about a little.
Base Models can label many common cases and are not perfect yet
Quality of the Dataset is capped by the Base Model. The documentation says Base Models can already create datasets for many common use cases, and that creative prompting and few-shotting expand that range. It then says plainly that they are not perfect yet, and that the authors would like help testing and expanding the system.
The consequence is concrete. A Target Model trained on mislabeled boxes learns the mislabeled boxes. The pipeline has no human step in it, which is its selling point, and the same property means nothing in the pipeline catches a Base Model that confuses two similar classes. The repository documents no built-in review step, so you add one.
The README lists GPT-4's upcoming multimodal variant next to GroundedSAM as an example of a Base Model. That reference shows how old the text is in places. Do not read it as a list of what you can install now. The repository holds a models.csv file that setup.py packages with the library, and the project points to a list of available models for the current set.
You can run it on your own hardware or in Roboflow's hosted version
A tip in the documentation says Autodistill can be used on your own hardware, or through the Roboflow hosted version to label images in the cloud. The feature list includes Own your model and Deploy distilled models to the cloud or the edge, so the weights are yours either way.
The other feature entries are a pluggable interface to connect models together, automatic dataset labeling, and training fast supervised models. The repository is under the Apache-2.0 license, and the setup.py classifier says Apache Software License. The author field in setup.py is Roboflow, and the README links sibling Roboflow projects: notebooks, inference and collect.
The quickstart is a Colab notebook that walks through building a milk container detection model with no labeling. The text then condenses the notebook's key parts, so run the notebook itself to see the full call sequence. The setup.py also registers a console script, autodistill, pointing at autodistill.cli:main. The README does not describe its commands, so run it with its help option to see what it offers.
Maintenance: last push 2026-09-29, last tagged release 2024-02-13
The repository is not archived and its most recent push was on 2026-09-29. The tagged releases, however, are older: v0.1.26 and v0.1.25 both on 2024-02-13, and v0.1.2 on 2023-06-09. If you pin by release tag, you pin to 2024.
The Makefile shows the development checks: black and isort with the black profile for style, flake8 with a set of error codes that stops the build, and a publish target using twine. The dev extras in setup.py pin black==22.3.0 and add pytest, mkdocs and mkdocs-material, which build the documentation site. A test directory and an automation directory sit at the top level next to docs and CITATION.cff.
Because Base Model and Target Model plugins are separate packages, the health of your pipeline depends on each plugin as well as the core. Check the push dates of the plugin repositories you need, not only this one.
Editorial conclusion
Autodistill suits a team that has unlabeled images, wants an object detection or instance segmentation model for a narrow job, and is happy to let a foundation model do the labeling. It does not suit classification work today, language models, or anyone expecting the labeled dataset to be perfect. Before committing, run the demo notebook on a small slice of your own images and check the auto-labeled dataset by eye, because the Target Model will only learn what the Base Model marked. The last tagged release is v0.1.26 from 2024-02-13, so also confirm that the plugins you need install together.
Frequently asked questions
What is auto labeling in Autodistill?
Autodistill feeds unlabeled images to a large Base Model, which uses an Ontology to produce a labeled Dataset. That Dataset then trains a smaller supervised Target Model.
Which tasks does Autodistill support?
Object detection and instance segmentation, both through the detection task. Classification support is described as coming soon.
How do I install Autodistill with a model?
Install the core package with Base and Target Model plugins, for example pip install autodistill autodistill-grounded-sam autodistill-yolov8.
Official sources
Was this useful?