OpenCLIP (LAION-2B)
Collection
6 items • Updated
Run cs-giung/clip-vit-gigantic-patch14-laion2b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/cs-giung/clip-vit-gigantic-patch14-laion2b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/cs-giung/clip-vit-gigantic-patch14-laion2b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use cs-giung/clip-vit-gigantic-patch14-laion2b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("zero-shot-image-classification", model="cs-giung/clip-vit-gigantic-patch14-laion2b")
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("cs-giung/clip-vit-gigantic-patch14-laion2b")
model = AutoModelForZeroShotImageClassification.from_pretrained("cs-giung/clip-vit-gigantic-patch14-laion2b", device_map="auto")Contrastive Language-Image Pretraining (CLIP) model pre-trained on LAION-2B at resolution 224x224. It was introduced in the paper Learning Transferable Visual Models From Natural Language Supervision and further reproduced in the follow-up paper Reproducible scaling laws for contrastive language-image learning.
The weights were converted from the laion/CLIP-ViT-bigG-14-laion2B-39B-b160k presented in the OpenCLIP LAION-2B collections.