Instructions to use google/mt5-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/mt5-xl with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/mt5-xl") model = AutoModelForSeq2SeqLM.from_pretrained("google/mt5-xl") - Notebooks
- Google Colab
- Kaggle
Commit ·
0e130cf
1
Parent(s): e91482a
add
Browse files- config.json +3 -1
config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "/home/patrick/t5/mt5-xl",
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
"d_ff": 5120,
|
| 7 |
"d_kv": 64,
|
|
@@ -22,5 +22,7 @@
|
|
| 22 |
"relative_attention_num_buckets": 32,
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"tokenizer_class": "T5Tokenizer",
|
|
|
|
|
|
|
| 25 |
"vocab_size": 250112
|
| 26 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "/home/patrick/t5/mt5-xl",
|
| 3 |
"architectures": [
|
| 4 |
+
"MT5ForConditionalGeneration"
|
| 5 |
],
|
| 6 |
"d_ff": 5120,
|
| 7 |
"d_kv": 64,
|
|
|
|
| 22 |
"relative_attention_num_buckets": 32,
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"tokenizer_class": "T5Tokenizer",
|
| 25 |
+
"transformers_version": "4.10.0.dev0",
|
| 26 |
+
"use_cache": true,
|
| 27 |
"vocab_size": 250112
|
| 28 |
}
|