Model save
Browse files- README.md +82 -0
- generation_config.json +12 -0
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: facebook/bart-base
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- rouge
|
| 8 |
+
model-index:
|
| 9 |
+
- name: bart-base-pubmed-1024
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# bart-base-pubmed-1024
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on the None dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 4.2410
|
| 21 |
+
- Rouge1: 43.6037
|
| 22 |
+
- Rouge2: 17.2895
|
| 23 |
+
- Rougel: 25.6916
|
| 24 |
+
- Rougelsum: 38.819
|
| 25 |
+
- Gen Len: 207.62
|
| 26 |
+
|
| 27 |
+
## Model description
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Intended uses & limitations
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training and evaluation data
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Training procedure
|
| 40 |
+
|
| 41 |
+
### Training hyperparameters
|
| 42 |
+
|
| 43 |
+
The following hyperparameters were used during training:
|
| 44 |
+
- learning_rate: 0.0008
|
| 45 |
+
- train_batch_size: 16
|
| 46 |
+
- eval_batch_size: 4
|
| 47 |
+
- seed: 42
|
| 48 |
+
- gradient_accumulation_steps: 4
|
| 49 |
+
- total_train_batch_size: 64
|
| 50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 51 |
+
- lr_scheduler_type: polynomial
|
| 52 |
+
- lr_scheduler_warmup_steps: 500
|
| 53 |
+
- num_epochs: 4
|
| 54 |
+
- mixed_precision_training: Native AMP
|
| 55 |
+
- label_smoothing_factor: 0.2
|
| 56 |
+
|
| 57 |
+
### Training results
|
| 58 |
+
|
| 59 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
| 60 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|:-------:|:---------:|:-------:|
|
| 61 |
+
| 4.8142 | 0.27 | 500 | 4.7781 | 37.4249 | 13.3533 | 21.8304 | 33.5429 | 167.98 |
|
| 62 |
+
| 4.7227 | 0.55 | 1000 | 4.6067 | 40.4166 | 14.7121 | 23.5203 | 36.1746 | 187.26 |
|
| 63 |
+
| 4.6406 | 0.82 | 1500 | 4.5968 | 40.7033 | 15.1399 | 23.7701 | 36.3048 | 187.96 |
|
| 64 |
+
| 4.5179 | 1.09 | 2000 | 4.4875 | 41.2297 | 15.7839 | 23.797 | 36.6246 | 189.1 |
|
| 65 |
+
| 4.5044 | 1.36 | 2500 | 4.4398 | 41.7532 | 15.7797 | 24.5182 | 37.5172 | 203.19 |
|
| 66 |
+
| 4.4599 | 1.64 | 3000 | 4.4042 | 42.9839 | 16.5654 | 25.0308 | 38.1967 | 210.62 |
|
| 67 |
+
| 4.4092 | 1.91 | 3500 | 4.3640 | 42.2944 | 16.3717 | 24.6831 | 37.5064 | 211.33 |
|
| 68 |
+
| 4.3226 | 2.18 | 4000 | 4.3496 | 42.6501 | 16.4452 | 24.7418 | 38.2741 | 225.19 |
|
| 69 |
+
| 4.3078 | 2.46 | 4500 | 4.3160 | 42.7482 | 16.9222 | 25.4787 | 38.5397 | 207.54 |
|
| 70 |
+
| 4.2834 | 2.73 | 5000 | 4.2992 | 42.6235 | 16.9886 | 25.3069 | 38.5346 | 205.73 |
|
| 71 |
+
| 4.2535 | 3.0 | 5500 | 4.2865 | 42.8731 | 16.8583 | 25.6184 | 38.498 | 203.19 |
|
| 72 |
+
| 4.1865 | 3.28 | 6000 | 4.2658 | 43.2303 | 17.154 | 25.7881 | 38.7525 | 215.33 |
|
| 73 |
+
| 4.165 | 3.55 | 6500 | 4.2536 | 44.1507 | 17.211 | 26.02 | 39.5668 | 206.67 |
|
| 74 |
+
| 4.155 | 3.82 | 7000 | 4.2410 | 43.6037 | 17.2895 | 25.6916 | 38.819 | 207.62 |
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
### Framework versions
|
| 78 |
+
|
| 79 |
+
- Transformers 4.37.2
|
| 80 |
+
- Pytorch 2.0.1+cu117
|
| 81 |
+
- Datasets 2.14.4
|
| 82 |
+
- Tokenizers 0.15.2
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 0,
|
| 3 |
+
"decoder_start_token_id": 2,
|
| 4 |
+
"early_stopping": true,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"forced_bos_token_id": 0,
|
| 7 |
+
"forced_eos_token_id": 2,
|
| 8 |
+
"no_repeat_ngram_size": 3,
|
| 9 |
+
"num_beams": 4,
|
| 10 |
+
"pad_token_id": 1,
|
| 11 |
+
"transformers_version": "4.37.2"
|
| 12 |
+
}
|