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

benjamintli
/
modernbert-msmarco

Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:477792
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use benjamintli/modernbert-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use benjamintli/modernbert-msmarco with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("benjamintli/modernbert-msmarco")
    
    sentences = [
        "tachyphylaxis definition",
        "1 In some areas plumbers charge $45 -$75 an hour; in other regions the hourly rate can be $75 -$150. 2  Most plumbers charge a two-hour minimum or a service call fee of $75 -$150, and some plumbers bill a flat fee per job instead of an hourly rate.3  Either away, exact costs will depend on the complexity and type of work done. Plumbers' rates vary significantly by location. 2  In some areas plumbers charge $45 -$75 an hour; in other regions the hourly rate can be $75 -$150.",
        "Medical Definition of tachyphylaxis. plural. tachyphylaxes. \\-ˌsēz\\play. : diminished response to later increments in a sequence of applications of a physiologically active substance (as the diminished pressor response that follows repeated injections of renin)",
        "Quick Answer. Injury to the phrenic nerve can paralyze the diaphragm and have a serious impact on the regulation of breathing, such as difficulty during inhalation, according to the UCLA Division of Plastic & Reconstructive Surgery. The phrenic nerve is responsible for the function of the diaphragm. Continue Reading."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
modernbert-msmarco / eval
858 Bytes
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
benjamintli's picture
benjamintli
Training in progress, epoch 1
d96f867 verified 2 months ago
  • Information-Retrieval_evaluation_eval_results.csv
    858 Bytes
    Training in progress, epoch 1 2 months ago