SAVRN
Search Contact SAVRN

Open-weight model · Translation

t5-small

by Hugging Face Optimum optimum/t5-small

T5 is an encoder-decoder model pre-trained on a multi-task mixture of unsupervised and supervised tasks and for which each task is converted into a text-to-text format. For more information, please take a look at the original paper.

Parameters
Context
Weights593.8 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads7.6k

Model Card

By Hugging Face Optimum, published under apache-2.0, revision c5c8ea1bc3f5.

T5 is an encoder-decoder model pre-trained on a multi-task mixture of unsupervised and supervised tasks and for which each task is converted into a text-to-text format. For more information, please take a look at the original paper. Paper: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer Authors: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu You can use this model with Transformers pipeline.

Read Hugging Face Optimum's full model card

t5-small exported to the ONNX format

Model description

T5 is an encoder-decoder model pre-trained on a multi-task mixture of unsupervised and supervised tasks and for which each task is converted into a text-to-text format.

For more information, please take a look at the original paper.

Paper: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

Authors: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu

Usage example

You can use this model with Transformers pipeline.

from transformers import AutoTokenizer, pipeline
from optimum.onnxruntime import ORTModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("optimum/t5-small")
model = ORTModelForSeq2SeqLM.from_pretrained("optimum/t5-small")
translator = pipeline("translation_en_to_fr", model=model, tokenizer=tokenizer)
results = translator("My name is Eustache and I have a pet raccoon")
print(results)

Configuration

Architecture
T5ForConditionalGeneration
Vocabulary size
32,128
Model type
t5

Identity and Version

Repository
optimum/t5-small
Publisher
Hugging Face Optimum
Task
Translation
Modality
Text
Library
transformers
Parameters
Not stated by the source
Languages
en, fr, ro, de
Revision
c5c8ea1bc3f5940643d88d792094e851fa80e06f
First published
2022-06-20
Last updated
2023-01-19

Files and Weights

9 files, 596.2 MB in total. The weights are 3 files totalling 593.8 MB in onnx.

Weights3 files · 593.8 MB
Configuration2 files · 3.6 KB
Tokenizer2 files · 2.4 MB
Documentation1 file · 1.3 KB
Repository1 file · 1.2 KB
Every file
FileTypeSizeSHA-256
decoder_model.onnxWeights232.5 MB 0a1451011d61
decoder_with_past_model.onnxWeights219.9 MB 898caba53668
encoder_model.onnxWeights141.4 MB 41d326633f1b
config.jsonConfiguration1.4 KB
special_tokens_map.jsonConfiguration2.2 KB
README.mdDocumentation1.3 KB
.gitattributesRepository1.2 KB
tokenizer.jsonTokenizer2.4 MB
tokenizer_config.jsonTokenizer2.3 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
593.8 MB
Download from Hugging Face Optimum

Released by Hugging Face Optimum through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published593.8 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About t5-small

Can I use t5-small commercially?

Yes. t5-small is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

source languages: nl; target languages: en; OPUS readme: nl-en; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers

Model · Translation

nllb-200-distilled-600M

AI at Meta

This is the model card of NLLB-200's distilled 600M variant. Here are the metrics for that particular checkpoint. - Information about training algorithms, parameters, fairness constraints or other applied approaches, and features. The exact training algorithm, data and the strategies to handle data imbalances for high and low resource languages that were used to train NLLB-200 is described in the paper. - Paper or other resource for more information NLLB Team et al, No Language Left Behind: Scaling Human-Centered Machine Translation, Arxiv, 2022 - Where to send questions or comments about the model: https://github.com/facebookresearch/fairseq/issues • Model performance measures: NLLB-200…

Open weights cc-by-nc-4.0 1,024 tokens transformers

source languages: en; target languages: ru; OPUS readme: en-ru; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers

This model can be used for translation and text-to-text generation. CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Further details about the dataset for this model can be found in the OPUS readme: en-de

Open weights cc-by-4.0 512 tokens transformers

hfname: kor-eng - sourcelanguages: kor - targetlanguages: eng - opusreadmeurl: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/kor-eng/README.md - originalrepo: Tatoeba-Challenge - srcconstituents: {'korHani', 'korHang', 'korLatn', 'kor'} - tgtconstituents: {'eng'} - srcmultilingual: False - tgtmultilingual: False - urlmodel: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.zip - urltestset: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.test.txt - srcalpha3: kor - tgtalpha3: eng - shortpair: ko-en - chrF2score: 0.588 - brevitypenalty: 0.9590000000000001 - reflen: 17711.0 - srcname: Korean - tgtname: English - traindate…

Open weights apache-2.0 512 tokens transformers

source languages: de; target languages: en; OPUS readme: de-en; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers