Instructions to use samanehs/gpt2_imdb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use samanehs/gpt2_imdb with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://samanehs/gpt2_imdb") - Keras
How to use samanehs/gpt2_imdb with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://samanehs/gpt2_imdb") - Notebooks
- Google Colab
- Kaggle
Commit History
-
keras-hub migration (#1)
Verified signature- keras hub migration (65071da522ff201eab0f2533714138467302a3c1) Co-authored-by: Martin Görner <martin-gorner@users.noreply.huggingface.co>2ee779f
-
Upload folder using huggingface_hub
Verified signature59d994b -
Upload folder using huggingface_hub
Verified signature5fb9b18 -
Upload folder using huggingface_hub
Verified signaturec7f80ee
-
Upload folder using huggingface_hub
Verified signature5b2b9e0 -
Upload folder using huggingface_hub
Verified signature549e20a -
Upload folder using huggingface_hub
Verified signature0334326 -
Upload folder using huggingface_hub
Verified signature7feb9b7 -
Upload folder using huggingface_hub
Verified signatureeda7454 -
Upload folder using huggingface_hub
Verified signature5567e23 -
initial commit
Verified signature3ff8cb6