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

  • Log In
  • Sign Up

ComCom
/
gpt2-medium

Feature Extraction
Transformers
PyTorch
gpt2
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use ComCom/gpt2-medium with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="ComCom/gpt2-medium")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("ComCom/gpt2-medium")
    model = AutoModel.from_pretrained("ComCom/gpt2-medium")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2-medium
1.45 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
pellto's picture
pellto
upload files about models
30a7125 over 4 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • README.md
    206 Bytes
    upload files about models over 4 years ago
  • config.json
    927 Bytes
    upload files about models over 4 years ago
  • merges.txt
    456 kB
    upload files about models over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    1.44 GB
    xet
    upload files about models over 4 years ago
  • tokenizer.json
    1.36 MB
    upload files about models over 4 years ago
  • vocab.json
    798 kB
    upload files about models over 4 years ago