Zero-Shot Image Classification
OpenCLIP
Safetensors
English
biology
CV
images
imageomics
clip
species-classification
biological visual task
multimodal
animals
plants
fungi
species
taxonomy
rare species
endangered species
evolutionary biology
knowledge-guided
Instructions to use skram/bioclip-2-endpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use skram/bioclip-2-endpoint with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:skram/bioclip-2-endpoint') tokenizer = open_clip.get_tokenizer('hf-hub:skram/bioclip-2-endpoint') - Notebooks
- Google Colab
- Kaggle
Commit History
-
Roll back: remove OpenAI shim test
Verified signaturea5b64cb -
Roll back: remove OpenAI container files
Verified signaturefd7c7fa -
Roll back: remove OpenAI container files
Verified signaturea1d4428 -
Roll back: remove OpenAI container files
Verified signature384cbf0 -
Roll back: remove OpenAI container files
Verified signatured6b1b9f -
Roll back: remove OpenAI container files
Verified signature79840ab -
Roll back handler.py to pre-OpenAI version (restore commit 92cec2e content: fp16 autocast handler, no OpenAI shim)
Verified signature890ee93 -
Copy validated handler into container build context (identical to repo-root handler.py)
Verified signaturec5095c3 -
Add build/push/deploy instructions for the OpenAI-compatible container
Verified signaturecf67c72 -
Add Dockerfile for the OpenAI-compatible custom container
Verified signature14be77b -
Add FastAPI server for custom-container deployment with OpenAI-compatible /v1/embeddings
Verified signature8b2f4c0 -
Add container requirements (torch from base image; validated pins for the rest)
Verified signature68f4ebd -
Add validated OpenAI-shim test script (5 checks / 17 assertions passed on CPU with mounted weights)
Verified signaturec8e4f91 -
Add OpenAI embeddings-format compatibility (input/messages -> OpenAI envelope, float/base64 encoding) alongside existing inputs format
Verified signaturefaa2a41
-
Add requirements with versions validated for the bioclip-2.5 handler
Verified signature37c6cc6 -
Add reproducible handler test script (768-dim embeddings, ViT-L/14)
Verified signature1e7a74a -
Add custom Inference Endpoints handler for BioCLIP 2 (open_clip ViT-L/14)
Verified signature92cec2e -
Remove duplicate .bin weights (identical to safetensors) to halve endpoint cold-start download
Verified signature78aa415 -
Duplicate from imageomics/bioclip-2
Co-authored-by: Elizabeth Campolongo <egrace479@users.noreply.huggingface.co>be2f690