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

  • Log In
  • Sign Up

claritylab
/
zero-shot-explicit-binary-bert

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

Instructions to use claritylab/zero-shot-explicit-binary-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use claritylab/zero-shot-explicit-binary-bert with Transformers:

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

    How to use claritylab/zero-shot-explicit-binary-bert with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("claritylab/zero-shot-explicit-binary-bert")
    
    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-explicit-binary-bert
877 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 15 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
9caea16 verified over 1 year ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    1.92 kB
    Update README.md almost 3 years ago
  • added_tokens.json
    16 Bytes
    add tokenizer almost 3 years ago
  • config.json
    832 Bytes
    add model almost 3 years ago
  • model.safetensors
    438 MB
    xet
    Adding `safetensors` variant of this model over 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    add model almost 3 years ago
  • special_tokens_map.json
    134 Bytes
    add tokenizer almost 3 years ago
  • tokenizer.json
    712 kB
    add tokenizer almost 3 years ago
  • tokenizer_config.json
    474 Bytes
    add tokenizer almost 3 years ago
  • vocab.txt
    232 kB
    add tokenizer almost 3 years ago