[2025-08-29] Transformers library support

#2
by patricklabatut - opened
AI at Meta org
edited Sep 24

Support for the DINOv3 models has been added to the Transformers library on 2025-08-14 for the development version and on 2025-08-29 for released packages starting with version 4.56.0.

Trying to use DINOv3 models on Hugging Face Hub with older released versions of the Transformers library will yield this kind of error:

ValueError: The checkpoint you are trying to load has model type `dinov3_vit`
but Transformers does not recognize this architecture. This could be because
of an issue with the checkpoint, or because your version of Transformers is out
of date.

You can update Transformers with the command `pip install --upgrade
transformers`. If this does not work, and the checkpoint is very new, then
there may not be a release version that supports this model yet. In this case,
you can get the most up-to-date code by installing Transformers from source
with the command `pip install git+https://github.com/huggingface/transformers.git`

Users who want to use the models will have to either upgrade the library to at least version 4.56.0 or install the transformers package from source via pip install git+https://github.com/huggingface/transformers.git as advised in the above error message.

patricklabatut pinned discussion
patricklabatut locked this discussion
patricklabatut changed discussion title from [2025-08-14] Transformers library support to [2025-08-29] Transformers library support

Sign up or log in to comment