clip-benchmark
CLIP-like models benchmarks on various datasets
What it is and what it does
CLIP Benchmark is a standardized evaluation framework for CLIP-like vision-language models. It provides a command-line interface to benchmark models like OpenCLIP, Japanese CLIP, and NLLB CLIP across multiple datasets and tasks. The package handles zero-shot image classification and retrieval, linear probing, and image captioning, supporting datasets from torchvision, TensorFlow Datasets, and VTAB, as well as multilingual and compositional tasks.
You specify a model, dataset, and task; the framework loads the model, runs inference, and outputs evaluation metrics to JSON. Results can be aggregated into CSV tables for comparison. The package depends on torch, torchvision, transformers, open-clip-torch, scikit-learn, pycocoevalcap, webdataset, and tqdm—a substantial set of deep-learning dependencies that must be installed alongside it.
Use it for:
- Compare zero-shot classification accuracy of different CLIP variants on standard datasets like CIFAR-10 or ImageNet.
- Evaluate multilingual CLIP models (Japanese CLIP, NLLB) on language-specific or cross-lingual retrieval tasks.
- Run linear probing experiments to measure how well frozen CLIP embeddings transfer to downstream tasks.
- Benchmark image captioning models on COCO captions with standard metrics via pycocoevalcap.
- Generate reproducible evaluation tables across multiple models and datasets for research papers or model selection.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Evaluates CLIP-like vision-language models on standard datasets using zero-shot classification, zero-shot retrieval, linear probing, and captioning tasks.
Yes, if you need to systematically evaluate CLIP-like models on standard benchmarks. The low install friction and permissive license make it accessible. However, the aging maintenance status (385 days since release) and Pre-Alpha development status mean you should verify compatibility with your PyTorch and transformers versions before relying on it for production comparisons. No known security vulnerabilities.
Install
clip-benchmark on PyPI
pip
pip install clip-benchmarkuv
uv add clip-benchmarkpoetry
poetry add clip-benchmarkInstalling clip-benchmark
Before you install
Low install friction with a pure-Python wheel. Maintenance status is aging (385 days since last release), though the package remains functional and receives occasional updates.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install clip-benchmark
clip_benchmark eval --dataset=cifar10 --task=zeroshot_classification \
--pretrained=laion400m_e32 --model=ViT-B-32-quickgelu \
--output=result.json --batch_size=64
Requires torch, torchvision, and transformers; evaluation tasks require sufficient GPU memory depending on model size and batch size.
Verify before relying
- Whether aging maintenance status (385 days since release) affects compatibility with recent PyTorch or transformers versions.
- Support status for Python versions beyond 3.8 (classifiers list only up to 3.8).
Package facts
| License | MIT license (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — torch, torchvision, tqdm, scikit-learn, open-clip-torch, pycocoevalcap, webdataset, transformers |
| Maintenance | aging — 385 days since the last release |
| First released | |
| Downloads | 449,044/month — #6,598 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: clip_benchmark-1.6.2-py2.py3-none-any.whl
Keywords: clip_benchmark
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
open-clip-torchOpenCLIP provides open-source implementations…
permissive · top 5,000 on PyPI
rf100vlProvides programmatic access to RF100-VL, a…
permissive · top 15,000 on PyPI
clip-anytorchLoads and runs OpenAI's CLIP model to encode…
unclear · top 15,000 on PyPI
clip-interrogatorGenerates natural-language prompts from images…
permissive · top 15,000 on PyPI
ogbOGB provides standardized benchmark datasets,…
permissive · top 15,000 on PyPI
pycocoevalcapEvaluates image captions using multiple…
unclear · top 5,000 on PyPI
faster-coco-evalFaster-COCO-Eval provides a high-performance…
unclear · top 15,000 on PyPI
unitxtUnitxt provides a unified framework for…
permissive · top 15,000 on PyPI
lpipsComputes perceptual similarity between image…
permissive · top 5,000 on PyPI
lm-evalUnified framework for evaluating generative…
permissive · top 5,000 on PyPI