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 generation_config.json
Browse files- generation_config.json +0 -11
generation_config.json
CHANGED
|
@@ -3,16 +3,5 @@
|
|
| 3 |
"decoder_start_token_id": 0,
|
| 4 |
"eos_token_id": 1,
|
| 5 |
"pad_token_id": 0,
|
| 6 |
-
"task_specific_params": {
|
| 7 |
-
"summarization": {
|
| 8 |
-
"early_stopping": true,
|
| 9 |
-
"length_penalty": 2.0,
|
| 10 |
-
"max_length": 128,
|
| 11 |
-
"min_length": 20,
|
| 12 |
-
"no_repeat_ngram_size": 3,
|
| 13 |
-
"num_beams": 4,
|
| 14 |
-
"prefix": "summarize: "
|
| 15 |
-
}
|
| 16 |
-
},
|
| 17 |
"transformers_version": "4.32.1"
|
| 18 |
}
|
|
|
|
| 3 |
"decoder_start_token_id": 0,
|
| 4 |
"eos_token_id": 1,
|
| 5 |
"pad_token_id": 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"transformers_version": "4.32.1"
|
| 7 |
}
|