Run this model with HF Jobs
Run google/vit-large-patch16-224-in21k 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-large-patch16-224-in21k. 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-large-patch16-224-in21k 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-large-patch16-224-in21k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/vit-large-patch16-224-in21k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="google/vit-large-patch16-224-in21k")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("google/vit-large-patch16-224-in21k") model = AutoModel.from_pretrained("google/vit-large-patch16-224-in21k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding ONNX file of this model
#2
by optowo - opened
Files changed (3)
- onnx/config.jsonAdded+22
- onnx/model.onnxAdded+3
- onnx/preprocessor_config.jsonAdded+22
12345678910111213141516171819202122{ "_name_or_path": "google/vit-large-patch16-224-in21k", "architectures": [ "ViTModel" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 1024, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 4096, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 16, "num_channels": 3, "num_hidden_layers": 24, "patch_size": 16, "qkv_bias": true, "transformers_version": "4.37.2"}123version https://git-lfs.github.com/spec/v1oid sha256:397da1251c39dd2e186252cb33706fe8791ba800d92217d2897055b2aac44fb3size 121373802012345678910111213141516171819202122{ "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTFeatureExtractor", "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}onnx/config.jsonAdded+22
onnx/model.onnxAdded+3
onnx/preprocessor_config.jsonAdded+22