Downloads · 30 days
85
30% of all-time downloads
Bashaarat1/t5-small-arxiv-summarizer
t5-small-arxiv-summarizer is a summarization model from Bashaarat1. Use it when you need a shorter version of a longer text. The card lists the license as apache-2.0.
This is a T5-small model fine-tuned on 30,000 arXiv papers for academic text summarization.
Downloads · 30 days
85
30% of all-time downloads
All-time downloads
281
Public
Parameters
60.5M
243 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 100%
From the Hugging Face model README
This is a T5-small model fine-tuned on 30,000 arXiv papers for academic text summarization.
Compared to base T5-small:
Additional metrics:
Overall: 6/8 metrics improved (75% win rate)
This model is specifically designed for:
from transformers import T5Tokenizer, T5ForConditionalGeneration
# Load model
tokenizer = T5Tokenizer.from_pretrained("Bashaarat1/t5-small-arxiv-summarizer")
model = T5ForConditionalGeneration.from_pretrained("Bashaarat1/t5-small-arxiv-summarizer")
# Prepare input
text = "summarize: Your academic paper text here..."
inputs = tokenizer(text, return_tensors="pt", max_length=512, truncation=True)
# Generate summary
outputs = model.generate(
**inputs,
max_length=128,
num_beams=4,
early_stopping=True
)
summary = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(summary)
import requests
API_URL = "https://api-inference.huggingface.co/models/Bashaarat1/t5-small-arxiv-summarizer"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({"inputs": "summarize: Your paper text..."})
- max_input_length: 512
- max_target_length: 128
- num_beams: 4
- learning_rate: 5e-5
- warmup_steps: 500
- weight_decay: 0.01
Evaluated on 1,000 arXiv test papers:
| Metric | Base T5-small | Fine-tuned | Improvement |
|---|---|---|---|
| ROUGE-1 | 0.2200 | 0.2823 | +28.29% |
| ROUGE-2 | 0.0564 | 0.0826 | +46.45% |
| ROUGE-L | 0.1405 | 0.1796 | +27.85% |
If you use this model, please cite:
@misc{t5-arxiv-summarizer,
author = {Bashaarat1},
title = {T5-Small Fine-tuned for Academic Summarization},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/Bashaarat1/t5-small-arxiv-summarizer}}
}
This model is released under the Apache 2.0 License (same as T5-small base model).
For questions or issues, please open an issue on the model repository.
Model trained and uploaded: December 2024