Instructions to use astro21/bart-cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use astro21/bart-cls with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("astro21/bart-cls") model = AutoModelForSeq2SeqLM.from_pretrained("astro21/bart-cls") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -56,8 +56,8 @@
|
|
| 56 |
},
|
| 57 |
"summarization_cnn": {
|
| 58 |
"length_penalty": 2.0,
|
| 59 |
-
"max_length":
|
| 60 |
-
"min_length":
|
| 61 |
"num_beams": 4
|
| 62 |
},
|
| 63 |
"summarization_xsum": {
|
|
|
|
| 56 |
},
|
| 57 |
"summarization_cnn": {
|
| 58 |
"length_penalty": 2.0,
|
| 59 |
+
"max_length": 256,
|
| 60 |
+
"min_length": 128,
|
| 61 |
"num_beams": 4
|
| 62 |
},
|
| 63 |
"summarization_xsum": {
|