Translation
Transformers
PyTorch
TensorFlow
JAX
Rust
Safetensors
t5
text2text-generation
summarization
text-generation-inference
Instructions to use google-t5/t5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google-t5/t5-base with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="google-t5/t5-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google-t5/t5-base") model = AutoModelForSeq2SeqLM.from_pretrained("google-t5/t5-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding ONNX file of this model
Beep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [MaiAmin](https://huggingface.co/MaiAmin), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!4597e7e
-
Adding `safetensors` variant of this model (#11)
- Adding `safetensors` variant of this model (e2cdbf1187d349dfc8f0543cb96982c95005c3b7) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>fe6d9bf
-
Adding generation config file(s)
0db7e62
-
Use T5ForConditionalGeneration (#8)
- Use T5ForConditionalGeneration (6421ace5cab13343b167e259b63b7608bb2a40bf) Co-authored-by: Félix Marty <fxmarty@users.noreply.huggingface.co>a4986ab
-
Update model card (#3)
- Update model card (39bc9d8eb7fe9b7ca947fbfcf5667c7bf0897fac) Co-authored-by: Marissa Gerchick <Marissa@users.noreply.huggingface.co>23aa4f4
-
Update README.md
686f1db -
Update README.md
086bcba
-
upload flax model
7590d91 -
allow flax
8bc4e15 -
allow flax
42c3477 -
allow flax
d2707ad
-
update languages to include fr/ro/de
5a7ff2d
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/t5-base-README.md5886394
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>3422843
-
addition of Rust model
c233b9a
-
Add tokenizer files
Julien Chaumond0610b4d
-
Update tokenizer.json
ddf8af2
-
Update config.json
c185239
-
Update config.json
f611a04
-
Update config.json
4007124
-
Update config.json
06e82b5
-
Update modelcard.json
57bfc7e
-
Update config.json
666f4ee -
Update pytorch_model.bin
b75b6a8 -
Update tf_model.h5
2c80e13 -
initial commit
991a9da