Sentence Similarity
sentence-transformers
Safetensors
English
distilbert
feature-extraction
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use hongming/distilbert-base-uncased-sts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hongming/distilbert-base-uncased-sts with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hongming/distilbert-base-uncased-sts") sentences = [ "A plane in the sky.", "Two airplanes in the sky.", "A man plays an acoustic guitar.", "The small dog protects its owner." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!