Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

google-t5
/
t5-small

Translation
Transformers
PyTorch
google-tensorflow TensorFlow
JAX
Rust
ONNX
Safetensors
t5
text2text-generation
summarization
text-generation-inference
Model card Files Files and versions
xet
Community
33

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")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("google-t5/t5-small")
    model = AutoModelForSeq2SeqLM.from_pretrained("google-t5/t5-small")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
t5-small
2.25 GB
Ctrl+K
Ctrl+K
  • 15 contributors
History: 32 commits
fxmarty's picture
fxmarty
Xenova's picture
Xenova HF Staff
Add ONNX weights (#13)
df1b051 almost 3 years ago
  • onnx
    Add ONNX weights (#13) almost 3 years ago
  • .gitattributes
    537 Bytes
    Adding `safetensors` variant of this model (#11) about 3 years ago
  • README.md
    8.47 kB
    Add "multilingual" to the language tag (#9) over 3 years ago
  • config.json
    1.21 kB
    fix format (#8) over 3 years ago
  • flax_model.msgpack
    242 MB
    xet
    upload flax model almost 5 years ago
  • generation_config.json
    147 Bytes
    Adding generation config file(s) over 3 years ago
  • model.safetensors
    242 MB
    xet
    Adding `safetensors` variant of this model (#11) about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict",
    • "torch.FloatStorage"

    What is a pickle import?

    242 MB
    xet
    Update pytorch_model.bin almost 6 years ago
  • rust_model.ot
    242 MB
    xet
    addition of Rust model over 5 years ago
  • spiece.model
    792 kB
    Add tokenizer files over 5 years ago
  • tf_model.h5
    242 MB
    xet
    Update tf_model.h5 over 6 years ago
  • tokenizer.json
    1.39 MB
    Update tokenizer.json over 5 years ago
  • tokenizer_config.json
    2.32 kB
    Add `tokenizer_config.json` file, exported with `.save_pretrained()` (#14) about 3 years ago