SAVRN
Search Contact SAVRN

Open-weight model

mt5-small

by Google google/mt5-small

mT5 is pretrained on the mC4 corpus, covering 101 languages: Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Burmese, Catalan, Cebuano, Chichewa, Chinese, Corsican, Czech, Danish, Dutch, English, Esperanto…

Parameters
Context
Weights7.6 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads252k

Model Card

By Google, published under apache-2.0, revision 73fb5dbe4756.

mT5 is pretrained on the mC4 corpus, covering 101 languages: Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Burmese, Catalan, Cebuano, Chichewa, Chinese, Corsican, Czech, Danish, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Korean, Kurdish, Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Nepali, Norwegian, Pashto, Persian, Polish…

Read Google's full model card

Google's mT5

mT5 is pretrained on the mC4 corpus, covering 101 languages:

Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Burmese, Catalan, Cebuano, Chichewa, Chinese, Corsican, Czech, Danish, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Korean, Kurdish, Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Nepali, Norwegian, Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Samoan, Scottish Gaelic, Serbian, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Sotho, Spanish, Sundanese, Swahili, Swedish, Tajik, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Uzbek, Vietnamese, Welsh, West Frisian, Xhosa, Yiddish, Yoruba, Zulu.

Note: mT5 was only pre-trained on mC4 excluding any supervised training. Therefore, this model has to be fine-tuned before it is useable on a downstream task.

Pretraining Dataset: mC4

Other Community Checkpoints: here

Paper: mT5: A massively multilingual pre-trained text-to-text transformer

Authors: Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, Colin Raffel

Abstract

The recent "Text-to-Text Transfer Transformer" (T5) leveraged a unified text-to-text format and scale to attain state-of-the-art results on a wide variety of English-language NLP tasks. In this paper, we introduce mT5, a multilingual variant of T5 that was pre-trained on a new Common Crawl-based dataset covering 101 languages. We describe the design and modified training of mT5 and demonstrate its state-of-the-art performance on many multilingual benchmarks. All of the code and model checkpoints used in this work are publicly available.

Configuration

Architecture
MT5ForConditionalGeneration
Vocabulary size
250,112
Model type
mt5

Identity and Version

Repository
google/mt5-small
Publisher
Google
Task
Not stated by the source
Modality
Other
Library
transformers
Parameters
Not stated by the source
Languages
af, am, ar, az, be, bg, bn, ca
Revision
73fb5dbe4756edadc8fbe8c769b0a109493acf7a
First published
2022-03-02
Last updated
2023-09-18

Files and Weights

20 files, 7.6 GB in total. The weights are 7 files totalling 7.6 GB in bin, h5, msgpack, onnx.

Weights7 files · 7.6 GB
Configuration6 files · 1.8 KB
Tokenizer5 files · 25.0 MB
Documentation1 file · 2.8 KB
Repository1 file · 501 B
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights1.2 GB da6165663a12
onnx/decoder_model.onnxWeights1.1 GB 9fab5238e877
onnx/decoder_model_merged.onnxWeights1.1 GB 954a0ef0b71f
onnx/decoder_with_past_model.onnxWeights1.1 GB 11fd7060e629
onnx/encoder_model.onnxWeights587.9 MB 703c80852443
pytorch_model.binWeights1.2 GB 9daa76f0231b
tf_model.h5Weights1.2 GB 86f42d8a31f0
config.jsonConfiguration553 B
generation_config.jsonConfiguration147 B
onnx/config.jsonConfiguration745 B
onnx/generation_config.jsonConfiguration142 B
onnx/special_tokens_map.jsonConfiguration74 B
special_tokens_map.jsonConfiguration99 B
README.mdDocumentation2.8 KB
.gitattributesRepository501 B
onnx/spiece.modelTokenizer4.3 MB ef78f86560d8
onnx/tokenizer.jsonTokenizer16.3 MB 93c3578052e1
onnx/tokenizer_config.jsonTokenizer285 B
spiece.modelTokenizer4.3 MB
tokenizer_config.jsonTokenizer82 B

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
7.6 GB
Download from Google

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

Built From

Memory Requirements

PrecisionWeights in memory
As published7.6 GB

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

Questions About mt5-small

Can I use mt5-small commercially?

Yes. mt5-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.