Instructions to use keras/t5_small_multi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/t5_small_multi with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/t5_small_multi") - Keras
How to use keras/t5_small_multi 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://keras/t5_small_multi") - Notebooks
- Google Colab
- Kaggle
Update README.md with new model card content
Browse files5 unmodified lines678910111241 unmodified lines545556575 unmodified lines- keraspipeline_tag: text-generation---## Model Overview⚠️ T5 is currently only available via the `keras-hub-nightly` package. Use `pip install keras-hub-nightly` to try this model.T5 encoder-decoder backbone model.41 unmodified lineslayer normalization layers in the Transformer layers.- __tie_embedding_weights__: boolean. If `True`, the weights of the tokenembedding and the weights projecting language model outputs from`hidden_dim`5 unmodified lines678910111241 unmodified lines54555657585 unmodified lines- keraspipeline_tag: text-generation---### Model Overview⚠️ T5 is currently only available via the `keras-hub-nightly` package. Use `pip install keras-hub-nightly` to try this model.T5 encoder-decoder backbone model.41 unmodified lineslayer normalization layers in the Transformer layers.- __tie_embedding_weights__: boolean. If `True`, the weights of the tokenembedding and the weights projecting language model outputs from`hidden_dim`
README.md+3-2