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

clembi
/
ModernBERT-base-embed

Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use clembi/ModernBERT-base-embed with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("clembi/ModernBERT-base-embed")
    
    sentences = [
        "In 1831, interesting novels were written in Paris.",
        "Hugo and Dumas met in the Opera in Paris in 1831.",
        "Many interesting novels are released in the 21st century.",
        "A new vegan burger is offered at the counter from now on."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-base-embed
Ctrl+K
Ctrl+K
  • 2 contributors
History: 7 commits
clembi's picture
clembi
Update README.md
49007f3 verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    1.28 kB
    Update README.md over 1 year ago
  • config.json
    1.19 kB
    Upload 5 files over 1 year ago
  • model.safetensors
    596 MB
    xet
    update model over 1 year ago
  • special_tokens_map.json
    694 Bytes
    Upload 5 files over 1 year ago
  • tokenizer.json
    2.13 MB
    Upload 5 files over 1 year ago
  • tokenizer_config.json
    20.8 kB
    Upload 5 files over 1 year ago