TLDRocket
Sign in

Tools & Coding

975 summarised stories in Tools & Coding, each linking back to the original source. Browse all topics →

Wednesday, 10 August 2022

Train and Fine-Tune Sentence Transformers Models

Hugging Face 4 years ago 35

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.

The daily briefing

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

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.