Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets:
|
| 3 |
+
- ccdv/arxiv-summarization
|
| 4 |
+
metrics:
|
| 5 |
+
- rouge
|
| 6 |
+
---
|
| 7 |
+
## distilbart-sum-arxiv
|
| 8 |
+
This model is a fine-tuned version of [sshleifer/distilbart-xsum-12-6](https://huggingface.co/sshleifer/distilbart-cnn-12-6) on a subset of the [ccdv/arxiv-summarization dataset](https://huggingface.co/datasets/ccdv/arxiv-summarization). It achieves the following results on the evaluation set:
|
| 9 |
+
* Loss: 2.420
|
| 10 |
+
* Rouge1: 42.185
|
| 11 |
+
* Rouge2: 15.481
|
| 12 |
+
* RougeL: 24.440
|
| 13 |
+
* RougeLSum: 24.260
|
| 14 |
+
|
| 15 |
+
## Model description
|
| 16 |
+
This model is a distilled version of BART with 306M parameters (vs. 406 for the BART model), but it is 1.68 times faster than BART at inference. It has been trained on 60_000 samples and has a limitation of 1024 tokens.
|
| 17 |
+
|
| 18 |
+
## Intended uses & limitations
|
| 19 |
+
Since this model has been trained on scientific papers, it may perform poorly when attempting to summarize other types of content.
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
from transformers import pipeline
|
| 23 |
+
summarizer = pipeline("text2text-generation", model="AdamCodd/distilbart-sum-arxiv")
|
| 24 |
+
paper = "Scientific paper..."
|
| 25 |
+
result = summarizer(paper)
|
| 26 |
+
print(result)
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Training and evaluation data
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Training procedure
|
| 34 |
+
|
| 35 |
+
### Training hyperparameters
|
| 36 |
+
|
| 37 |
+
The following hyperparameters were used during training:
|
| 38 |
+
- learning_rate: 3e-05
|
| 39 |
+
- train_batch_size: 4
|
| 40 |
+
- eval_batch_size: 4
|
| 41 |
+
- seed: 1270
|
| 42 |
+
- optimizer: AdamW with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
+
- lr_scheduler_type: linear
|
| 44 |
+
- lr_scheduler_warmup_steps: 150
|
| 45 |
+
- num_epochs: 1
|
| 46 |
+
|
| 47 |
+
### Training results
|
| 48 |
+
|
| 49 |
+
| key | value |
|
| 50 |
+
| --- | ----- |
|
| 51 |
+
| eval_rouge1 | 42.185638427734375 |
|
| 52 |
+
| eval_rouge2 | 15.481599807739258 |
|
| 53 |
+
| eval_rougeL | 24.440900802612305 |
|
| 54 |
+
| eval_rougeLsum | 24.260608673095703 |
|
| 55 |
+
|
| 56 |
+
### Framework versions
|
| 57 |
+
|
| 58 |
+
- Transformers 4.33.0
|
| 59 |
+
- Pytorch lightning 2.0.8
|
| 60 |
+
- Tokenizers 0.13.3
|