Instructions to use zeromodels/t5_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/t5_base with KerasFormers:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Keras
How to use zeromodels/t5_base with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/t5_base") - Notebooks
- Google Colab
- Kaggle
File size: 736 Bytes
56bed4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | {
"library_name": "kerasformers",
"kerasformers_version": "1.2.4",
"model_module": "kerasformers.models.t5",
"model_class": "T5Model",
"variant": "t5_base",
"weights": "model.weights.h5",
"schema_version": 2,
"weight_dtype": "float32",
"model_type": "t5",
"text_config": {
"vocab_size": 32128,
"embed_dim": 768,
"key_value_dim": 64,
"mlp_dim": 3072,
"num_layers": 12,
"num_decoder_layers": 12,
"num_heads": 12,
"relative_attention_num_buckets": 32,
"relative_attention_max_distance": 128,
"hidden_act": "relu",
"layer_norm_eps": 1e-06,
"dropout": 0.1,
"tie_word_embeddings": true,
"pad_token_id": 0,
"eos_token_id": 1,
"decoder_start_token_id": 0
}
} |