nomic-ai/contrastors

Train Models Contrastively in Pytorch

43
/ 100
Emerging

Leverages Flash Attention custom kernels and GradCache to enable memory-efficient training at scale, supporting multi-GPU distributed training with large batch sizes. Integrates with Hugging Face model hubs (BERT, Pythia, ViT via timm) and implements advanced techniques including Matryoshka Representation Learning, CLIP/LiT-style objectives, and MLM pretraining. Includes streaming data ingestion from cloud storage (Cloudflare R2) with byte-offset indexing for datasets exceeding available memory, demonstrated through production embeddings like Nomic Embed.

777 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 17 / 25

How are scores calculated?

Stars

777

Forks

65

Language

Python

License

Apache-2.0

Last pushed

Mar 26, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/embeddings/nomic-ai/contrastors"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.