Instructions to use ELiRF/NASES with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ELiRF/NASES 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="ELiRF/NASES")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ELiRF/NASES") model = AutoModelForSeq2SeqLM.from_pretrained("ELiRF/NASES", device_map="auto") - Notebooks
- Google Colab
- Kaggle
José Ángel González commited on
Commit ·
990a7a8
1
Parent(s): b4afb8f
Update config.json
Browse files- config.json +10 -0
config.json
CHANGED
|
@@ -34,6 +34,16 @@
|
|
| 34 |
"LABEL_1": 1,
|
| 35 |
"LABEL_2": 2
|
| 36 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
"mask_sent_token_id": 6,
|
| 38 |
"mask_token_id": 5,
|
| 39 |
"max_position_embeddings": 512,
|
|
|
|
| 34 |
"LABEL_1": 1,
|
| 35 |
"LABEL_2": 2
|
| 36 |
},
|
| 37 |
+
"task_specific_params": {
|
| 38 |
+
"summarization": {
|
| 39 |
+
"early_stopping": true,
|
| 40 |
+
"length_penalty": 2.0,
|
| 41 |
+
"max_length": 150,
|
| 42 |
+
"min_length": 25,
|
| 43 |
+
"no_repeat_ngram_size": 3,
|
| 44 |
+
"num_beams": 4
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
"mask_sent_token_id": 6,
|
| 48 |
"mask_token_id": 5,
|
| 49 |
"max_position_embeddings": 512,
|