AventIQ-AI / t5-text-summarizer

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: 0
30-day runs: 3
Model's Last Updated: February 11 2025

Introduction of t5-text-summarizer

Model Details of t5-text-summarizer

Text-to-Text Transfer Transformer Quantized Model for Text Summarization

This repository hosts a quantized version of the T5 model, fine-tuned for text summarization tasks. The model has been optimized for efficient deployment while maintaining high accuracy, making it suitable for resource-constrained environments.

Model Details
  • Model Architecture: T5
  • Task: Text Summarization
  • Dataset: Hugging Face's `cnn_dailymail'
  • Quantization: Float16
  • Fine-tuning Framework: Hugging Face Transformers
Usage
Installation
pip install transformers torch
Loading the Model
from transformers import T5Tokenizer, T5ForConditionalGeneration
import torch

device = "cuda" if torch.cuda.is_available() else "cpu"

model_name = "AventIQ-AI/t5-text-summarizer"
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name).to(device)

def test_summarization(model, tokenizer):
    user_text = input("\nEnter your text for summarization:\n")
    input_text = "summarize: " + user_text
    inputs = tokenizer(input_text, return_tensors="pt", truncation=True, max_length=512).to(device)

    output = model.generate(
        **inputs,
        max_new_tokens=100,
        num_beams=5,
        length_penalty=0.8,
        early_stopping=True
    )

    summary = tokenizer.decode(output[0], skip_special_tokens=True)
    return summary

print("\n📝 **Quantized Model Summary:**")
print(test_summarization(model, tokenizer))

📊 ROUGE Evaluation Results

After fine-tuning the T5-Small model for text summarization, we obtained the following ROUGE scores:

Metric Score Meaning
ROUGE-1 0.3061 (~30%) Measures overlap of unigrams (single words) between the reference and generated summary.
ROUGE-2 0.1241 (~12%) Measures overlap of bigrams (two-word phrases) , indicating coherence and fluency.
ROUGE-L 0.2233 (~22%) Measures longest matching word sequences , testing sentence structure preservation.
ROUGE-Lsum 0.2620 (~26%) Similar to ROUGE-L but optimized for summarization tasks.
Fine-Tuning Details
Dataset

The Hugging Face's cnn_dailymail dataset was used, containing the text and their summarization examples.

Training
  • Number of epochs: 3
  • Batch size: 4
  • Evaluation strategy: epoch
  • Learning rate: 3e-5
Quantization

Post-training quantization was applied using PyTorch's built-in quantization framework to reduce the model size and improve inference efficiency.

Repository Structure
.
├── model/               # Contains the quantized model files
├── tokenizer_config/    # Tokenizer configuration and vocabulary files
├── model.safetensors/   # Quantized Model
├── README.md            # Model documentation
Limitations
  • The model may not generalize well to domains outside the fine-tuning dataset.
  • Quantization may result in minor accuracy degradation compared to full-precision models.
Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request if you have suggestions or improvements.

Runs of AventIQ-AI t5-text-summarizer on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
3
30-day runs

More Information About t5-text-summarizer huggingface.co Model

t5-text-summarizer huggingface.co

t5-text-summarizer huggingface.co is an AI model on huggingface.co that provides t5-text-summarizer's model effect (), which can be used instantly with this AventIQ-AI t5-text-summarizer model. huggingface.co supports a free trial of the t5-text-summarizer model, and also provides paid use of the t5-text-summarizer. Support call t5-text-summarizer model through api, including Node.js, Python, http.

t5-text-summarizer huggingface.co Url

https://huggingface.co/AventIQ-AI/t5-text-summarizer

AventIQ-AI t5-text-summarizer online free

t5-text-summarizer huggingface.co is an online trial and call api platform, which integrates t5-text-summarizer's modeling effects, including api services, and provides a free online trial of t5-text-summarizer, you can try t5-text-summarizer online for free by clicking the link below.

AventIQ-AI t5-text-summarizer online free url in huggingface.co:

https://huggingface.co/AventIQ-AI/t5-text-summarizer

t5-text-summarizer install

t5-text-summarizer is an open source model from GitHub that offers a free installation service, and any user can find t5-text-summarizer on GitHub to install. At the same time, huggingface.co provides the effect of t5-text-summarizer install, users can directly use t5-text-summarizer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

t5-text-summarizer install url in huggingface.co:

https://huggingface.co/AventIQ-AI/t5-text-summarizer

Url of t5-text-summarizer

t5-text-summarizer huggingface.co Url

Provider of t5-text-summarizer huggingface.co

AventIQ-AI
ORGANIZATIONS

Other API from AventIQ-AI