fajrikoto/id_liputan6
Updated • 334 • 12
How to use gaduhhartawan/bart-indo-small 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="gaduhhartawan/bart-indo-small") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("gaduhhartawan/bart-indo-small")
model = AutoModelForSeq2SeqLM.from_pretrained("gaduhhartawan/bart-indo-small")This model is a fine-tuned version of bart-large-cnn on Liputan6 dataset.
| Training Loss | Epoch | Step | R1 Precision | R1 Recall | R1 Fmeasure | R2 Precision | R2 Recall | R2 Fmeasure | Rl Precision | Rl Recall | Rl Fmeasure |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.2443 | 1.0 | 48000 | 0.3579 | 0.6416 | 0.4468 | 0.1163 | 0.2467 | 0.1551 | 0.3499 | 0.625 | 0.4359 |