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:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://samanehs/gpt2_imdb") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- metadata.json +1 -1
- model.weights.h5 +1 -1
metadata.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"keras_version": "3.3.3",
|
| 3 |
"keras_nlp_version": "0.10.0",
|
| 4 |
"parameter_count": 124439808,
|
| 5 |
-
"date_saved": "2024-05-02@
|
| 6 |
}
|
|
|
|
| 2 |
"keras_version": "3.3.3",
|
| 3 |
"keras_nlp_version": "0.10.0",
|
| 4 |
"parameter_count": 124439808,
|
| 5 |
+
"date_saved": "2024-05-02@01:13:08"
|
| 6 |
}
|
model.weights.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 498160592
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73faf6047a426161b11cb2a39ff951e04e42e6fc756038fef31b32e3a631b699
|
| 3 |
size 498160592
|