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-sts

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

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

  • Libraries
  • sentence-transformers

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

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("johnnyboycurtis/ModernBERT-small-sts")
    
    sentences = [
        "A modern bathtub in a bathroom is displayed.",
        "Different types of tiles are on the walls, floor and tub.",
        "A man sitting on a park bench looking towards a fountain and sculpture.",
        "A bathroom with a shower and his and her sinks."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-small-sts
99 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
johnnyboycurtis's picture
johnnyboycurtis
Update README.md
fdc577d verified 10 months ago
  • 1_Pooling
    Add new SentenceTransformer model 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    70.9 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
    20.8 kB
    Add new SentenceTransformer model 10 months ago