Instructions to use UX4567/Text-Summarizer-25B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UX4567/Text-Summarizer-25B with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("summarization", model="UX4567/Text-Summarizer-25B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("UX4567/Text-Summarizer-25B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,324 Bytes
e549b81 e5116d0 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 e549b81 851d2f4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | ---
library_name: transformers
pipeline_tag: summarization
tags:
- summarization
- t5
- flan-t5
language:
- en
---
# Text Summarizer (T5 Fine-Tuned)
This model is a fine-tuned version of T5 designed for abstractive text summarization. It condenses long articles, documents, or paragraphs into short, accurate, and context-aware summaries.
## Model Details
### Model Description
- **Developed by:** Kartik Sharma
- **Model type:** Sequence-to-Sequence (Encoder-Decoder)
- **Language(s):** English
- **Base Model:** T5 Architecture
- **Task:** Text Summarization
---
## How to Get Started with the Model
You can load and test the model using the Hugging Face `transformers` pipeline or direct model classes:
### Using Transformers Pipeline
```python
from transformers import pipeline
summarizer = pipeline("summarization", model="UX4567/Text-Summarizer-25B")
text = """
Artificial Intelligence (AI) is transforming industries across the globe. From healthcare to finance,
machine learning models are enabling automation, improving efficiency, and driving innovation.
As AI technology continues to evolve, ethical considerations and proper implementation become
critical for sustainable integration.
"""
summary = summarizer(text, max_length=60, min_length=25, do_sample=False)
print(summary[0]['summary_text']) |