Instructions to use primer-ai/bart-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use primer-ai/bart-squad2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="primer-ai/bart-squad2")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("primer-ai/bart-squad2") model = AutoModelForQuestionAnswering.from_pretrained("primer-ai/bart-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +0 -10
config.json
CHANGED
|
@@ -35,15 +35,5 @@
|
|
| 35 |
"prefix": " ",
|
| 36 |
"scale_embedding": false,
|
| 37 |
"static_position_embeddings": false,
|
| 38 |
-
"task_specific_params": {
|
| 39 |
-
"summarization": {
|
| 40 |
-
"early_stopping": true,
|
| 41 |
-
"length_penalty": 2.0,
|
| 42 |
-
"max_length": 142,
|
| 43 |
-
"min_length": 56,
|
| 44 |
-
"no_repeat_ngram_size": 3,
|
| 45 |
-
"num_beams": 4
|
| 46 |
-
}
|
| 47 |
-
},
|
| 48 |
"vocab_size": 50265
|
| 49 |
}
|
|
|
|
| 35 |
"prefix": " ",
|
| 36 |
"scale_embedding": false,
|
| 37 |
"static_position_embeddings": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
"vocab_size": 50265
|
| 39 |
}
|