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-large

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

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

  • Libraries
  • Transformers

    How to use google-t5/t5-large 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-large")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("google-t5/t5-large")
    model = AutoModelForSeq2SeqLM.from_pretrained("google-t5/t5-large")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
t5-large / coreml /text2text-generation
3.22 GB
Ctrl+K
Ctrl+K
  • 11 contributors
History: 1 commit
Guido Marinelli
Add Core ML conversion
dbef6b8 almost 3 years ago
  • decoder_float32_model.mlpackage
    Add Core ML conversion almost 3 years ago
  • encoder_float32_model.mlpackage
    Add Core ML conversion almost 3 years ago