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

  • Log In
  • Sign Up

google-t5
/
t5-3b

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

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

  • Libraries
  • Transformers

    How to use google-t5/t5-3b 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-3b")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelWithLMHead
    
    tokenizer = AutoTokenizer.from_pretrained("google-t5/t5-3b")
    model = AutoModelWithLMHead.from_pretrained("google-t5/t5-3b")
  • Notebooks
  • Google Colab
  • Kaggle
t5-3b
Ctrl+K
Ctrl+K
  • 10 contributors
History: 18 commits
lysandre's picture
lysandre HF Staff
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#6)
bed96aa verified over 2 years ago
  • .gitattributes
    399 Bytes
    Adding `safetensors` variant of this model (#6) over 2 years ago
  • README.md
    7.87 kB
    Add "multilingual" to the language tag (#3) over 3 years ago
  • config.json
    1.2 kB
    Update config.json about 6 years ago
  • model.safetensors
    11.4 GB
    xet
    Adding `safetensors` variant of this model (#6) over 2 years ago
  • pytorch_model.bin
    11.4 GB
    xet
    Update pytorch_model.bin over 6 years ago
  • spiece.model
    792 kB
    Add tokenizer files over 5 years ago
  • tf_model.h5
    11.4 GB
    xet
    Update tf_model.h5 over 6 years ago
  • tokenizer.json
    1.39 MB
    Update tokenizer.json over 5 years ago