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 / 0_CLIPModel
1.2 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 2 commits
tomaarsen's picture
tomaarsen HF Staff
Adding `safetensors` variant of this model (#2)
42c4db7 verified 10 months ago
  • config.json
    4.31 kB
    upload about 4 years ago
  • merges.txt
    525 kB
    upload about 4 years ago
  • model.safetensors
    599 MB
    xet
    Adding `safetensors` variant of this model (#2) 10 months ago
  • preprocessor_config.json
    354 Bytes
    upload about 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.LongStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    599 MB
    xet
    upload about 4 years ago
  • special_tokens_map.json
    389 Bytes
    upload about 4 years ago
  • tokenizer.json
    2.22 MB
    upload about 4 years ago
  • tokenizer_config.json
    732 Bytes
    upload about 4 years ago
  • vocab.json
    862 kB
    upload about 4 years ago