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

aieng-lab
/
gpt2-large_comment-type-python

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

Instructions to use aieng-lab/gpt2-large_comment-type-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use aieng-lab/gpt2-large_comment-type-python with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="aieng-lab/gpt2-large_comment-type-python")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("aieng-lab/gpt2-large_comment-type-python")
    model = AutoModelForSequenceClassification.from_pretrained("aieng-lab/gpt2-large_comment-type-python")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2-large_comment-type-python
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
fabiancpl's picture
fabiancpl
initial commit
2177663 verified 11 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago