abisee/cnn_dailymail
Viewer • Updated • 936k • 161k • 343
How to use amagzari/old 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="amagzari/old") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("amagzari/old")
model = AutoModelForSeq2SeqLM.from_pretrained("amagzari/old")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("amagzari/old")
model = AutoModelForSeq2SeqLM.from_pretrained("amagzari/old")This model is a fine-tuned version of google/t5-v1_1-small on the cnn_dailymail dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|---|---|---|---|---|---|---|---|
| 2.7338 | 1.0 | 35890 | 1.8390 | 0.3278 | 0.1658 | 0.2876 | 0.3064 |
| 2.3233 | 2.0 | 71780 | 1.7779 | 0.3335 | 0.1713 | 0.2924 | 0.3124 |
| 2.2253 | 3.0 | 107670 | 1.7428 | 0.3348 | 0.1728 | 0.2941 | 0.3138 |
| 2.1797 | 4.0 | 143560 | 1.7290 | 0.3363 | 0.1736 | 0.2951 | 0.3151 |
# 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="amagzari/old")