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

shhossain
/
all-MiniLM-L6-v2-sentiment-classifier

Text Classification
Transformers
PyTorch
Safetensors
English
SententenceTransformerSentimentClassifier
custom_code
Model card Files Files and versions
xet
Community
1

Instructions to use shhossain/all-MiniLM-L6-v2-sentiment-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use shhossain/all-MiniLM-L6-v2-sentiment-classifier with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="shhossain/all-MiniLM-L6-v2-sentiment-classifier", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForSequenceClassification
    model = AutoModelForSequenceClassification.from_pretrained("shhossain/all-MiniLM-L6-v2-sentiment-classifier", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
all-MiniLM-L6-v2-sentiment-classifier
163 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 22 commits
shhossain's picture
shhossain
Update README.md
ce66b52 verified over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    1.46 kB
    Update README.md over 2 years ago
  • config.json
    947 Bytes
    Upload folder using huggingface_hub over 2 years ago
  • model.py
    1.08 kB
    Upload config over 2 years ago
  • model.safetensors
    77.6 kB
    xet
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    79.1 kB
    xet
    Upload model over 2 years ago
  • sentpipeline.py
    993 Bytes
    Update sentpipeline.py over 2 years ago