Summarization
Transformers
PyTorch
English
led
text2text-generation
text-generation
encoder-decoder
longformer
bart
abstractive-summarization
news-summarization
research-summarization
document-summarization
english
NLP
Instructions to use assemsabry/Research-News-AI-Summarizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use assemsabry/Research-News-AI-Summarizer with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="assemsabry/Research-News-AI-Summarizer")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("assemsabry/Research-News-AI-Summarizer") model = AutoModelForSeq2SeqLM.from_pretrained("assemsabry/Research-News-AI-Summarizer") - Notebooks
- Google Colab
- Kaggle
Add generation_config.json from allenai/led-base-16384
Browse files- generation_config.json +8 -0
generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"pad_token_id": 1,
|
| 7 |
+
"transformers_version": "4.27.0.dev0"
|
| 8 |
+
}
|