How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-classification", model="optimum/vit-base-patch16-224-neuronx")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification

processor = AutoImageProcessor.from_pretrained("optimum/vit-base-patch16-224-neuronx")
model = AutoModelForImageClassification.from_pretrained("optimum/vit-base-patch16-224-neuronx")
Quick Links

Exported with

optimum-cli export neuron --model facebook/deit-base-patch16-224 --batch_size 1 --task image-classification vit_neuron/
Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support