Ross ROSS = Recommend OSS · open-source software intelligence for agents

lucidrains/CoCa-pytorch

Implementation of CoCa, Contrastive Captioners are Image-Text Foundation Models, in Pytorch observed · 2026-08-28

github.com/lucidrains/CoCa-pytorch · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 1581
  • days_rel: n/a
  • days_push: 995
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1198 stars · 89 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Pytorch implementation of CoCa (Contrastive Captioners), an image-text foundation model that combines contrastive learning with an encoder-decoder transformer for image captioning and CLIP-like embeddings. It adopts the PaLM transformer architecture with parallel SwiGLU feedforwards and requires a pretrained vision transformer as the image encoder.

Use cases

  • train a multimodal image-text foundation model in pytorch
  • generate captions for images with a transformer model
  • get CLIP-style image and text embeddings for contrastive search
  • implement contrastive captioning loss for vision-language pretraining
  • fine-tune an image-to-text model on my own image-caption dataset
  • reproduce CoCa paper results for research

When to choose

  • you want a flexible, hackable Pytorch implementation of the CoCa architecture for research
  • you need both captioning and contrastive (CLIP-like) objectives in one model
  • you already have a pretrained vision transformer encoder to plug in

When to avoid

  • you need a pretrained, ready-to-use model with weights out of the box
  • you want a production inference service rather than a training library
  • you prefer frameworks other than Pytorch

Facets

library · maturity maintenance

machine-learning deep-learning transformers artificial-intelligence deep-learning computer-vision python contrastive-learning multimodal image-to-text image-captioning clip research-implementation vision-transformer natural-language-processing

2 sources

Member repositories

RepositoryRoleHealth v2
lucidrains/CoCa-pytorchmain23

For agents

markdown · JSON · MCP: product_card(name="lucidrains/CoCa-pytorch")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem