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

  • Log In
  • Sign Up

entfane
/
gpt2_constitutional_classifier_violence

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

Instructions to use entfane/gpt2_constitutional_classifier_violence with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use entfane/gpt2_constitutional_classifier_violence with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="entfane/gpt2_constitutional_classifier_violence")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("entfane/gpt2_constitutional_classifier_violence")
    model = AutoModelForSequenceClassification.from_pretrained("entfane/gpt2_constitutional_classifier_violence")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2_constitutional_classifier_violence
501 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
entfane's picture
entfane
Upload tokenizer
1da51f1 verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    5.17 kB
    Upload GPT2ForSequenceClassification about 1 month ago
  • chat_template.jinja
    280 Bytes
    Upload tokenizer about 1 month ago
  • config.json
    1.05 kB
    Upload GPT2ForSequenceClassification about 1 month ago
  • model.safetensors
    498 MB
    xet
    Upload GPT2ForSequenceClassification about 1 month ago
  • tokenizer.json
    3.56 MB
    Upload tokenizer about 1 month ago
  • tokenizer_config.json
    297 Bytes
    Upload tokenizer about 1 month ago