Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • 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 / onnx
Ctrl+K
Ctrl+K
  • 15 contributors
History: 1 commit
fxmarty's picture
fxmarty
Add ONNX weights (#13)
df1b051 almost 3 years ago
  • decoder_model.onnx
    232 MB
    xet
    Add ONNX weights (#13) almost 3 years ago
  • decoder_model_merged.onnx
    233 MB
    xet
    Add ONNX weights (#13) almost 3 years ago
  • decoder_model_merged_quantized.onnx
    58.7 MB
    xet
    Add ONNX weights (#13) almost 3 years ago
  • decoder_model_quantized.onnx
    58.4 MB
    xet
    Add ONNX weights (#13) almost 3 years ago
  • decoder_with_past_model.onnx
    220 MB
    xet
    Add ONNX weights (#13) almost 3 years ago
  • decoder_with_past_model_quantized.onnx
    55.2 MB
    xet
    Add ONNX weights (#13) almost 3 years ago
  • encoder_model.onnx
    141 MB
    xet
    Add ONNX weights (#13) almost 3 years ago
  • encoder_model_quantized.onnx
    35.5 MB
    xet
    Add ONNX weights (#13) almost 3 years ago