CoolFace
Modelpublic

AlgorithmicResearchGroup/led_base_16384_billsum_summarization

sourceHugging Faceupdated 3y agoView on Hugging Face
1likes65downloads
Model Card

Longformer Encoder-Decoder (LED) fine-tuned on Billsum

This model is a fine-tuned version of led-base-16384 on the billsum dataset.

As described in Longformer: The Long-Document Transformer by Iz Beltagy, Matthew E. Peters, Arman Cohan, led-base-16384 was initialized from bart-base since both models share the exact same architecture. To be able to process 16K tokens, bart-base's position embedding matrix was simply copied 16 times.

Use In Transformers

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Artifact-AI/led_base_16384_billsum_summarization")

model = AutoModelForSeq2SeqLM.from_pretrained("Artifact-AI/led_base_16384_billsum_summarization")

Results

ModelRouge-1Rouge-2Rouge-LRouge-Lsum
LED Large47.84326.34234.23041.689
LED Base47.67226.73734.56841.529

The model is trained on the BillSum summarization dataset found here

Test The Model

Please find a notebook to test the model below:

![Open In Colab](https://colab.research.google.com/drive/1TX4IVyvwduDqsok6XuS6i9VIOs9pTXra?usp=sharing)

Citing & Authors

@misc{led_base_16384_billsum_summarization,
    title={led_base_16384_billsum_summarization},
    author={Matthew Kenney},
    year={2023}
}