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

  • Log In
  • Sign Up

Toflamus
/
gpt2_pretrained

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

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

  • Libraries
  • Transformers

    How to use Toflamus/gpt2_pretrained with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="Toflamus/gpt2_pretrained")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("Toflamus/gpt2_pretrained")
    model = AutoModel.from_pretrained("Toflamus/gpt2_pretrained")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2_pretrained
17.7 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
Toflamus's picture
Toflamus
Upload tokenizer
9e54e65 over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • config.json
    923 Bytes
    Upload model over 2 years ago
  • merges.txt
    456 kB
    Upload tokenizer over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    14.4 MB
    xet
    Upload model over 2 years ago
  • special_tokens_map.json
    99 Bytes
    Upload tokenizer over 2 years ago
  • tokenizer.json
    2.11 MB
    Upload tokenizer over 2 years ago
  • tokenizer_config.json
    234 Bytes
    Upload tokenizer over 2 years ago
  • vocab.json
    798 kB
    Upload tokenizer over 2 years ago