Instructions to use ELiRF/NASCA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ELiRF/NASCA 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/NASCA")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ELiRF/NASCA") model = AutoModelForSeq2SeqLM.from_pretrained("ELiRF/NASCA") - Notebooks
- Google Colab
- Kaggle
Vicent Ahuir Esteve commited on
Commit ·
21ca89c
1
Parent(s): 9e89a5a
Update config.json
Browse files- config.json +1 -2
config.json
CHANGED
|
@@ -46,12 +46,11 @@
|
|
| 46 |
},
|
| 47 |
"early_stopping": true,
|
| 48 |
"repetition_penalty": 2.0,
|
| 49 |
-
"max_length":
|
| 50 |
"min_length": 25,
|
| 51 |
"no_repeat_ngram_size": 3,
|
| 52 |
"num_beams": 4,
|
| 53 |
|
| 54 |
-
"truncation": "max_length",
|
| 55 |
"mask_sent_token_id": 6,
|
| 56 |
"mask_token_id": 5,
|
| 57 |
"max_position_embeddings": 512,
|
|
|
|
| 46 |
},
|
| 47 |
"early_stopping": true,
|
| 48 |
"repetition_penalty": 2.0,
|
| 49 |
+
"max_length": 150,
|
| 50 |
"min_length": 25,
|
| 51 |
"no_repeat_ngram_size": 3,
|
| 52 |
"num_beams": 4,
|
| 53 |
|
|
|
|
| 54 |
"mask_sent_token_id": 6,
|
| 55 |
"mask_token_id": 5,
|
| 56 |
"max_position_embeddings": 512,
|