Downloads · 30 days
12
3% of all-time downloads
KedarPanchal/flan-t5-small-summary-finetune
flan-t5-small-summary-finetune is a summarization model from KedarPanchal. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as gpl-3.0.
This model is a fine-tuned flan-t5-small transformer trained to summarize text when provided the instructions to do so. The model was trained on abstracts from publicly available research papers and their summaries.
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
370
Public
Parameters
77M
308 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors308 MB · 100%
From the Hugging Face model README
This model is a fine-tuned flan-t5-small transformer trained to summarize text when provided the instructions to do so. The model was trained on abstracts from publicly available research papers and their summaries.
flan-t5-smallpieetie/pubmed-abstract-summary
| Parameter | Value |
|---|---|
| Rank | 16 |
| Alpha | 32 |
| Dropout | 0.05 |
| Bias | none |
| Target Modules | q, v |
| Parameter | Value |
|---|---|
| Epochs | 5 |
| Learning Rate | 1e-3 |
| Batch Size | 16 |
| Optimizer | AdamW |
| Scheduler | Linear |
| Padding Token ID | -100 |
| Metric | Value |
|---|---|
| Training Loss | ~1.7974 |
| Validation Loss | ~1.4674 |
| Training Time | ~1.2918 hrs |
M4 Macbook Pro
The GitHub repository containing the training code can be found here.
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline
summarizer = pipeline(
task="summarization",
model=AutoModelForSeq2SeqLM.from_pretrained("KedarPanchal/flan-t5-small-summary-finetune")
tokenizer=AutoTokenizer.from_pretrained("google/flan-t5-small")
)
text = """Summarize the following: The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data."""
summarizer(text, min_new_tokens=10, do_sample=False)
Generated text: "The transformer, based on attention mechanisms dispensing with recurrence and convolutions, achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over existing best results, and establishing a single-model state-of-the-art BLUE score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the literature training costs of best models."
The GNU GPLv3 License 2025 - Kedar Panchal. Please look at the LICENSE for more information.