upload f5378d2
zhouzaida commited on
How to use moonshotai/MoonViT-SO-400M with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-feature-extraction", model="moonshotai/MoonViT-SO-400M", trust_remote_code=True) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("moonshotai/MoonViT-SO-400M", trust_remote_code=True, device_map="auto")