Instructions to use zeromodels/dinov2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/dinov2-base with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/dinov2-base") - Keras
How to use zeromodels/dinov2-base with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://zeromodels/dinov2-base") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix HUB-01: remove legacy DINO normalization metadata
Verified signature31c400a
-
Fix Collection badge link to the current zeromodels collection slug
Verified signature1d401ab -
Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)
Verified signature6a16797
-
Add use_swiglu to config; add giant to variant table
Verified signaturee07874d -
Add use_swiglu to config; add giant to variant table
Verified signature386e462 -
Rename to official model id; sync variant + links
Verified signatured4d25d4 -
Rename to official model id; sync variant + links
Verified signaturef7f6f1a -
Rename to official model id; sync variant + links
Verified signature70ffbe9 -
Add kf_preprocessor.json; load processor via from_weights
Verified signaturece1e302
-
Upgrade kf_config.json to v2 (nested config + weight_dtype)
Verified signature97fe029 -
Upgrade kf_config.json to v2 (nested config + dtype)
Verified signature9bee20e
-
fix readme.md
Verified signature3bd90f6 -
fix readme.md
Verified signature4b12065
-
Upload kf_config.json with huggingface_hub
Verified signature17dfb2b -
Upload README.md with huggingface_hub
Verified signature19b7989 -
Upload README.md with huggingface_hub
Verified signature25ccfd9
-
Upload folder using huggingface_hub
Verified signaturedab823b -
initial commit
Verified signature1912b6c