TLDRocket
Sign in

Train and Fine-Tune Sentence Transformers Models

Hugging Face Blog

Sentence Transformers models were updated from the SentenceTransformer.fit API (pre-v3.0) to a new SentenceTransformerTrainer API with separate guides for embedding, reranker, sparse embedding, and multimodal models. The training process requires dataset preparation in one of four formats (sentence pairs with similarity labels, positive sentence pairs without labels, sentences with class labels, or triplet examples) and selection of an appropriate loss function matching the data structure. Users should now consult the updated guides covering the new SentenceTransformerTrainer rather than this outdated documentation.

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads 60+ sources, removes duplicate coverage, and summarises the day in two minutes. Free, no spam, unsubscribe anytime.