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

  • Log In
  • Sign Up

samanehs
/
gpt2

Text Generation
KerasHub
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • KerasHub

    How to use samanehs/gpt2 with KerasHub:

    import keras_hub
    
    # Create a Backbone model unspecialized for any task
    backbone = keras_hub.models.Backbone.from_preset("hf://samanehs/gpt2")
    
  • Keras

    How to use samanehs/gpt2 with Keras:

    # Available backend options are: "jax", "torch", "tensorflow".
    import os
    os.environ["KERAS_BACKEND"] = "jax"
    
    import keras
    
    model = keras.saving.load_model("hf://samanehs/gpt2")
    
  • Notebooks
  • Google Colab
  • Kaggle
gpt2 / assets /tokenizer
1.5 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
samanehs's picture
samanehs
Upload folder using huggingface_hub
a5a6878 verified about 2 years ago
  • merges.txt
    456 kB
    Upload folder using huggingface_hub about 2 years ago
  • vocabulary.json
    1.04 MB
    Upload folder using huggingface_hub about 2 years ago