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

lvwerra
/
gpt2-imdb-ctrl

Transformers
PyTorch
gpt2
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use lvwerra/gpt2-imdb-ctrl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use lvwerra/gpt2-imdb-ctrl with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("lvwerra/gpt2-imdb-ctrl")
    model = AutoModel.from_pretrained("lvwerra/gpt2-imdb-ctrl")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2-imdb-ctrl
549 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 10 commits
patrickvonplaten's picture
patrickvonplaten
allow flax
7bca8f5 almost 5 years ago
  • .gitattributes
    391 Bytes
    allow flax almost 5 years ago
  • README.md
    1.72 kB
    Migrate model card from transformers-repo over 5 years ago
  • config.json
    682 Bytes
    Update config.json about 6 years ago
  • merges.txt
    456 kB
    Update merges.txt about 6 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    548 MB
    xet
    Update pytorch_model.bin about 6 years ago
  • special_tokens_map.json
    90 Bytes
    Update special_tokens_map.json about 6 years ago
  • tokenizer_config.json
    17 Bytes
    Update tokenizer_config.json about 6 years ago
  • vocab.json
    899 kB
    Update vocab.json about 6 years ago