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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

NeuML
/
colbert-bert-tiny

Sentence Similarity
sentence-transformers
Safetensors
English
bert
ColBERT
multi-vector
feature-extraction
Generated from Trainer
dataset_size:497901
loss:Contrastive
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use NeuML/colbert-bert-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use NeuML/colbert-bert-tiny with sentence-transformers:

    from sentence_transformers import MultiVectorEncoder
    
    model = MultiVectorEncoder("NeuML/colbert-bert-tiny")
    
    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)
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
colbert-bert-tiny
18.6 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
tomaarsen's picture
tomaarsen HF Staff
Add Sentence Transformers usage
a91ed33 verified about 2 months ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    1.91 kB
    Add Sentence Transformers usage about 2 months ago
  • added_tokens.json
    37 Bytes
    Add model about 1 year ago
  • artifact.metadata
    912 Bytes
    Update config about 1 year ago
  • config.json
    637 Bytes
    Add model about 1 year ago
  • model.safetensors
    17.6 MB
    xet
    Add model about 1 year ago
  • special_tokens_map.json
    126 Bytes
    Add model about 1 year ago
  • tokenizer.json
    712 kB
    Add model about 1 year ago
  • tokenizer_config.json
    1.64 kB
    Add model about 1 year ago
  • vocab.txt
    232 kB
    Add model about 1 year ago