amagastya/medical-abstract-summaries
Viewer • Updated • 1k • 102
How to use Madan490/finetuned_bartbase_on_medi_data 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="Madan490/finetuned_bartbase_on_medi_data") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Madan490/finetuned_bartbase_on_medi_data")
model = AutoModelForSeq2SeqLM.from_pretrained("Madan490/finetuned_bartbase_on_medi_data")This model is a fine-tuned version of facebook/bart-large-cnn on an unknown 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 | Gen Len |
|---|---|---|---|---|---|---|---|---|
| No log | 1.0 | 175 | 0.1297 | 0.812 | 0.6479 | 0.7393 | 0.7477 | 76.0533 |
| No log | 2.0 | 350 | 0.1037 | 0.817 | 0.6546 | 0.7393 | 0.7497 | 77.2933 |
| 0.0519 | 3.0 | 525 | 0.1095 | 0.8196 | 0.6656 | 0.7504 | 0.7588 | 75.38 |
| 0.0519 | 4.0 | 700 | 0.1157 | 0.8141 | 0.6539 | 0.7397 | 0.7494 | 76.3633 |
| 0.0519 | 5.0 | 875 | 0.1259 | 0.8208 | 0.6644 | 0.7467 | 0.7542 | 75.0167 |