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

addy88
/
sst5-sentence-t5-base

Text Classification
sentence-transformers
PyTorch
setfit
t5
Model card Files Files and versions
xet
Community
1

Instructions to use addy88/sst5-sentence-t5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use addy88/sst5-sentence-t5-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("addy88/sst5-sentence-t5-base")
    
    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]
  • setfit

    How to use addy88/sst5-sentence-t5-base with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("addy88/sst5-sentence-t5-base")
  • Notebooks
  • Google Colab
  • Kaggle
sst5-sentence-t5-base
444 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
addy88's picture
addy88
Add SetFit model
a7bba5e about 3 years ago
  • 1_Pooling
    Add SetFit model about 3 years ago
  • 2_Dense
    Add SetFit model about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    1.55 kB
    Add SetFit model about 3 years ago
  • config.json
    1.54 kB
    Add SetFit model about 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add SetFit model about 3 years ago
  • model_head.pkl

    Detected Pickle imports (4)

    • "joblib.numpy_pickle.NumpyArrayWrapper",
    • "numpy.ndarray",
    • "numpy.dtype",
    • "sklearn.linear_model._logistic.LogisticRegression"

    How to fix it?

    31.6 kB
    xet
    Add SetFit model about 3 years ago
  • modules.json
    461 Bytes
    Add SetFit model about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    439 MB
    xet
    Add SetFit model about 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add SetFit model about 3 years ago
  • special_tokens_map.json
    2.2 kB
    Add SetFit model about 3 years ago
  • spiece.model
    792 kB
    xet
    Add SetFit model about 3 years ago
  • tokenizer.json
    2.42 MB
    Add SetFit model about 3 years ago
  • tokenizer_config.json
    2.32 kB
    Add SetFit model about 3 years ago