FiscalNote/billsum
Viewer • Updated • 23.5k • 16.4k • 55
How to use cs608/billsum-model-2 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-2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("cs608/billsum-model-2")
model = AutoModelForSeq2SeqLM.from_pretrained("cs608/billsum-model-2")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.3529 | 1.0 | 1052 | 1.9277 | 17.1288 | 13.5932 | 16.6346 | 16.7728 |
| 1.9686 | 2.0 | 2104 | 1.8297 | 17.2756 | 13.7685 | 16.7924 | 16.9242 |
| 1.789 | 3.0 | 3156 | 1.7903 | 17.4219 | 14.0205 | 16.9082 | 17.0564 |
| 1.6619 | 4.0 | 4208 | 1.7632 | 17.5055 | 14.1186 | 16.996 | 17.1265 |
| 1.5819 | 5.0 | 5260 | 1.7516 | 17.4066 | 14.022 | 16.9378 | 17.0519 |