Upload pytorch_model.bin with git-lfs 0f12dbd
Adhi Setiawan commited on
How to use adhisetiawan/test-vit with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-feature-extraction", model="adhisetiawan/test-vit") # Load model directly
from transformers import AutoImageProcessor, AutoModel
processor = AutoImageProcessor.from_pretrained("adhisetiawan/test-vit")
model = AutoModel.from_pretrained("adhisetiawan/test-vit", device_map="auto")