Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

zeroshot
/
sst2-distilbert-sparse

Text Classification
Transformers
ONNX
distilbert
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use zeroshot/sst2-distilbert-sparse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use zeroshot/sst2-distilbert-sparse with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="zeroshot/sst2-distilbert-sparse")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("zeroshot/sst2-distilbert-sparse")
    model = AutoModelForSequenceClassification.from_pretrained("zeroshot/sst2-distilbert-sparse")
  • Notebooks
  • Google Colab
  • Kaggle
sst2-distilbert-sparse
67.9 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 34 commits
zeroshot's picture
zeroshot
remove test
f768f2b over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • .gitignore
    11 Bytes
    add scheduler over 3 years ago
  • README.md
    2.18 kB
    remove test over 3 years ago
  • config.json
    815 Bytes
    seperate files over 3 years ago
  • handler.py
    729 Bytes
    add scheduler over 3 years ago
  • model.onnx
    67.2 MB
    xet
    seperate files over 3 years ago
  • requirements.txt
    17 Bytes
    push files over 3 years ago
  • tokenizer.json
    711 kB
    seperate files over 3 years ago
  • tokenizer_config.json
    353 Bytes
    seperate files over 3 years ago