FiscalNote/billsum
Viewer • Updated • 23.5k • 16.3k • 55
How to use cs608/billsum-model 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="cs608/billsum-model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("cs608/billsum-model")
model = AutoModelForSeq2SeqLM.from_pretrained("cs608/billsum-model")This model is a fine-tuned version of facebook/bart-base on the billsum 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 |
|---|---|---|---|---|---|---|---|
| 2.4547 | 1.0 | 569 | 1.9895 | 16.6343 | 13.0432 | 16.1262 | 16.2449 |
| 2.0246 | 2.0 | 1138 | 1.8688 | 16.939 | 13.4711 | 16.4359 | 16.5797 |
| 1.818 | 3.0 | 1707 | 1.8075 | 17.1388 | 13.827 | 16.6136 | 16.7574 |
| 1.6831 | 4.0 | 2276 | 1.7744 | 17.2292 | 13.9353 | 16.6961 | 16.8786 |
| 1.5956 | 5.0 | 2845 | 1.7651 | 17.1607 | 13.943 | 16.6793 | 16.8422 |