Summarization
Transformers
PyTorch
Core ML
ONNX
Safetensors
English
t5
text2text-generation
text-generation-inference
Instructions to use Falconsai/text_summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Falconsai/text_summarization 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="Falconsai/text_summarization")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Falconsai/text_summarization") model = AutoModelForSeq2SeqLM.from_pretrained("Falconsai/text_summarization", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,6 +26,7 @@ The goal of this meticulous training process is to equip the model with the abil
|
|
| 26 |
### How to Use
|
| 27 |
To use this model for text summarization, you can follow these steps:
|
| 28 |
|
|
|
|
| 29 |
```python
|
| 30 |
from transformers import pipeline
|
| 31 |
|
|
@@ -55,6 +56,8 @@ Hugging Face's story is one of transformation, collaboration, and empowerment. T
|
|
| 55 |
"""
|
| 56 |
print(summarizer(ARTICLE, max_length=230, min_length=30, do_sample=False))
|
| 57 |
>>> [{'summary_text': 'Hugging Face has emerged as a prominent and innovative force in NLP . From its inception to its role in democratizing AI, the company has left an indelible mark on the industry . The name "Hugging Face" was chosen to reflect the company\'s mission of making AI models more accessible and friendly to humans .'}]
|
|
|
|
|
|
|
| 58 |
|
| 59 |
Limitations
|
| 60 |
Specialized Task Fine-Tuning: While the model excels at text summarization, its performance may vary when applied to other natural language processing tasks. Users interested in employing this model for different tasks should explore fine-tuned versions available in the model hub for optimal results.
|
|
|
|
| 26 |
### How to Use
|
| 27 |
To use this model for text summarization, you can follow these steps:
|
| 28 |
|
| 29 |
+
|
| 30 |
```python
|
| 31 |
from transformers import pipeline
|
| 32 |
|
|
|
|
| 56 |
"""
|
| 57 |
print(summarizer(ARTICLE, max_length=230, min_length=30, do_sample=False))
|
| 58 |
>>> [{'summary_text': 'Hugging Face has emerged as a prominent and innovative force in NLP . From its inception to its role in democratizing AI, the company has left an indelible mark on the industry . The name "Hugging Face" was chosen to reflect the company\'s mission of making AI models more accessible and friendly to humans .'}]
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
|
| 62 |
Limitations
|
| 63 |
Specialized Task Fine-Tuning: While the model excels at text summarization, its performance may vary when applied to other natural language processing tasks. Users interested in employing this model for different tasks should explore fine-tuned versions available in the model hub for optimal results.
|