FiscalNote/billsum
Viewer • Updated • 23.5k • 13.2k • 55
How to use schubertcarvalho/text_summarization_t5_trainer 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="schubertcarvalho/text_summarization_t5_trainer") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("schubertcarvalho/text_summarization_t5_trainer")
model = AutoModelForSeq2SeqLM.from_pretrained("schubertcarvalho/text_summarization_t5_trainer")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("schubertcarvalho/text_summarization_t5_trainer")
model = AutoModelForSeq2SeqLM.from_pretrained("schubertcarvalho/text_summarization_t5_trainer")This model is a fine-tuned version of 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 | 16 | 3.5925 | 0.1421 | 0.0501 | 0.1208 | 0.1207 | 19.0 |
| No log | 2.0 | 32 | 3.1487 | 0.1339 | 0.0428 | 0.1146 | 0.1145 | 19.0 |
| No log | 3.0 | 48 | 2.9987 | 0.1285 | 0.04 | 0.1101 | 0.1099 | 19.0 |
| No log | 4.0 | 64 | 2.9562 | 0.1285 | 0.0396 | 0.1104 | 0.1102 | 19.0 |
Base model
google-t5/t5-small
# 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="schubertcarvalho/text_summarization_t5_trainer")