Run this model with HF Jobs
Run google/vit-base-patch16-224 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/google/vit-base-patch16-224. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/google/vit-base-patch16-224 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use google/vit-base-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/vit-base-patch16-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="google/vit-base-patch16-224") 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("google/vit-base-patch16-224") model = AutoModelForImageClassification.from_pretrained("google/vit-base-patch16-224", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update model
Browse filesFiles changed (2)
- config.json+1-2
- pytorch_model.bin+1-1
2017 unmodified lines2018201920202021202220232017 unmodified lines"num_channels": 3,"num_hidden_layers": 12,"patch_size": 16,"transformers_version": "4.5.0.dev0","use_pooler": false}2017 unmodified lines201820192020202120222017 unmodified lines"num_channels": 3,"num_hidden_layers": 12,"patch_size": 16,"transformers_version": "4.5.0.dev0"}
123version https://git-lfs.github.com/spec/v1oid sha256:556534b1c1f236a442f9e7c61d1870c1b51afb1f527cebc4cc6363698042ef98size 346351599123version https://git-lfs.github.com/spec/v1oid sha256:5f17067668129d23b52524f90a805e7d9914c276d90a59a13ebe81a09e40cecasize 346351599
config.json+1-2
pytorch_model.bin+1-1