Instructions to use anezatra/gpt2-n300 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use anezatra/gpt2-n300 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://anezatra/gpt2-n300") - Notebooks
- Google Colab
- Kaggle
Download encoder.json from anezatra/gpt2-n300: direct link, hf CLI and curl.
- Browser
- Download file 1.04 MB
-
https://huggingface.co/anezatra/gpt2-n300/resolve/main/encoder.json
- Command line
-
hf download hf://anezatra/gpt2-n300/encoder.json
-
curl -L -o encoder.json https://huggingface.co/anezatra/gpt2-n300/resolve/main/encoder.json
1.04 MB
File too large to display, you can check the raw version instead.