Instructions to use sshleifer/bart-tiny-random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sshleifer/bart-tiny-random with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("sshleifer/bart-tiny-random") model = AutoModelForSeq2SeqLM.from_pretrained("sshleifer/bart-tiny-random") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
| 47 |
"num_return_sequences": 1,
|
| 48 |
"output_attentions": false,
|
| 49 |
"output_hidden_states": false,
|
| 50 |
-
"output_past":
|
| 51 |
"pad_token_id": 1,
|
| 52 |
"prefix": " ",
|
| 53 |
"pruned_heads": {},
|
|
@@ -68,4 +68,4 @@
|
|
| 68 |
"torchscript": false,
|
| 69 |
"use_bfloat16": false,
|
| 70 |
"vocab_size": 50265
|
| 71 |
-
}
|
|
|
|
| 47 |
"num_return_sequences": 1,
|
| 48 |
"output_attentions": false,
|
| 49 |
"output_hidden_states": false,
|
| 50 |
+
"output_past": true,
|
| 51 |
"pad_token_id": 1,
|
| 52 |
"prefix": " ",
|
| 53 |
"pruned_heads": {},
|
|
|
|
| 68 |
"torchscript": false,
|
| 69 |
"use_bfloat16": false,
|
| 70 |
"vocab_size": 50265
|
| 71 |
+
}
|