Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

PaDaS-Lab
/
xlm-roberta-base-msmarco

Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:502912
loss:MarginMSELoss
mteb
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

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
xlm-roberta-base-msmarco / 1_Pooling
296 Bytes
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
michaeldinzinger's picture
michaeldinzinger
Add model
9d8b836 over 1 year ago
  • config.json
    296 Bytes
    Add model over 1 year ago