22nd of 2 in Open models

clip

OpenAI's reference PyTorch code and weights for contrastive image-text embeddings

Stars
34.5k
License
MIT
Last commit
Mar 2026
Language
Jupyter Notebook
Stars, last 29 weeks+1,759
24 Mar 2026: 32,703 stars31 Mar 2026: 32,801 stars7 Apr 2026: 32,886 stars14 Apr 2026: 32,982 stars21 Apr 2026: 33,086 stars28 Apr 2026: 33,160 stars5 May 2026: 33,222 stars12 May 2026: 33,306 stars19 May 2026: 33,357 stars26 May 2026: 33,456 stars2 Jun 2026: 33,525 stars9 Jun 2026: 33,591 stars16 Jun 2026: 33,654 stars23 Jun 2026: 33,709 stars30 Jun 2026: 33,766 stars7 Jul 2026: 33,808 stars14 Jul 2026: 33,876 stars21 Jul 2026: 33,939 stars28 Jul 2026: 33,981 stars4 Aug 2026: 34,037 stars11 Aug 2026: 34,066 stars18 Aug 2026: 34,111 stars25 Aug 2026: 34,153 stars1 Sept 2026: 34,190 stars8 Sept 2026: 34,230 stars15 Sept 2026: 34,277 stars22 Sept 2026: 34,330 stars29 Sept 2026: 34,372 stars6 Oct 2026: 34,411 stars13 Oct 2026: 34,462 stars

32,703 on 24 Mar 202634,462 on 13 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

OpenAI is hiring: 806 open roles

Overview

CLIP is a Python package that loads OpenAI's pretrained image-text models and exposes encode_image, encode_text and a similarity forward pass. It supports zero-shot image classification from natural-language labels and feature extraction for linear-probe training. The README targets PyTorch 1.7.1 or later on CUDA or CPU, with weights downloaded on demand.

Who it is for: ML engineers needing image-text embeddings or zero-shot classification

Strengths

  • Small API: clip.load, clip.tokenize, encode_image, encode_text
  • Zero-shot classification from text labels without task-specific training
  • MIT license; runs on CPU or CUDA GPU
  • README has runnable zero-shot and linear-probe examples on CIFAR-100

Weaknesses

  • Inference and evaluation only; no training code in this repo
  • Installed from git via pip; no tagged releases
  • Text context length defaults to 77 tokens
  • Larger independently trained models are in OpenCLIP, not here

What it needs

  • GPU optional
  • Needs PyTorch 1.7.1+, torchvision, ftfy, regex, tqdm
  • Models: CLIP ViT-B/32, other names via clip.available_models()

Head to head

Also in Open models

See all 2
Also in Open models
RankProjectScore
1timesfmPretrained time-series foundation model for zero-shot forecasting from Google Research34.5k starsApache-2.074 out of 100