Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

johnnyboycurtis
/
ModernBERT-small

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

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

  • Libraries
  • sentence-transformers

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

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("johnnyboycurtis/ModernBERT-small")
    
    sentences = [
        "The man is shooting an automatic rifle.",
        "A man is shooting a gun.",
        "A man is driving a car.",
        "A man is dancing."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-small
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
johnnyboycurtis's picture
johnnyboycurtis
Update README.md
3562fdb verified 3 months ago
  • 1_Pooling
    Add new SentenceTransformer model 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    17.6 kB
    Update README.md 3 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