fajrikoto/id_liputan6
Updated • 336 • 12
How to use fatihfauzan26/PEGASUS_mini_super 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="fatihfauzan26/PEGASUS_mini_super") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("fatihfauzan26/PEGASUS_mini_super")
model = AutoModelForSeq2SeqLM.from_pretrained("fatihfauzan26/PEGASUS_mini_super")PEGASUS Mini is a fine-tuned version of the PEGASUS model, originally pre-trained on the CNN/Daily Mail dataset. This fine-tuning is specifically tailored for abstractive text summarization of Indonesian news articles using the Liputan6 dataset.
The model has been trained on a subset of 50,000 samples from the Liputan6 dataset for 5 epochs, making it lightweight and efficient while maintaining strong summarization performance.
Base model
google/pegasus-cnn_dailymail