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
Download task.weights.h5 from samanehs/gpt2_imdb: direct link, hf CLI and curl.
- Browser
- Download file 52.8 MB
-
https://huggingface.co/samanehs/gpt2_imdb/resolve/refs%2Fpr%2F1/task.weights.h5
- Command line
-
hf download hf://samanehs/gpt2_imdb@refs/pr/1/task.weights.h5
-
curl -L -o task.weights.h5 https://huggingface.co/samanehs/gpt2_imdb/resolve/refs%2Fpr%2F1/task.weights.h5
52.8 MB
- Xet hash:
- 5c8bd6ad0c64eabb2dce9c9396f91ef2d9394cbe3a9775767f011b914d0487d5
- Size of remote file:
- 52.8 MB
- SHA256:
- bb6e04f49859cc11d6fe47a002594165a9082f5e13182fe60a0b83575c10b439
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.