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 +3 -5
config.json
CHANGED
|
@@ -44,11 +44,9 @@
|
|
| 44 |
"task_specific_params": {
|
| 45 |
"summarization": {
|
| 46 |
"early_stopping": true,
|
| 47 |
-
"
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
-
"no_repeat_ngram_size": 3,
|
| 51 |
-
"num_beams": 4
|
| 52 |
}
|
| 53 |
},
|
| 54 |
"vocab_size": 50265
|
|
|
|
| 44 |
"task_specific_params": {
|
| 45 |
"summarization": {
|
| 46 |
"early_stopping": true,
|
| 47 |
+
"max_length": 10,
|
| 48 |
+
"min_length": 2,
|
| 49 |
+
"num_beams": 1
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
},
|
| 52 |
"vocab_size": 50265
|