Zero-Shot Classification
Transformers
PyTorch
Safetensors
English
clip
feature-extraction
custom_code
Instructions to use chuhac/BiomedCLIP-vit-bert-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chuhac/BiomedCLIP-vit-bert-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="chuhac/BiomedCLIP-vit-bert-hf", trust_remote_code=True)# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("chuhac/BiomedCLIP-vit-bert-hf", trust_remote_code=True) model = AutoModel.from_pretrained("chuhac/BiomedCLIP-vit-bert-hf", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Huggingface-friendly BiomedCLIP
- pure torch and huggingface-based implementation of the original microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224
- rename the checkpoint state key names.
Usage
from transformers import AutoModel, AutoProcessor
model = AutoModel.from_pretrained("chuhac/BiomedCLIP-vit-bert-hf", trust_remote_code=True)
processor = AutoProcessor.from_pretrained("chuhac/BiomedCLIP-vit-bert-hf", trust_remote_code=True)
- Downloads last month
- 35,455