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 +1 -1
config.json
CHANGED
|
@@ -63,7 +63,7 @@
|
|
| 63 |
"summarization_xsum": {
|
| 64 |
"length_penalty": 1.0,
|
| 65 |
"max_length": 62,
|
| 66 |
-
"min_length":
|
| 67 |
"num_beams": 6
|
| 68 |
}
|
| 69 |
},
|
|
|
|
| 63 |
"summarization_xsum": {
|
| 64 |
"length_penalty": 1.0,
|
| 65 |
"max_length": 62,
|
| 66 |
+
"min_length": 60,
|
| 67 |
"num_beams": 6
|
| 68 |
}
|
| 69 |
},
|