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

sentence-transformers
/
multi-qa-distilbert-cos-v1

Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
Transformers
English
distilbert
fill-mask
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
8

Instructions to use sentence-transformers/multi-qa-distilbert-cos-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/multi-qa-distilbert-cos-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/multi-qa-distilbert-cos-v1")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use sentence-transformers/multi-qa-distilbert-cos-v1 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/multi-qa-distilbert-cos-v1")
    model = AutoModelForMaskedLM.from_pretrained("sentence-transformers/multi-qa-distilbert-cos-v1", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

VORTEXRAG: 7-Layer RAG — Causal Drift Filtering + Context Poison Guard [paper + code + demo]

#8 opened 2 months ago by
vigneshwar234

VORTEXRAG: 7-Layer RAG — Causal Drift Filtering + Context Poison Guard [paper + code + demo]

#7 opened 2 months ago by
vigneshwar234

Licensing information of the model is missing.

#6 opened over 1 year ago by
nishav

Not getting great results, any suggestions?

3
#5 opened over 1 year ago by
mattpryor

What is the license for this model?

#3 opened over 2 years ago by
williamcaban
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs