Instructions to use fancyfeast/so400m-long with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fancyfeast/so400m-long with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="fancyfeast/so400m-long") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("fancyfeast/so400m-long") model = AutoModelForZeroShotImageClassification.from_pretrained("fancyfeast/so400m-long", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload model.safetensors
Verified signature5c28a7d
-
Update README.md
Verified signature1abb308 -
Update README.md
Verified signature53cef1a -
Update tokenizer_config.json
Verified signature11f9935 -
Upload processor
Verified signaturee48e6fa -
Upload model
Verified signaturecf85c5f -
initial commit
Verified signature67c547c