Instructions to use facebook/deit-base-distilled-patch16-384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/deit-base-distilled-patch16-384 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="facebook/deit-base-distilled-patch16-384") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("facebook/deit-base-distilled-patch16-384") model = AutoModelForImageClassification.from_pretrained("facebook/deit-base-distilled-patch16-384", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (073b8667393d379db50b6bf6f76e633e3c57dded) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>d939597
-
initial commit
c8c939e