This patch release introduces compatibility with Transformers v5.2.
Install this version with
# Training + Inference
pip install sentence-transformers[train]==5.2.3
# Inference only, use one of:
pip install sentence-transformers==5.2.3
pip install sentence-transformers[onnx-gpu]==5.2.3
pip install sentence-transformers[onnx]==5.2.3
pip install sentence-transformers[openvino]==5.2.3Transformers v5.2 Support
Transformers v5.2 has just released, and it updated its Trainer in such a way that training with Sentence Transformers would start failing on the logging step. The #3664 pull request has resolved this issue.
If you're not training with Sentence Transformers, then older versions of Sentence Transformers are also compatible with Transformers v5.2.
All Changes
- [
compat] Introduce Transformers v5.2 compatibility: trainer _nested_gather moved by @tomaarsen (#3664)
Full Changelog: v5.2.2...v5.2.3