Sentence-transformers

Latest version: v3.4.1

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 23 of 24

0.2.6

Not secure
The release update huggingface/transformers to the release v2.8.0.

New Features
- **models.Transformer**: The Transformer-Model can now load any huggingface transformers model, like BERT, RoBERTa, XLNet, XLM-R, Elextra... It is based on the AutoModel from HuggingFace. You now longer need the architecture specific models (like models.BERT, models.RoBERTa) any more. It also works with the community models.
- **Multilingual Training**: Code is released for making mono-lingual sentence embeddings models mutli-lingual. See training_multilingual.py for an example. More documentation and details will follow soon.
- **WKPooling**: Adding a pytorch implementation of SBERT-WK. Note, due to an inefficient implementation in pytorch of QR decomposition, WKPooling can only be run on the CPU, which makes it about 40 slower than mean pooling. For some models WKPooling improves the performance, for other don't.
- **WeightedLayerPooling**: A new pooling layer that uses representations from all transformer layers and learns a weighted sum of them. So far no improvement compared to only averaging the last layer.
- **New pre-trained models** released. Every available model is document in a google Spreadsheet for an easier overview.

Minor changes
- Clean-up of the examples folder.
- Model and tokenizer arguments can now be passed to the according transformers models.
- Previous version had some issues with RoBERTa and XLM-RoBERTa, that the wrong special characters were added. Everything is fixed now and relies on huggingface transformers for the correct addition of special characters to the input sentences.

Breaking changes
- *STSDataReader*: The default parameter values have been changed, so that it expects the sentences in the first two columns and the score in the third column. If you want to load the STS benchmkark dataset, you can use the STSBenchmarkDataReader.

0.2.5

Not secure

0.2.4

Not secure
This version update the underlying HuggingFace Transformer package to v2.2.1.

**Changes:**
- DistilBERT and ALBERT modules added
- Pre-trained models for RoBERTa and DistilBERT uploaded
- Some smaller bug-fixes

0.2.3

Not secure
No breaking changes. Just update with pip install -U sentence-transformers

Bugfixes:
- SentenceTransformers can now be used with Windows (threw an exception before about invalid tensor types before)
- Outputs a warning if seq. length for BERT / RoBERTa is too long

Improvements:
- A flag can be set to hide the progress bar when a dataset is convert or an evaluator is executed

0.2.2

Not secure
Updated pytorch-transformers to v1.1.0. Adding support for RoBERTa model.

Bugfixes:
- Critical bugfix for SoftmaxLoss: Classifier weights were not optimized in previous version
- Minor fix for including the timestamp of the output folders

0.2.1

Not secure
This is a minor fix: Packages were not correctly defined for pypi

Page 23 of 24

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.