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

michelecafagna26
/
gpt2-medium-finetuned-sst2-sentiment

Text Classification
Transformers
PyTorch
Safetensors
English
gpt2
Model card Files Files and versions
xet
Community
2

Instructions to use michelecafagna26/gpt2-medium-finetuned-sst2-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use michelecafagna26/gpt2-medium-finetuned-sst2-sentiment with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="michelecafagna26/gpt2-medium-finetuned-sst2-sentiment")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("michelecafagna26/gpt2-medium-finetuned-sst2-sentiment")
    model = AutoModelForSequenceClassification.from_pretrained("michelecafagna26/gpt2-medium-finetuned-sst2-sentiment", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2-medium-finetuned-sst2-sentiment
2.89 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 7 commits
michelecafagna26's picture
michelecafagna26
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
acef463 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    1.78 kB
    Update README.md over 3 years ago
  • config.json
    1.18 kB
    Update config.json over 3 years ago
  • merges.txt
    456 kB
    Upload 6 files over 3 years ago
  • model.safetensors
    1.44 GB
    xet
    Adding `safetensors` variant of this model (#1) over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    1.44 GB
    xet
    Upload 6 files over 3 years ago
  • special_tokens_map.json
    470 Bytes
    Upload 6 files over 3 years ago
  • tokenizer_config.json
    755 Bytes
    Upload 6 files over 3 years ago
  • vocab.json
    999 kB
    Upload 6 files over 3 years ago