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

echarlaix
/
t5-small-onnx

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

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

  • Libraries
  • Transformers

    How to use echarlaix/t5-small-onnx 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="echarlaix/t5-small-onnx")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("echarlaix/t5-small-onnx")
    model = AutoModelForSeq2SeqLM.from_pretrained("echarlaix/t5-small-onnx")
  • Notebooks
  • Google Colab
  • Kaggle
t5-small-onnx
632 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 10 commits
echarlaix's picture
echarlaix HF Staff
update model
212e67f over 2 years ago
  • .gitattributes
    1.17 kB
    initial commit about 4 years ago
  • README.md
    1.28 kB
    Add multilingual to the language tag (#1) over 2 years ago
  • added_tokens.json
    2.63 kB
    update model over 2 years ago
  • config.json
    1.47 kB
    update model over 2 years ago
  • decoder_model.onnx
    167 MB
    xet
    update model over 2 years ago
  • decoder_model_merged.onnx
    167 MB
    xet
    update model over 2 years ago
  • decoder_with_past_model.onnx
    154 MB
    xet
    update model over 2 years ago
  • encoder_model.onnx
    141 MB
    xet
    update model over 2 years ago
  • generation_config.json
    142 Bytes
    update model over 2 years ago
  • special_tokens_map.json
    2.2 kB
    update model over 2 years ago
  • spiece.model
    792 kB
    xet
    update model over 2 years ago
  • tokenizer.json
    2.42 MB
    update model over 2 years ago
  • tokenizer_config.json
    20.7 kB
    update model over 2 years ago