v5.1.1 - Explicit incorrect arguments, fixes for multi-GPU, evaluator, and hard negative
This patch makes Sentence Transformers more explicit with incorrect arguments and introduces some fixes for multi-GPU processing, evaluators, and hard negatives mining.
Install this version with
# Training + Inference
pip install sentence-transformers[train]==5.1.1
# Inference only, use one of:
pip install sentence-transformers==5.1.1
pip install sentence-transformers[onnx-gpu]==5.1.1
pip install sentence-transformers[onnx]==5.1.1
pip install sentence-transformers[openvino]==5.1.1
Error if unused kwargs is passed & get_model_kwargs (#3500)
Some SentenceTransformer or SparseEncoder models support custom model-specific keyword arguments, such as jinaai/jina-embeddings-v4. As of this release, calling model.encode with keyword arguments that aren't used by the model will result in an error.