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

johnpaulbin
/
toxicity-setfit-1

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

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

  • Libraries
  • setfit

    How to use johnpaulbin/toxicity-setfit-1 with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("johnpaulbin/toxicity-setfit-1")
  • sentence-transformers

    How to use johnpaulbin/toxicity-setfit-1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("johnpaulbin/toxicity-setfit-1")
    
    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
toxicity-setfit-1
596 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
johnpaulbin's picture
johnpaulbin
Add SetFit model
fec1d16 verified 4 months ago
  • 1_Pooling
    Add SetFit model 4 months ago
  • .gitattributes
    1.57 kB
    Add SetFit model 4 months ago
  • README.md
    7.36 kB
    Add SetFit model 4 months ago
  • config.json
    1.21 kB
    Add SetFit model 4 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add SetFit model 4 months ago
  • config_setfit.json
    83 Bytes
    Add SetFit model 4 months ago
  • model.safetensors
    562 MB
    xet
    Add SetFit model 4 months ago
  • model_head.pkl
    3.94 kB
    xet
    Add SetFit model 4 months ago
  • modules.json
    229 Bytes
    Add SetFit model 4 months ago
  • sentence_bert_config.json
    58 Bytes
    Add SetFit model 4 months ago
  • special_tokens_map.json
    1.05 kB
    Add SetFit model 4 months ago
  • tokenizer.json
    34.4 MB
    xet
    Add SetFit model 4 months ago
  • tokenizer_config.json
    46.5 kB
    Add SetFit model 4 months ago