/var/folders/lm/k69sycyx5538ldsk5n0ln5000000gn/T/tmp7vmgfud9/killshot977/intents-setfit-model

This is a SetFit model that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:

  1. Fine-tuning a Sentence Transformer with contrastive learning.
  2. Training a classification head with features from the fine-tuned Sentence Transformer.

Usage

To use this model for inference, first install the SetFit library:

python -m pip install setfit

You can then run inference as follows:

from setfit import SetFitModel

# Download from Hub and run inference
model = SetFitModel.from_pretrained("/var/folders/lm/k69sycyx5538ldsk5n0ln5000000gn/T/tmp7vmgfud9/killshot977/intents-setfit-model")
# Run inference
preds = model(["I want to tour this community","do you have a 1 bedroom", "what is your availability",  "can i visit this place?", "you really did me a solid!"])
print(preds)
Downloads last month
6
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The HF Inference API does not support text-classification models for sentence-transformers library.