alexfabbri/multi_news
Updated • 5.61k • 79
How to use Ssarion/gpt2-multi-news 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="Ssarion/gpt2-multi-news") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Ssarion/gpt2-multi-news")
model = AutoModelForCausalLM.from_pretrained("Ssarion/gpt2-multi-news")This model is a fine-tuned version of gpt2 on the multi_news 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 |
|---|---|---|---|
| 2.7978 | 1.0 | 1250 | 2.6300 |
Base model
openai-community/gpt2