Instructions to use apple/mobilevit-x-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use apple/mobilevit-x-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="apple/mobilevit-x-small") 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("apple/mobilevit-x-small") model = AutoModelForImageClassification.from_pretrained("apple/mobilevit-x-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download MobileViT.mlpackage/Data/com.apple.CoreML/model.mlmodel from apple/mobilevit-x-small: direct link, hf CLI and curl.
- Browser
- Download file 176 kB
-
https://huggingface.co/apple/mobilevit-x-small/resolve/main/MobileViT.mlpackage/Data/com.apple.CoreML/model.mlmodel
- Command line
-
hf download hf://apple/mobilevit-x-small/MobileViT.mlpackage/Data/com.apple.CoreML/model.mlmodel
-
curl -L -o model.mlmodel https://huggingface.co/apple/mobilevit-x-small/resolve/main/MobileViT.mlpackage/Data/com.apple.CoreML/model.mlmodel
176 kB
This file contains binary data. It cannot be displayed, but you can still download it.