Downloads · 30 days
40
20% of all-time downloads
bilal521/t5-youtube-summarizer
t5-youtube-summarizer is a summarization model from bilal521. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as apache-2.0.
This is a fine-tuned t5-base model for abstractive summarization of YouTube video transcripts. The model is trained on a custom dataset of video transcriptions and their manually written summaries.
Downloads · 30 days
40
20% of all-time downloads
All-time downloads
205
Public
Parameters
223M
2.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt1.8 GB · 67%
From the Hugging Face model README
This is a fine-tuned t5-base model for abstractive summarization of YouTube video transcripts. The model is trained on a custom dataset of video transcriptions and their manually written summaries.
t5-baseT5Tokenizer (pretrained)This model is designed to generate short, informative summaries from long transcripts of educational or conceptual YouTube videos. It can be used for:
from transformers import T5ForConditionalGeneration, T5Tokenizer
# Load the model
model = T5ForConditionalGeneration.from_pretrained("your-username/t5-youtube-summarizer")
tokenizer = T5Tokenizer.from_pretrained("your-username/t5-youtube-summarizer")
# Define input text
text = "The video talks about coordinate covalent bonds, giving examples from..."
# Preprocess and summarize
inputs = tokenizer.encode("summarize: " + text, return_tensors="pt", max_length=512, truncation=True)
summary_ids = model.generate(
inputs,
max_length=256,
min_length=80,
num_beams=5,
length_penalty=2.0,
no_repeat_ngram_size=3,
early_stopping=True
)
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
print(summary)
| Metric | Value |
|---|---|
| ROUGE-1 | ~0.60 |
| ROUGE-2 | ~0.25 |
| ROUGE-L | ~0.47 |
| Gen Len | ~187 tokens |
If you use this model in your work, consider citing:
@misc{t5ytsummarizer2025,
title={T5 YouTube Transcript Summarizer},
author={Muhammad Bilal Yousaf},
year={2025},
howpublished={\url{https://huggingface.co/bilal521/t5-youtube-summarizer}},
}