Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

multi-vector-encoder
/
ModernBERT-base-en-v1

Feature Extraction
sentence-transformers
Safetensors
English
modernbert
multi-vector
colbert
late-interaction
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use multi-vector-encoder/ModernBERT-base-en-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use multi-vector-encoder/ModernBERT-base-en-v1 with sentence-transformers:

    from sentence_transformers import MultiVectorEncoder
    
    model = MultiVectorEncoder("multi-vector-encoder/ModernBERT-base-en-v1")
    
    queries = ["Which planet is known as the Red Planet?"]
    documents = [
    	"Venus is often called Earth's twin because of its similar size and proximity.",
    	"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
    	"Jupiter, the largest planet in our solar system, has a prominent red spot.",
    ]
    
    query_embeddings = model.encode_query(queries)
    document_embeddings = model.encode_document(documents)
    
    similarities = model.similarity(query_embeddings, document_embeddings)
    print(similarities)
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-base-en-v1
619 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
tomaarsen's picture
tomaarsen HF Staff
Update README.md
e1dc66a verified 2 days ago
  • 1_Dense
    Add new MultiVectorEncoder model 2 days ago
  • 2_Dense
    Add new MultiVectorEncoder model 2 days ago
  • 3_Dense
    Add new MultiVectorEncoder model 2 days ago
  • 4_MultiVectorMask
    Add new MultiVectorEncoder model 2 days ago
  • 5_Normalize
    Add new MultiVectorEncoder model 2 days ago
  • .gitattributes
    1.52 kB
    initial commit 2 days ago
  • README.md
    9.15 kB
    Update README.md 2 days ago
  • config.json
    2.02 kB
    Add new MultiVectorEncoder model 2 days ago
  • config_sentence_transformers.json
    309 Bytes
    Lower ST version from dev version 2 days ago
  • model.safetensors
    596 MB
    xet
    Add new MultiVectorEncoder model 2 days ago
  • modules.json
    848 Bytes
    Add new MultiVectorEncoder model 2 days ago
  • sentence_bert_config.json
    305 Bytes
    Add new MultiVectorEncoder model 2 days ago
  • tokenizer.json
    3.58 MB
    Add new MultiVectorEncoder model 2 days ago
  • tokenizer_config.json
    596 Bytes
    Add new MultiVectorEncoder model 2 days ago