Instructions to use voidful/changpt-bart with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use voidful/changpt-bart with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("voidful/changpt-bart") model = AutoModelForSeq2SeqLM.from_pretrained("voidful/changpt-bart") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -0
config.json
CHANGED
|
@@ -51,6 +51,9 @@
|
|
| 51 |
"summarization": {
|
| 52 |
"do_sample": true,
|
| 53 |
"max_length": 256,
|
|
|
|
|
|
|
|
|
|
| 54 |
"prefix": ""
|
| 55 |
}
|
| 56 |
},
|
|
|
|
| 51 |
"summarization": {
|
| 52 |
"do_sample": true,
|
| 53 |
"max_length": 256,
|
| 54 |
+
"min_length": 100,
|
| 55 |
+
"no_repeat_ngram_size": 5,
|
| 56 |
+
"early_stopping": true,
|
| 57 |
"prefix": ""
|
| 58 |
}
|
| 59 |
},
|