Translation
Transformers
PyTorch
TensorFlow
JAX
Rust
ONNX
Safetensors
t5
text2text-generation
summarization
text-generation-inference
Instructions to use google-t5/t5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google-t5/t5-small 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-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google-t5/t5-small") model = AutoModelForSeq2SeqLM.from_pretrained("google-t5/t5-small", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature126f2a3
-
Add ONNX weights (#13)
- Add ONNX weights (c576b7b14e9857c134b8ce922e241d829b973f3c) Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>df1b051 -
remove wrongly exported onnx modle
Felix Marty4ef1586 -
Adding ONNX file of this model (#15)
- Adding ONNX file of this model (fa43e6f6a0ddad7ca6b3e80062d0608038e36323) Co-authored-by: Ivan Chung <ivan0703@users.noreply.huggingface.co>789a55f
-
Add `tokenizer_config.json` file, exported with `.save_pretrained()` (#14)
- Add `tokenizer_config.json` file, exported with `.save_pretrained()` (f7522dd5af0bce21ab019f17ce7681fe540af551) Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>ad26363
-
Adding `safetensors` variant of this model (#11)
- Adding `safetensors` variant of this model (c4750415faa32e1502e5c569a83e7479459756fc) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5bf53e1
-
Adding generation config file(s)
3479082
-
Add "multilingual" to the language tag (#9)
- Add "multilingual" to the language tag (08a9712ace3a93b376939d126c9e34e4b6fc97a0) - Update README.md (f06a2082663c72ad7b3b5749613f928f317d29a2) Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>9507060
-
fix format (#8)
- fix format (03bba03bb479ab752cbc62d8f0e3e534c11cea26) Co-authored-by: Félix Marty <fxmarty@users.noreply.huggingface.co>02bc355 -
Fix architecutre (#7)
- Fix architecutre (91ab3295459e5fcff3b6472bce4a3bb2a144b989) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>c2bea44
-
Add model card (#1)
- Add model card (98ffebbb27340ec1b1abd7c45da12c253ee1882a) Co-authored-by: Marissa Gerchick <Marissa@users.noreply.huggingface.co>d78aea1
-
Update README.md
d769bba
-
upload flax model
a3f81e0 -
allow flax
0523ed3 -
allow flax
9f1b74c -
allow flax
e150426
-
update languages to include fr/ro/de
255e6b7
-
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-small-README.md91d7529
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>bbf66eb
-
addition of Rust model
4c22576
-
Add tokenizer files
Julien Chaumondfddaf69
-
Update tokenizer.json
d0a119e
-
Update pytorch_model.bin
af1375a
-
Update config.json
3ac06c3
-
Update config.json
00f126a
-
Update config.json
b805fb5 -
Update config.json
8c5d40a
-
Update config.json
e87f2a0
-
Update modelcard.json
12cb34b
-
Update tf_model.h5
89453e7 -
Update config.json
0102e00
-
Update config.json
c9c2c8f -
initial commit
33c236b