Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

optimum
/
vit-base-patch16-224-neuronx

Image Classification
Transformers
vit
Model card Files Files and versions
xet
Community

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
vit-base-patch16-224-neuronx
347 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
Jingya's picture
Jingya HF Staff
Update README.md
ae25345 verified almost 2 years ago
  • .gitattributes
    1.57 kB
    Upload model.neuron with huggingface_hub almost 2 years ago
  • README.md
    176 Bytes
    Update README.md almost 2 years ago
  • config.json
    70.3 kB
    Upload config.json with huggingface_hub almost 2 years ago
  • model.neuron
    347 MB
    xet
    Upload model.neuron with huggingface_hub almost 2 years ago
  • preprocessor_config.json
    580 Bytes
    Upload preprocessor_config.json with huggingface_hub almost 2 years ago