stacked-summaries/stacked-samsum-1024
Viewer • Updated • 32.7k • 90 • 5
How to use stacked-summaries/flan-t5-small-stacked-samsum-1024 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="stacked-summaries/flan-t5-small-stacked-samsum-1024") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("stacked-summaries/flan-t5-small-stacked-samsum-1024")
model = AutoModelForSeq2SeqLM.from_pretrained("stacked-summaries/flan-t5-small-stacked-samsum-1024", device_map="auto")This model is a fine-tuned version of google/flan-t5-small on the stacked-summaries/stacked-samsum-1024 dataset.
It achieves the following results on the evaluation set:
Trained on a summarization task with potentially multiple doc-summary pairs stacked on top of each other.
You can separate its predictions by using it's special token [NEXT_CONCEPT] to split the output into "separate topics".
See stacked-summaries/stacked-samsum-1024.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|---|---|---|---|---|---|---|---|---|
| 1.9011 | 1.0 | 230 | 1.7986 | 45.4597 | 19.6956 | 34.6878 | 42.3724 | 74.16 |
| 1.8297 | 2.0 | 460 | 1.7609 | 46.0427 | 20.2299 | 35.2076 | 43.0549 | 70.56 |
| 1.7637 | 3.0 | 690 | 1.7573 | 46.6072 | 19.9754 | 35.2715 | 43.3599 | 72.64 |