Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

claritylab
/
zero-shot-implicit-bi-encoder

Zero-Shot Classification
PyTorch
Transformers
sentence-transformers
English
zeroshot_classifier
bert
feature-extraction
Model card Files Files and versions
xet
Community
1

Instructions to use claritylab/zero-shot-implicit-bi-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use claritylab/zero-shot-implicit-bi-encoder with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-classification", model="claritylab/zero-shot-implicit-bi-encoder")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("claritylab/zero-shot-implicit-bi-encoder")
    model = AutoModel.from_pretrained("claritylab/zero-shot-implicit-bi-encoder")
  • sentence-transformers

    How to use claritylab/zero-shot-implicit-bi-encoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("claritylab/zero-shot-implicit-bi-encoder")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
zero-shot-implicit-bi-encoder
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
StefanH's picture
StefanH
Update README.md
ad2a537 almost 3 years ago
  • 1_Pooling
    Add new SentenceTransformer model. almost 3 years ago
  • .gitattributes
    1.53 kB
    Add new SentenceTransformer model. almost 3 years ago
  • README.md
    2.03 kB
    Update README.md almost 3 years ago
  • added_tokens.json
    41 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • config.json
    770 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • config_sentence_transformers.json
    118 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. almost 3 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?

    438 MB
    xet
    Add new SentenceTransformer model. almost 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • special_tokens_map.json
    183 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. almost 3 years ago
  • tokenizer_config.json
    433 Bytes
    Add new SentenceTransformer model. almost 3 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. almost 3 years ago