Instructions to use optimum-internal-testing/tiny-random-mt5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum-internal-testing/tiny-random-mt5 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("optimum-internal-testing/tiny-random-mt5") model = AutoModelForSeq2SeqLM.from_pretrained("optimum-internal-testing/tiny-random-mt5") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
"is_gated_act": true,
|
| 20 |
"layer_norm_epsilon": 1e-06,
|
| 21 |
"model_type": "mt5",
|
| 22 |
-
"num_decoder_layers":
|
| 23 |
"num_heads": 4,
|
| 24 |
"num_layers": 2,
|
| 25 |
"pad_token_id": 0,
|
|
|
|
| 19 |
"is_gated_act": true,
|
| 20 |
"layer_norm_epsilon": 1e-06,
|
| 21 |
"model_type": "mt5",
|
| 22 |
+
"num_decoder_layers": 2,
|
| 23 |
"num_heads": 4,
|
| 24 |
"num_layers": 2,
|
| 25 |
"pad_token_id": 0,
|