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

optimum
/
t5-small

Translation
Transformers
ONNX
t5
text2text-generation
summarization
Model card Files Files and versions
xet
Community
2

Instructions to use optimum/t5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use optimum/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="optimum/t5-small")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("optimum/t5-small")
    model = AutoModelForSeq2SeqLM.from_pretrained("optimum/t5-small")
  • Notebooks
  • Google Colab
  • Kaggle
t5-small
596 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 10 commits
Michael Benayoun
Update with optimum-cli export
c5c8ea1 over 3 years ago
  • .gitattributes
    1.17 kB
    initial commit almost 4 years ago
  • README.md
    1.26 kB
    Add multilingual to the language tag (#2) over 3 years ago
  • config.json
    1.45 kB
    Update with optimum-cli export over 3 years ago
  • decoder_model.onnx
    232 MB
    xet
    Update with optimum-cli export over 3 years ago
  • decoder_with_past_model.onnx
    220 MB
    xet
    Update with optimum-cli export over 3 years ago
  • encoder_model.onnx
    141 MB
    xet
    Update with optimum-cli export over 3 years ago
  • special_tokens_map.json
    2.2 kB
    Update with optimum-cli export over 3 years ago
  • tokenizer.json
    2.42 MB
    Update with optimum-cli export over 3 years ago
  • tokenizer_config.json
    2.35 kB
    Update with optimum-cli export over 3 years ago