Instructions to use zbigi/bart-base-summarization-medical_on_cnn-48 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use zbigi/bart-base-summarization-medical_on_cnn-48 with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-base") model = PeftModel.from_pretrained(base_model, "zbigi/bart-base-summarization-medical_on_cnn-48") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files
README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
base_model: facebook/bart-base
|
| 3 |
library_name: peft
|
| 4 |
license: apache-2.0
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
model-index:
|
|
@@ -16,16 +18,12 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on the None dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
-
|
| 25 |
-
- eval_runtime: 273.4655
|
| 26 |
-
- eval_samples_per_second: 3.657
|
| 27 |
-
- eval_steps_per_second: 3.657
|
| 28 |
-
- step: 0
|
| 29 |
|
| 30 |
## Model description
|
| 31 |
|
|
@@ -55,6 +53,18 @@ The following hyperparameters were used during training:
|
|
| 55 |
- num_epochs: 6
|
| 56 |
- mixed_precision_training: Native AMP
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
### Framework versions
|
| 59 |
|
| 60 |
- PEFT 0.12.0
|
|
|
|
| 2 |
base_model: facebook/bart-base
|
| 3 |
library_name: peft
|
| 4 |
license: apache-2.0
|
| 5 |
+
metrics:
|
| 6 |
+
- rouge
|
| 7 |
tags:
|
| 8 |
- generated_from_trainer
|
| 9 |
model-index:
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on the None dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 3.3893
|
| 22 |
+
- Rouge1: 0.2525
|
| 23 |
+
- Rouge2: 0.0944
|
| 24 |
+
- Rougel: 0.2
|
| 25 |
+
- Rougelsum: 0.2242
|
| 26 |
+
- Gen Len: 18.451
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Model description
|
| 29 |
|
|
|
|
| 53 |
- num_epochs: 6
|
| 54 |
- mixed_precision_training: Native AMP
|
| 55 |
|
| 56 |
+
### Training results
|
| 57 |
+
|
| 58 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
| 59 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|:-------:|
|
| 60 |
+
| 2.6901 | 1.0 | 1250 | 3.3869 | 0.2516 | 0.0884 | 0.1964 | 0.2218 | 19.066 |
|
| 61 |
+
| 2.6035 | 2.0 | 2500 | 3.3751 | 0.2516 | 0.0926 | 0.1975 | 0.2231 | 18.716 |
|
| 62 |
+
| 2.564 | 3.0 | 3750 | 3.3818 | 0.2503 | 0.0926 | 0.1974 | 0.2221 | 18.501 |
|
| 63 |
+
| 2.5265 | 4.0 | 5000 | 3.3882 | 0.2505 | 0.0927 | 0.1979 | 0.2219 | 18.482 |
|
| 64 |
+
| 2.5207 | 5.0 | 6250 | 3.3881 | 0.2532 | 0.0946 | 0.2005 | 0.2247 | 18.394 |
|
| 65 |
+
| 2.5356 | 6.0 | 7500 | 3.3893 | 0.2525 | 0.0944 | 0.2 | 0.2242 | 18.451 |
|
| 66 |
+
|
| 67 |
+
|
| 68 |
### Framework versions
|
| 69 |
|
| 70 |
- PEFT 0.12.0
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 894624
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84a53ea9d41de9f57a49eb960ef78df17b2698ce77b7197b2a8d1075199d9873
|
| 3 |
size 894624
|
runs/Jul26_19-12-18_eac2ae36916c/events.out.tfevents.1722021411.eac2ae36916c.3278.1
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fe2f8696350bc30280b050e16ee4b6efa6c6040eb47db89af7fcdb5a3a499e6
|
| 3 |
+
size 13283
|