Files
stsb-distilroberta-base/README.md
ModelHub XC 311daba266 初始化项目,由ModelHub XC社区提供模型
Model: cross-encoder/stsb-distilroberta-base
Source: Original Platform
2026-05-13 16:48:32 +08:00

1.1 KiB

license, datasets, language, base_model, pipeline_tag, library_name, tags
license datasets language base_model pipeline_tag library_name tags
apache-2.0
sentence-transformers/stsb
en
distilbert/distilroberta-base
text-ranking sentence-transformers
transformers

Cross-Encoder for Semantic Textual Similarity

This model was trained using SentenceTransformers Cross-Encoder class.

Training Data

This model was trained on the STS benchmark dataset. The model will predict a score between 0 and 1 how for the semantic similarity of two sentences.

Usage and Performance

Pre-trained models can be used like this:

from sentence_transformers import CrossEncoder

model = CrossEncoder('cross-encoder/stsb-distilroberta-base')
scores = model.predict([('Sentence 1', 'Sentence 2'), ('Sentence 3', 'Sentence 4')])

The model will predict scores for the pairs ('Sentence 1', 'Sentence 2') and ('Sentence 3', 'Sentence 4').

You can use this model also without sentence_transformers and by just using Transformers AutoModel class