FiscalNote/billsum
Viewer • Updated • 23.5k • 16.4k • 55
How to use cs608/billsum-full-data 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-full-data") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("cs608/billsum-full-data")
model = AutoModelForSeq2SeqLM.from_pretrained("cs608/billsum-full-data")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.1401 | 1.0 | 8101 | 1.8087 | 17.8461 | 14.6015 | 17.3956 | 17.4842 |
| 1.7596 | 2.0 | 16202 | 1.6980 | 18.0568 | 14.7833 | 17.6068 | 17.6999 |
| 1.5789 | 3.0 | 24303 | 1.6583 | 18.0383 | 14.8462 | 17.6086 | 17.6843 |