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

johnnyboycurtis
/
ModernBERT-small-retrieval

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

Instructions to use johnnyboycurtis/ModernBERT-small-retrieval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use johnnyboycurtis/ModernBERT-small-retrieval with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("johnnyboycurtis/ModernBERT-small-retrieval")
    
    sentences = [
        "what is the difference between body spray and eau de toilette?",
        "Eau de Toilette (EDT) is ideal for those that may find the EDP or Perfume oil too strong, with 7%-12% fragrance concentration in alcohol. Gives four to five hours wear. Body Mist is a light refreshing fragrance perfect for layering with other products from the same family. 3-5% fragrance concentration in alcohol.",
        "To join the Army as an enlisted member you must usually take the Armed Services Vocational Aptitude Battery (ASVAB) test and get a good score. The maximum ASVAB score is 99. For enlistment into the Army you must get a minimum ASVAB score of 31.",
        "Points needed to redeem rewards with Redbox Perks: 1,500 points = FREE 1-night DVD rental. 1,750 points = FREE Blu-ray rental. 2,500 points = FREE 1-night Game rental."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-small-retrieval
99 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
johnnyboycurtis's picture
johnnyboycurtis
Update README.md
63b3e76 verified 10 months ago
  • 1_Pooling
    Add new SentenceTransformer model 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    52.7 kB
    Update README.md 10 months ago
  • config.json
    1.11 kB
    Add new SentenceTransformer model 10 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 10 months ago
  • model.safetensors
    95.3 MB
    xet
    Add new SentenceTransformer model 10 months ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model 10 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 10 months ago
  • special_tokens_map.json
    694 Bytes
    Add new SentenceTransformer model 10 months ago
  • tokenizer.json
    3.58 MB
    Add new SentenceTransformer model 10 months ago
  • tokenizer_config.json
    21 kB
    Add new SentenceTransformer model 10 months ago