I want to fine tune a Sentence Transformer (For example MPNET) using Contrastive Learning. Is it possible to use the Huggingface Trainer API for this? If yes, how? Can you kindly guide me with some suggestion?
I went through the Trainer API docs and examples but could not actually find a support for Contrastive Learning or fine tuning embeddings. Most documents discuss primarily about Classification models.
The Huggingface Trainer is used for models. If you want to train embeddings, you can refer to the sentence-transformer website:
https://www.sbert.net/docs/training/overview.html