FiscalNote/billsum
Viewer • Updated • 23.5k • 13.7k • 55
How to use hp1502/Legal_Text_Summarizer with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("hp1502/Legal_Text_Summarizer")
model = AutoModelForSeq2SeqLM.from_pretrained("hp1502/Legal_Text_Summarizer")This model is a fine-tuned version of google/flan-t5-small 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 | Gen Len |
|---|---|---|---|---|---|---|---|---|
| No log | 1.0 | 195 | 1.6773 | 22.8625 | 17.311 | 21.829 | 22.0089 | 19.0 |
| No log | 2.0 | 390 | 1.6134 | 23.6942 | 18.553 | 22.561 | 22.8895 | 19.0 |
| 1.9532 | 3.0 | 585 | 1.5882 | 23.8253 | 18.7086 | 22.6519 | 22.9745 | 19.0 |
| 1.9532 | 4.0 | 780 | 1.5739 | 24.0178 | 18.8429 | 22.9119 | 23.1471 | 19.0 |
| 1.9532 | 5.0 | 975 | 1.5675 | 24.0011 | 18.8602 | 22.9037 | 23.1161 | 19.0 |
Base model
google/flan-t5-small