Instructions to use IMISLab/GreekT5-mt5-small-greeksum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IMISLab/GreekT5-mt5-small-greeksum 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="IMISLab/GreekT5-mt5-small-greeksum")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("IMISLab/GreekT5-mt5-small-greeksum") model = AutoModelForSeq2SeqLM.from_pretrained("IMISLab/GreekT5-mt5-small-greeksum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -76,7 +76,7 @@ We trained `google/mt5-small` [300 million parameters (~1.20 GB)] on the GreekSU
|
|
| 76 |
* padding = ‘max_length’
|
| 77 |
* truncation = True
|
| 78 |
|
| 79 |
-
**Note:** T5-based models use a multi-task architecture, the prefix *‘summarize:’* was prepended in each training sample.
|
| 80 |
|
| 81 |
## Evaluation
|
| 82 |
**Approach**|**ROUGE-1**|**ROUGE-2**|**ROUGE-L**|**BERTScore**
|
|
|
|
| 76 |
* padding = ‘max_length’
|
| 77 |
* truncation = True
|
| 78 |
|
| 79 |
+
**Note:** T5-based models use a multi-task architecture, the prefix *‘summarize: ’* was prepended in each training sample.
|
| 80 |
|
| 81 |
## Evaluation
|
| 82 |
**Approach**|**ROUGE-1**|**ROUGE-2**|**ROUGE-L**|**BERTScore**
|