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

pacoreyes
/
StanceFit

Text Classification
setfit
PyTorch
sentence-transformers
mpnet
generated_from_setfit_trainer
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use pacoreyes/StanceFit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • setfit

    How to use pacoreyes/StanceFit with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("pacoreyes/StanceFit")
  • sentence-transformers

    How to use pacoreyes/StanceFit with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("pacoreyes/StanceFit")
    
    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
StanceFit
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
pacoreyes's picture
pacoreyes
Version Jun 20, 2024
6caa984 verified about 2 years ago
  • 1_Pooling
    uploading SetFit Model about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    43.3 kB
    Version Jun 20, 2024 about 2 years ago
  • config.json
    596 Bytes
    Version Jun 20, 2024 about 2 years ago
  • config_sentence_transformers.json
    116 Bytes
    Version Jun 20, 2024 about 2 years ago
  • config_setfit.json
    53 Bytes
    Version Jun 20, 2024 about 2 years ago
  • model_head.pkl

    Detected Pickle imports (4)

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

    How to fix it?

    7.01 kB
    xet
    Version Jun 20, 2024 about 2 years ago
  • modules.json
    349 Bytes
    Version Jun 20, 2024 about 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    Version Jun 20, 2024 about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Version Jun 20, 2024 about 2 years ago
  • special_tokens_map.json
    280 Bytes
    uploading SetFit Model about 2 years ago
  • tokenizer.json
    711 kB
    Version Jun 20, 2024 about 2 years ago
  • tokenizer_config.json
    396 Bytes
    Version Jun 20, 2024 about 2 years ago
  • vocab.txt
    232 kB
    uploading SetFit Model about 2 years ago