Instructions to use Dhrumit1314/BART_TextSummary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dhrumit1314/BART_TextSummary with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Dhrumit1314/BART_TextSummary") model = AutoModelForSeq2SeqLM.from_pretrained("Dhrumit1314/BART_TextSummary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +4 -4
config.json
CHANGED
|
@@ -56,14 +56,14 @@
|
|
| 56 |
},
|
| 57 |
"summarization_cnn": {
|
| 58 |
"length_penalty": 2.0,
|
| 59 |
-
"max_length":
|
| 60 |
-
"min_length":
|
| 61 |
"num_beams": 4
|
| 62 |
},
|
| 63 |
"summarization_xsum": {
|
| 64 |
"length_penalty": 1.0,
|
| 65 |
-
"max_length":
|
| 66 |
-
"min_length":
|
| 67 |
"num_beams": 6
|
| 68 |
}
|
| 69 |
},
|
|
|
|
| 56 |
},
|
| 57 |
"summarization_cnn": {
|
| 58 |
"length_penalty": 2.0,
|
| 59 |
+
"max_length": 142,
|
| 60 |
+
"min_length": 56,
|
| 61 |
"num_beams": 4
|
| 62 |
},
|
| 63 |
"summarization_xsum": {
|
| 64 |
"length_penalty": 1.0,
|
| 65 |
+
"max_length": 62,
|
| 66 |
+
"min_length": 11,
|
| 67 |
"num_beams": 6
|
| 68 |
}
|
| 69 |
},
|