Sentence Similarity
sentence-transformers
Safetensors
English
distilbert
feature-extraction
dataset_size:1K<n<10K
loss:MatryoshkaLoss
loss:CoSENTLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use mrm8488/distilbert-base-matryoshka-sts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mrm8488/distilbert-base-matryoshka-sts with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mrm8488/distilbert-base-matryoshka-sts") sentences = [ "A woman is dancing.", "Women are dancing.", "A toddler walks down a hallway.", "Shinzo Abe is Japan's prime minister" ] 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!