Instructions to use optimum/vit-base-patch16-224-neuronx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum/vit-base-patch16-224-neuronx with Transformers:
# 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") - Notebooks
- Google Colab
- Kaggle
Upload model.neuron with huggingface_hub
Browse files- .gitattributes +1 -0
- model.neuron +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
model.neuron filter=lfs diff=lfs merge=lfs -text
|
model.neuron
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f2231080772b7dee34692720805901efba2096409bd29ae4f0a94d514754aa6
|
| 3 |
+
size 347404609
|