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="timm/vit_huge_patch14_224_in21k")
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("timm/vit_huge_patch14_224_in21k")
model = AutoModelForImageClassification.from_pretrained("timm/vit_huge_patch14_224_in21k", device_map="auto")
Quick Links

ViT-H/14 (ImageNet-21k)

...

Downloads last month
14
Safetensors
Model size
0.7B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using timm/vit_huge_patch14_224_in21k 5