Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:502912
loss:MarginMSELoss
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use PaDaS-Lab/xlm-roberta-base-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use PaDaS-Lab/xlm-roberta-base-msmarco with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("PaDaS-Lab/xlm-roberta-base-msmarco") sentences = [ "how to get rid of an iron mark", "Quick Answer. A good remedy for removing shiny iron scorch marks from fabric is to use hydrogen peroxide with ammonia. Other options for removing shiny scorch marks include laundry detergent, bleach or vinegar, but it depends on how quickly the scorch is remedied. Keep Learning.", "Largely due to declining sales, in 2006, Tommy Hilfiger sold his company for $1.6 billion, or $16.80 a share, to Apax Partners, a private investment company. In March 2010, Phillips-Van Heusen, owner of Calvin Klein, bought the Tommy Hilfiger Corporation for $3 billion.", "You need to heat continuous until it turns to a paste. Use this simple mixture by rubbing it right onto the soleplate. Now, make sure that the iron is unplugged before cleaning it. After rubbing the mixture, with the help of a nice, clean cloth wipe the unsightly scorch marks off your iron. 5 people found this useful." ] 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!