Update README.md 996d2ea verified
Brandon B. May commited on
How to use theaiinstitute/theia-tiny-patch16-224-cdiv with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="theaiinstitute/theia-tiny-patch16-224-cdiv", trust_remote_code=True) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("theaiinstitute/theia-tiny-patch16-224-cdiv", trust_remote_code=True, device_map="auto")