Instructions to use kakaobrain/align-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kakaobrain/align-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="kakaobrain/align-base") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("kakaobrain/align-base") model = AutoModelForZeroShotImageClassification.from_pretrained("kakaobrain/align-base") - Notebooks
- Google Colab
- Kaggle
Example showing separate embedding retrieval
#7 opened about 2 years ago
by
schneeman
GPU memory allocation problem
1
#6 opened about 2 years ago
by
AlirezaSalehi99
Adding `safetensors` variant of this model
#4 opened about 3 years ago
by
SFconvertbot
Model not working
6
#3 opened about 3 years ago
by
bishmdl