Sentence Similarity
sentence-transformers
Safetensors
roberta
feature-extraction
Generated from Trainer
dataset_size:5702228
loss:MaskedCachedMultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use hanwenzhu/all-distilroberta-v1-lr2e-4-bs1024-nneg3-ml-feb22 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use hanwenzhu/all-distilroberta-v1-lr2e-4-bs1024-nneg3-ml-feb22 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("hanwenzhu/all-distilroberta-v1-lr2e-4-bs1024-nneg3-ml-feb22") sentences = [ "Mathlib.CategoryTheory.Functor.Flat#6", "CategoryTheory.Category.id_comp", "Fin.isEmpty'", "HomologicalComplex₂.ι_totalDesc" ] 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!