webis/tldr-17
Viewer • Updated • 1.33M • 1.07k • 57
How to use NielsV/distilbart-cnn-6-6-reddit with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("NielsV/distilbart-cnn-6-6-reddit")
model = AutoModelForSeq2SeqLM.from_pretrained("NielsV/distilbart-cnn-6-6-reddit", device_map="auto")This model is a fine-tuned version of sshleifer/distilbart-cnn-6-6 on the reddit dataset. It achieves the following results on the evaluation set:
You can find more information about how this model was trained, including the actual training script in this github repository.
I made a split in a train and test set. The test size is 1% of the total dataset, which comes down to about 38k samples.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|---|---|---|---|---|---|---|---|
| 3.13 | 1.0 | 238116 | 3.2736 | 0.1773 | 0.0392 | 0.1223 | 0.1539 |
| 2.8586 | 2.0 | 476232 | 3.0449 | 0.1846 | 0.0431 | 0.127 | 0.1601 |
| 2.7844 | 3.0 | 714348 | 2.9883 | 0.1849 | 0.0437 | 0.1273 | 0.1601 |