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

Saliltrehan7
/
setfit-bge-small-v1.5-sst2-10-shot

Text Classification
setfit
Safetensors
sentence-transformers
bert
generated_from_setfit_trainer
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use Saliltrehan7/setfit-bge-small-v1.5-sst2-10-shot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • setfit

    How to use Saliltrehan7/setfit-bge-small-v1.5-sst2-10-shot with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("Saliltrehan7/setfit-bge-small-v1.5-sst2-10-shot")
  • sentence-transformers

    How to use Saliltrehan7/setfit-bge-small-v1.5-sst2-10-shot with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Saliltrehan7/setfit-bge-small-v1.5-sst2-10-shot")
    
    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
setfit-bge-small-v1.5-sst2-10-shot
1.52 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Saliltrehan7's picture
Saliltrehan7
initial commit
5913c0f verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago