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

tomaarsen
/
ModernBERT-base-gooaq

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

Instructions to use tomaarsen/ModernBERT-base-gooaq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use tomaarsen/ModernBERT-base-gooaq with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tomaarsen/ModernBERT-base-gooaq")
    
    sentences = [
        "how much is a car title transfer in minnesota?",
        "This complex is a larger molecule than the original crystal violet stain and iodine and is insoluble in water. ... Conversely, the the outer membrane of Gram negative bacteria is degraded and the thinner peptidoglycan layer of Gram negative cells is unable to retain the crystal violet-iodine complex and the color is lost.",
        "Get insurance on the car and provide proof. Bring this information (including the title) to the Minnesota DVS office, as well as $10 for the filing fee and $7.25 for the titling fee. There is also a $10 transfer tax, as well as a 6.5% sales tax on the purchase price.",
        "One of the risks of DNP is that it accelerates the metabolism to a dangerously fast level. Our metabolic system operates at the rate it does for a reason – it is safe. Speeding up the metabolism may help burn off fat, but it can also trigger a number of potentially dangerous side effects, such as: fever."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-base-gooaq
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
tomaarsen's picture
tomaarsen HF Staff
Update train_st_gooaq.py
1440571 verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    47.9 kB
    Update README.md over 1 year ago
  • config.json
    1.29 kB
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    222 Bytes
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    596 MB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    694 Bytes
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    3.58 MB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    20.9 kB
    Add new SentenceTransformer model over 1 year ago
  • train_st_gooaq.py
    3.12 kB
    Update train_st_gooaq.py over 1 year ago