Instructions to use zeromodels/t5_11b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/t5_11b with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/t5_11b") - Keras
How to use zeromodels/t5_11b 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://zeromodels/t5_11b") - Notebooks
- Google Colab
- Kaggle
Fix Collection badge link to the current zeromodels collection slug
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ tags:
|
|
| 20 |
|
| 21 |
# T5-11b in Keras 3: JAX, PyTorch, or TensorFlow
|
| 22 |
|
| 23 |
-
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/t5/) [](https://huggingface.co/collections/zeromodels/t5-
|
| 24 |
|
| 25 |
# zeromodels/t5_11b
|
| 26 |
|
|
@@ -48,7 +48,7 @@ output_ids = model.generate(
|
|
| 48 |
print(tokenizer.decode(output_ids[0]))
|
| 49 |
```
|
| 50 |
|
| 51 |
-
Load any T5 variant the same way with `from_weights("zeromodels/<variant>")`. Browse them all in the [T5 collection](https://huggingface.co/collections/zeromodels/t5-
|
| 52 |
|
| 53 |
## Available classes
|
| 54 |
|
|
|
|
| 20 |
|
| 21 |
# T5-11b in Keras 3: JAX, PyTorch, or TensorFlow
|
| 22 |
|
| 23 |
+
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/t5/) [](https://huggingface.co/collections/zeromodels/t5-6a8eadfe1bec6ae9ffc24c7f)
|
| 24 |
|
| 25 |
# zeromodels/t5_11b
|
| 26 |
|
|
|
|
| 48 |
print(tokenizer.decode(output_ids[0]))
|
| 49 |
```
|
| 50 |
|
| 51 |
+
Load any T5 variant the same way with `from_weights("zeromodels/<variant>")`. Browse them all in the [T5 collection](https://huggingface.co/collections/zeromodels/t5-6a8eadfe1bec6ae9ffc24c7f).
|
| 52 |
|
| 53 |
## Available classes
|
| 54 |
|