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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

PrasannSinghal
/
ModernBERT-base-DPR-8e-05

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

Instructions to use PrasannSinghal/ModernBERT-base-DPR-8e-05 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use PrasannSinghal/ModernBERT-base-DPR-8e-05 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("PrasannSinghal/ModernBERT-base-DPR-8e-05")
    
    sentences = [
        "where is henderson mn",
        "Confidence votes 1.7K. Assuming we're talking about the `usual' 12 volt car battery' the resting voltage should be around 11 to 11.5 volts. Under charge it's as high as 15 volts as supplied from the alternator,and most cars won't start if the voltage is under 10.5 to 11.5 volts. The term `12 volt battery' is what's referred to as, `nominal' or `in name only' as a general reference and not meant to be an accurate description.",
        "Henderson is a very small town of 1,000 people on the west bank of the Minnesota River just south of the Minneapolis and Saint Paul metro area.",
        "Henderson, officially the City of Henderson, is an affluent city in Clark County, Nevada, United States, about 16 miles southeast of Las Vegas. It is the second-largest city in Nevada, after Las Vegas, with an estimated population of 292,969 in 2016.[2] The city is part of the Las Vegas metropolitan area, which spans the entire Las Vegas Valley. Henderson occupies the southeastern end of the valley, at an elevation of approximately 1,330 feet (410 m)."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-base-DPR-8e-05
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
PrasannSinghal's picture
PrasannSinghal
Add new SentenceTransformer model
3bd3f18 verified 6 months ago
  • 1_Pooling
    Add new SentenceTransformer model 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    47 kB
    Add new SentenceTransformer model 6 months ago
  • config.json
    1.21 kB
    Add new SentenceTransformer model 6 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 6 months ago
  • model.safetensors
    596 MB
    xet
    Add new SentenceTransformer model 6 months ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model 6 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 6 months ago
  • special_tokens_map.json
    694 Bytes
    Add new SentenceTransformer model 6 months ago
  • tokenizer.json
    3.58 MB
    Add new SentenceTransformer model 6 months ago
  • tokenizer_config.json
    20.8 kB
    Add new SentenceTransformer model 6 months ago