Downloads · 30 days
14
31% of all-time downloads
tarekziade/t5-small-headline-generator-sft-3-3
t5-small-headline-generator-sft-3-3 is a machine learning model from tarekziade. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Shrinked version of https://huggingface.co/JulesBelveze/t5-small-headline-generator
Downloads · 30 days
14
31% of all-time downloads
All-time downloads
45
Public
Parameters
38.5M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx558 MB · 78%
From the Hugging Face model README
Shrinked version of https://huggingface.co/JulesBelveze/t5-small-headline-generator
This model is a compression experiment. The original model is 242MiB and this model, once quantized, is down to ~50MiB with an accuracy of ~92%+
50% of the encoder and decoder layers were pruned, and the model was fine-tuned again on the original dataset for a single epoch.
The "shrink and fine-tune" strategy was inspired from https://arxiv.org/pdf/2010.13002.pdf
The model was then tested against the dataset using the ROUGE scoring, and the scoring was compared with the scoring of the original model to produce the accuracy scores below:
rouge-1 Accuracy:
rouge-2 Accuracy:
rouge-l Accuracy:
You can find the train script here https://github.com/tarekziade/distill-t5/blob/main/sft.py and the evalutation script here https://github.com/tarekziade/distill-t5/blob/main/evaluation.py