fit()
method provided by sentence transformersSentenceTransformersFinetuneEngine
class in the codebase is used for fine-tuning Sentence Transformers models. It's not a specific type of training like LoRa (Long Range) training. Instead, it's a classic training approach where all the weights of the model are adjusted based on the training data.finetune
method in this class calls the fit
function of the Sentence Transformers model with several parameters including the training data, the number of epochs, the warmup steps, the output path for the model, whether to show a progress bar, the evaluator, and the evaluation steps.BaseEmbeddingFinetuneEngine
, such as the SentenceTransformersFinetuneEngine
class. The BaseEmbeddingFinetuneEngine
class itself is an abstract base class and does not provide an implementation for the finetune
method.