Instructions to use zeromodels/dinov2-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/dinov2-small 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-small") - Keras
How to use zeromodels/dinov2-small 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-small") - Notebooks
- Google Colab
- Kaggle
Commit History
24 days ago
-
Fix HUB-01: remove legacy DINO normalization metadata
Verified signaturee70798c
-
Fix Collection badge link to the current zeromodels collection slug
Verified signature923b74a -
Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)
Verified signature1cc6ee0
-
Add use_swiglu to config; add giant to variant table
Verified signature618d4be -
Add use_swiglu to config; add giant to variant table
Verified signature8572822 -
Rename to official model id; sync variant + links
Verified signature25092a0 -
Rename to official model id; sync variant + links
Verified signature034909e -
Rename to official model id; sync variant + links
Verified signaturecd892fc -
Add kf_preprocessor.json; load processor via from_weights
Verified signaturea3b4a36
-
Upgrade kf_config.json to v2 (nested config + weight_dtype)
Verified signaturef5dbb6a -
Upgrade kf_config.json to v2 (nested config + dtype)
Verified signature56a97f7
-
fix readme.md
Verified signaturee67458f -
fix readme.md
Verified signature2cd7b68
-
Upload kf_config.json with huggingface_hub
Verified signature8230fbf -
Upload README.md with huggingface_hub
Verified signaturebe5400e -
Upload README.md with huggingface_hub
Verified signature59eb2c1
-
Upload folder using huggingface_hub
Verified signaturecc95f73 -
initial commit
Verified signature4e0c771