Instructions to use patrickvonplaten/t5-tiny-random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use patrickvonplaten/t5-tiny-random with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("patrickvonplaten/t5-tiny-random") model = AutoModelForSeq2SeqLM.from_pretrained("patrickvonplaten/t5-tiny-random", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
bd8eef8
1
Parent(s): 06aef92
Changed max_length to 10
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
| 11 |
"initializer_factor": 1.0,
|
| 12 |
"is_encoder_decoder": true,
|
| 13 |
"layer_norm_epsilon": 1e-06,
|
|
|
|
| 14 |
"model_type": "t5",
|
| 15 |
"n_positions": 512,
|
| 16 |
"num_heads": 2,
|
|
@@ -48,4 +49,4 @@
|
|
| 48 |
}
|
| 49 |
},
|
| 50 |
"vocab_size": 32128
|
| 51 |
-
}
|
|
|
|
| 11 |
"initializer_factor": 1.0,
|
| 12 |
"is_encoder_decoder": true,
|
| 13 |
"layer_norm_epsilon": 1e-06,
|
| 14 |
+
"max_length": 10,
|
| 15 |
"model_type": "t5",
|
| 16 |
"n_positions": 512,
|
| 17 |
"num_heads": 2,
|
|
|
|
| 49 |
}
|
| 50 |
},
|
| 51 |
"vocab_size": 32128
|
| 52 |
+
}
|