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

sentence-transformers
/
clip-ViT-B-16

Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
Model card Files Files and versions
xet
Community
2

Instructions to use sentence-transformers/clip-ViT-B-16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/clip-ViT-B-16 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/clip-ViT-B-16")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
clip-ViT-B-16
1.2 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 4 commits
tomaarsen's picture
tomaarsen HF Staff
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#2)
42c4db7 verified 10 months ago
  • 0_CLIPModel
    Adding `safetensors` variant of this model (#2) 10 months ago
  • .gitattributes
    1.28 kB
    Adding `safetensors` variant of this model (#2) 10 months ago
  • README.md
    1.91 kB
    Update Sentence Transformers metadata (#1) over 2 years ago
  • config_sentence_transformers.json
    118 Bytes
    upload about 4 years ago
  • modules.json
    122 Bytes
    upload about 4 years ago