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

Bhathiya
/
setfit-model

Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use Bhathiya/setfit-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Bhathiya/setfit-model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Bhathiya/setfit-model")
    
    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]
  • Transformers

    How to use Bhathiya/setfit-model with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("Bhathiya/setfit-model")
    model = AutoModelForMultimodalLM.from_pretrained("Bhathiya/setfit-model")
  • Notebooks
  • Google Colab
  • Kaggle
setfit-model
439 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
hsbathiya's picture
hsbathiya
Add SetFit model
21a5a3a over 3 years ago
  • 1_Pooling
    Add SetFit model over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    3.69 kB
    Add SetFit model over 3 years ago
  • config.json
    668 Bytes
    Add SetFit model over 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add SetFit model over 3 years ago
  • model_head.pkl

    Detected Pickle imports (8)

    • "torch._utils._rebuild_tensor_v2",
    • "setfit.modeling.SetFitHead",
    • "torch.storage._load_from_bytes",
    • "torch.device",
    • "torch.nn.modules.linear.Linear",
    • "builtins.set",
    • "torch._utils._rebuild_parameter",
    • "collections.OrderedDict"

    How to fix it?

    7.59 kB
    xet
    Add SetFit model over 3 years ago
  • modules.json
    229 Bytes
    Add SetFit model over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    Add SetFit model over 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add SetFit model over 3 years ago
  • special_tokens_map.json
    280 Bytes
    Add SetFit model over 3 years ago
  • tokenizer.json
    712 kB
    Add SetFit model over 3 years ago
  • tokenizer_config.json
    1.51 kB
    Add SetFit model over 3 years ago
  • vocab.txt
    232 kB
    Add SetFit model over 3 years ago