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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Thi144
/
sentiment-distilbert-7class

Text Classification
Transformers
Safetensors
PyTorch
English
distilbert
sentiment-analysis
Model card Files Files and versions
xet
Community

Instructions to use Thi144/sentiment-distilbert-7class with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Thi144/sentiment-distilbert-7class with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="Thi144/sentiment-distilbert-7class")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("Thi144/sentiment-distilbert-7class")
    model = AutoModelForSequenceClassification.from_pretrained("Thi144/sentiment-distilbert-7class", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
sentiment-distilbert-7class
536 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
Thi144's picture
Thi144
Add model documentation
6647635 verified 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    5.26 kB
    Add model documentation 8 months ago
  • config.json
    869 Bytes
    Add config.json 8 months ago
  • confusion_matrix_7class.png
    51.9 kB
    Add confusion_matrix_7class.png 8 months ago
  • metrics_7class.json
    670 Bytes
    Add metrics_7class.json 8 months ago
  • model.safetensors
    268 MB
    xet
    Add model.safetensors 8 months ago
  • model_7class.pkl

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.storage._load_from_bytes",
    • "collections.OrderedDict"

    How to fix it?

    268 MB
    xet
    Add model_7class.pkl 8 months ago
  • special_tokens_map.json
    125 Bytes
    Add special_tokens_map.json 8 months ago
  • tokenizer_config.json
    1.28 kB
    Add tokenizer_config.json 8 months ago
  • vocab.txt
    232 kB
    Add vocab.txt 8 months ago